diff options
author | pi <pi@FreeBSD.org> | 2016-06-15 02:03:21 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-06-15 02:03:21 +0800 |
commit | 2d1902802bfe87a251bc3c96d439224a5822796b (patch) | |
tree | 036bd3b3532dad8fe5fe6a7438b6956c920dbd03 /graphics | |
parent | a2e9e0db1a14a0bd570eb9c2f5b4c0f62d82d42c (diff) | |
download | freebsd-ports-gnome-2d1902802bfe87a251bc3c96d439224a5822796b.tar.gz freebsd-ports-gnome-2d1902802bfe87a251bc3c96d439224a5822796b.tar.zst freebsd-ports-gnome-2d1902802bfe87a251bc3c96d439224a5822796b.zip |
graphics/djview4: fix icons and some other stuff
- Remove graphics/librsvg2 from build dependency
- Add gettext-runtime to USES and glib20 to USE_GNOME, because
webplugin depends from them
- Add xext to USE_XORG
- Remove CPPFLAGS and LDFLAGS; add localbase to USES
- Remove verbose flag from MAKE_ENV
- Add corelib to USE_QT4
- Add x11 to USE_XORG in case of QT4 usage
- Add core to USE_QT5
- use prebuilt icons instead of conversion tool to generate them
PR: 198087
Submitted by: lightside@gmx.com
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/djview4/Makefile | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/graphics/djview4/Makefile b/graphics/djview4/Makefile index 7ab67f3ce557..068954c7991a 100644 --- a/graphics/djview4/Makefile +++ b/graphics/djview4/Makefile @@ -3,6 +3,7 @@ PORTNAME= djview PORTVERSION= 4.10.6 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= SF/djvu/DjView/${PORTVERSION:R} @@ -12,22 +13,18 @@ COMMENT= Standalone Djvu viewer and plugin based on Qt toolkit LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= rsvg-convert:graphics/librsvg2 LIB_DEPENDS= libdjvulibre.so:graphics/djvulibre \ libtiff.so:graphics/tiff INSTALL_TARGET= install-strip GNU_CONFIGURE= yes -USES= autoreconf desktop-file-utils gmake libtool pkgconfig \ - webplugin:native +USES= autoreconf desktop-file-utils gettext-runtime gmake libtool \ + localbase pkgconfig webplugin:native USE_GL= gl -USE_XORG= sm ice xt +USE_XORG= sm ice xext xt +USE_GNOME= glib20 CONFIGURE_ENV= LRELEASE="${LRELEASE}" LUPDATE="${LUPDATE}" -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -MAKE_ENV= V=1 - WEBPLUGIN_DIR= ${PREFIX}/lib/djview4/plugins WEBPLUGIN_FILES= nsdejavu.so @@ -36,10 +33,14 @@ 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 +QT4_USE= QT4=corelib,gui,network,opengl,linguisttools_build,moc_build,qmake_build,rcc_build,uic_build +QT4_USE+= XORG=x11 +QT5_USE= QT5=core,gui,network,opengl,printsupport,widgets,buildtools_build,linguisttools_build,qmake_build post-patch: +# Use prebuilt icons, without using conversion tool + @${REINPLACE_CMD} -e 's/conversion_tool=[[:alpha:]]*/conversion_tool=no/' \ + ${WRKSRC}/configure.ac @${REINPLACE_CMD} -e \ '/CXXFLAGS=$$/s|^|#| ; \ /CFLAGS=$$/s|^|#| ; \ |