Changeset View
Changeset View
Standalone View
Standalone View
graphics/xpdf4/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= xpdf | PORTNAME= xpdf | ||||
PORTVERSION= 4.02 | PORTVERSION= 4.02 | ||||
PORTREVISION= 1 | |||||
PORTEPOCH= 1 | PORTEPOCH= 1 | ||||
CATEGORIES= graphics print | CATEGORIES= graphics print | ||||
MASTER_SITES= https://xpdfreader-dl.s3.amazonaws.com/ | MASTER_SITES= https://xpdfreader-dl.s3.amazonaws.com/ | ||||
.if !defined(MASTERDIR) | .if !defined(MASTERDIR) | ||||
PKGNAMESUFFIX= 4 | PKGNAMESUFFIX= 4 | ||||
.endif | .endif | ||||
MAINTAINER= cy@FreeBSD.org | MAINTAINER= cy@FreeBSD.org | ||||
COMMENT= Display PDF files and convert them to other formats | COMMENT= Display PDF files and convert them to other formats | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
BUILD_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/d050000l.pfb:print/gsfonts | |||||
LIB_DEPENDS= libfreetype.so:print/freetype2 \ | |||||
libpaper.so:print/libpaper \ | |||||
libpng.so:graphics/png | |||||
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/d050000l.pfb:print/gsfonts | |||||
USES= cmake compiler:c++11-lang localbase:ldflags | |||||
CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=ON \ | |||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=FALSE \ | |||||
-DCMAKE_INSTALL_BINDIR=${PREFIX}/libexec/xpdf \ | |||||
-DCMAKE_INSTALL_MANDIR=${PREFIX}/share/xpdf/man \ | |||||
-DCMAKE_INSTALL_PREFIX=${PREFIX} \ | |||||
-DNO_TEXT_SELECT:BOOL=OFF \ | |||||
-DOPI_SUPPORT:BOOL=ON \ | |||||
-DSYSTEM_XPDFRC=${PREFIX}/etc/xpdfrc \ | |||||
-DUSE_LCMS:BOOL=OFF | |||||
CONFLICTS_INSTALL= xpdf | CONFLICTS_INSTALL= xpdf | ||||
.if !defined(MASTERDIR) | .if !defined(MASTERDIR) | ||||
CONFLICTS_INSTALL+= xpdf3-* xpdf-* | CONFLICTS_INSTALL+= xpdf-* xpdf3-* | ||||
.else | .else | ||||
CONFLICTS_INSTALL+= xpdf3-* xpdf4-* | CONFLICTS_INSTALL+= xpdf3-* xpdf4-* | ||||
.endif | .endif | ||||
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 | MANPREFIX= ${PREFIX}/share/xpdf | ||||
SUB_FILES= xpdf-man.conf | SUB_FILES= pkg-message xpdf-man.conf | ||||
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} \ | |||||
-DCMAKE_INSTALL_BINDIR=${PREFIX}/libexec/xpdf \ | |||||
-DCMAKE_INSTALL_MANDIR=${PREFIX}/share/xpdf/man \ | |||||
-DNO_TEXT_SELECT:BOOL=OFF \ | |||||
-DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=FALSE | |||||
PLIST_SUB= DESKTOPDIR="${DESKTOPDIR}" | PLIST_SUB= DESKTOPDIR="${DESKTOPDIR}" | ||||
OPTIONS_DEFINE= TYPE1 LIBPAPER PRINT GUI | OPTIONS_DEFINE= GUI PRINT | ||||
OPTIONS_DEFAULT= TYPE1 PRINT GUI | OPTIONS_DEFAULT= GUI PRINT | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
TYPE1_CMAKE_BOOL= TYPE1 | GUI_DESC= QT5 interface | ||||
TYPE1_DESC= Ghostscript type1 fonts | PRINT_DESC= Print support (CUPS dependency) | ||||
TYPE1_RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/d050000l.pfb:print/gsfonts | |||||
LIBPAPER_CMAKE_BOOL= USE_LIBPAPER | GUI_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig | ||||
LIBPAPER_LIB_DEPENDS= libpaper.so:print/libpaper | GUI_USES= desktop-file-utils qt:5 | ||||
GUI_USE= QT=concurrent,core,gui,network,printsupport,printsupport,svg,widgets,buildtools_build,qmake_build | |||||
GUI_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=1 | GUI_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets=1 | ||||
GUI_DESC= QT5 interface | |||||
GUI_USES= qt:5 desktop-file-utils | |||||
GUI_USE= QT=buildtools_build,qmake_build,concurrent,core,gui,widgets,printsupport,svg,network,printsupport | |||||
PRINT_CMAKE_ON= -DXPDFWIDGET_PRINTING:BOOL=ON -DCUPS:BOOL=ON | |||||
PRINT_CMAKE_OFF= -DXPDFWIDGET_PRINTING:BOOL=OFF -DCUPS:BOOL=OFF | |||||
PRINT_DESC= Print support (CUPS dependency) | |||||
PRINT_LDFLAGS= -L${LOCALBASE}/lib | |||||
PRINT_LIB_DEPENDS= libcups.so:print/cups | PRINT_LIB_DEPENDS= libcups.so:print/cups | ||||
PRINT_CMAKE_OFF= -DCUPS:BOOL=OFF -DXPDFWIDGET_PRINTING:BOOL=OFF | |||||
PRINT_CMAKE_ON= -DCUPS:BOOL=ON -DXPDFWIDGET_PRINTING:BOOL=ON | |||||
post-install: | post-install: | ||||
@cd ${STAGEDIR}${PREFIX}; \ | @cd ${STAGEDIR}${PREFIX}; \ | ||||
${LN} -sf ../libexec/xpdf/xpdf bin/xpdf | ${LN} -sf ../libexec/xpdf/xpdf bin/xpdf | ||||
${INSTALL_DATA} ${WRKSRC}/doc/sample-xpdfrc ${STAGEDIR}${PREFIX}/etc/xpdfrc.sample | ${INSTALL_DATA} ${WRKSRC}/doc/sample-xpdfrc ${STAGEDIR}${PREFIX}/etc/xpdfrc.sample | ||||
${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \ | ${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \ | ||||
${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf | ${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf | ||||
post-install-GUI-on: | |||||
${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${STAGEDIR}${DESKTOPDIR} | ${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${STAGEDIR}${DESKTOPDIR} | ||||
${INSTALL_DATA} ${WRKSRC}/xpdf-qt/xpdf-icon.svg \ | |||||
${STAGEDIR}${PREFIX}/share/pixmaps/xpdf.svg | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |