diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2016-03-23 14:06:08 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2016-03-23 14:06:08 +0000 |
commit | aa3f16ffbc6d0f4f29f07ae41931e9564786b549 (patch) | |
tree | 8713a5cc8ca34c52be231c2c70ade3f7cb80e104 /graphics/djview4 | |
parent | 57e7a0c9f75307583bd69a3389bb5b039bd693fb (diff) | |
download | ports-aa3f16ffbc6d0f4f29f07ae41931e9564786b549.tar.gz ports-aa3f16ffbc6d0f4f29f07ae41931e9564786b549.zip |
Notes
Diffstat (limited to 'graphics/djview4')
-rw-r--r-- | graphics/djview4/Makefile | 29 | ||||
-rw-r--r-- | graphics/djview4/distinfo | 4 |
2 files changed, 18 insertions, 15 deletions
diff --git a/graphics/djview4/Makefile b/graphics/djview4/Makefile index f79983b738af..54d79bbcf1cb 100644 --- a/graphics/djview4/Makefile +++ b/graphics/djview4/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= djview -PORTVERSION= 4.10.3 +PORTVERSION= 4.10.6 CATEGORIES= graphics MASTER_SITES= SF/djvu/DjView/${PORTVERSION:R} @@ -20,14 +20,13 @@ INSTALL_TARGET= install-strip GNU_CONFIGURE= yes USES= autoreconf desktop-file-utils gmake libtool pkgconfig \ webplugin:native +USE_GL= gl USE_XORG= sm ice xt -CONFIGURE_ARGS= --x-includes="${LOCALBASE}/include" \ - --x-libraries="${LOCALBASE}/lib" CONFIGURE_ENV= LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}" CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" +MAKE_ENV= V=1 WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins WEBPLUGIN_FILES= nsdejavu.so @@ -35,24 +34,28 @@ WEBPLUGIN_FILES= nsdejavu.so OPTIONS_SINGLE= QT OPTIONS_SINGLE_QT= QT4 QT5 OPTIONS_DEFAULT= QT5 +QT_DESC= Qt toolkit QT4_USE= QT4=gui,network,opengl,linguisttools_build,moc_build,qmake_build,rcc_build,uic_build QT5_USE= QT5=gui,network,opengl,printsupport,widgets,buildtools_build,linguisttools_build,qmake_build -post-patch: .SILENT +post-patch: + @${REINPLACE_CMD} -e \ + '/CXXFLAGS=$$/s|^|#| ; \ + /CFLAGS=$$/s|^|#| ; \ + s|$$OPTS -O2|$$OPTS|' ${WRKSRC}/config/acinclude.m4 + @${REINPLACE_CMD} -e \ + 's|FLAGS+=|FLAGS_RELEASE=|' ${WRKSRC}/src/Makefile.am # Change plugins directory # Add GLIB cflags and libs (including -lX*) - ${REINPLACE_CMD} -e '/^pluginsdir/s/mozilla/djview4/ ; \ - /NSDEJAVU_CFLAGS/s|$$| $$\(GLIB_CFLAGS\)| ; \ - /NSDEJAVU_LIBS/s|$$| $$\(GLIB_LIBS\) -lXt -lXext|' \ + @${REINPLACE_CMD} -e '/^pluginsdir/s/mozilla/djview4/ ; \ + /NSDEJAVU_CFLAGS/s|$$| $$(GLIB_CFLAGS)| ; \ + /NSDEJAVU_LIBS/s|$$| $$(GLIB_LIBS) -lXt -lXext|' \ ${WRKSRC}/nsdejavu/Makefile.am post-install: -# Changing file write permissions needed to strip a file installed as a script - ${CHMOD} +w ${STAGEDIR}${PREFIX}/bin/${PORTNAME} - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} - ${CHMOD} -w ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/djview # Create a symbolic link to match desktop file exec name - (cd ${STAGEDIR}${PREFIX}/bin && ${LN} -sf ${PORTNAME} ${PORTNAME}4) + ${LN} -sf djview ${STAGEDIR}${PREFIX}/bin/djview4 .include <bsd.port.mk> diff --git a/graphics/djview4/distinfo b/graphics/djview4/distinfo index 43d4606a0d19..643c4fa3edee 100644 --- a/graphics/djview4/distinfo +++ b/graphics/djview4/distinfo @@ -1,2 +1,2 @@ -SHA256 (djview-4.10.3.tar.gz) = 50b80ecddc5aec03c49882c91b3af2f42abfe8454d5ddc01fb313e3481e6ab25 -SIZE (djview-4.10.3.tar.gz) = 1119618 +SHA256 (djview-4.10.6.tar.gz) = 8446f3cd692238421a342f12baa365528445637bffb96899f319fe762fda7c21 +SIZE (djview-4.10.6.tar.gz) = 1113072 |