--- graphics/xpdf4/Makefile +++ graphics/xpdf4/Makefile @@ -21,16 +21,13 @@ CONFLICTS_INSTALL+= xpdf3-* xpdf4-* .endif -USES= compiler:c++11-lang cmake localbase:ldflags \ - desktop-file-utils qt:5 +USES= compiler:c++11-lang cmake localbase:ldflags LIB_DEPENDS= libfreetype.so:print/freetype2 \ libpng.so:graphics/png BUILD_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/d050000l.pfb:print/gsfonts RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/d050000l.pfb:print/gsfonts MANPREFIX= ${PREFIX}/share/xpdf SUB_FILES= xpdf-man.conf -USE_QT= buildtools_build concurrent core gui network printsupport \ - qmake_build svg widgets CMAKE_ARGS+= -DOPI_SUPPORT:BOOL=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=ON \ -DUSE_LCMS:BOOL=OFF -DSYSTEM_XPDFRC=${PREFIX}/etc/xpdfrc \ -DCMAKE_INSTALL_PREFIX=${PREFIX} \ @@ -41,8 +38,8 @@ PLIST_SUB= DESKTOPDIR="${DESKTOPDIR}" -OPTIONS_DEFINE= TYPE1 LIBPAPER PRINT -OPTIONS_DEFAULT= TYPE1 PRINT +OPTIONS_DEFINE= TYPE1 LIBPAPER PRINT GUI +OPTIONS_DEFAULT= TYPE1 PRINT GUI OPTIONS_SUB= yes TYPE1_CMAKE_BOOL= TYPE1 @@ -57,6 +54,10 @@ PRINT_DESC= Print support (CUPS dependency) PRINT_LDFLAGS= -L${LOCALBASE}/lib PRINT_LIB_DEPENDS= libcups.so:print/cups + +GUI_DESC= QT5 interface +GUI_USE= QT=buildtools_build,concurrent,core,gui,network,printsupport,qmake_build,svg,widgets +GUI_USES= desktop-file-utils qt:5 post-install: @cd ${STAGEDIR}${PREFIX}; \ --- graphics/xpdf4/pkg-plist +++ graphics/xpdf4/pkg-plist @@ -7,9 +7,9 @@ libexec/xpdf/pdftoppm libexec/xpdf/pdftops libexec/xpdf/pdftotext -libexec/xpdf/xpdf -bin/xpdf -%%DESKTOPDIR%%/xpdf.desktop +%%GUI%%libexec/xpdf/xpdf +%%GUI%%bin/xpdf +%%GUI%%%%DESKTOPDIR%%/xpdf.desktop etc/man.d/xpdf.conf %%DATADIR%%/man/man1/pdfdetach.1.gz %%DATADIR%%/man/man1/pdffonts.1.gz @@ -20,6 +20,6 @@ %%DATADIR%%/man/man1/pdftoppm.1.gz %%DATADIR%%/man/man1/pdftops.1.gz %%DATADIR%%/man/man1/pdftotext.1.gz -%%DATADIR%%/man/man1/xpdf.1.gz +%%GUI%%%%DATADIR%%/man/man1/xpdf.1.gz %%DATADIR%%/man/man5/xpdfrc.5.gz @sample etc/xpdfrc.sample