mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
b1a1d38bf9
From now on, ports that depend on Qt4 will have to set USES= qt:4 USE_QT= foo bar ports depending on Qt5 will use USES= qt:5 USE_QT= foo bar PR: 229225 Exp-run by: antoine Reviewed by: mat Approved by: portmgr (antoine) Differential Revision: →https://reviews.freebsd.org/D15540
70 lines
2.0 KiB
Makefile
70 lines
2.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= xpdf
|
|
PORTVERSION= 4.00
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics print
|
|
MASTER_SITES= https://xpdfreader-dl.s3.amazonaws.com/
|
|
.if !defined(MASTERDIR)
|
|
PKGNAMESUFFIX= 4
|
|
CONFLICTS_INSTALL= xpdf3-* xpdf-*
|
|
.else
|
|
CONFLICTS_INSTALL= xpdf3-* xpdf4-*
|
|
.endif
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= Display PDF files and convert them to other formats
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
libpng.so:graphics/png
|
|
|
|
CONFLICTS_INSTALL= xpdf
|
|
|
|
MANPREFIX= ${PREFIX}/share/xpdf
|
|
SUB_FILES= xpdf-man.conf
|
|
|
|
USES= cmake:outsource localbase
|
|
CMAKE_ARGS+= -DOPI_SUPPORT:BOOL=ON -DCMAKE_DISABLE_FIND_PACKAGE_Qt4:BOOL=ON \
|
|
-DUSE_LCMS:BOOL=OFF -DSYSTEM_XPDFRC=${PREFIX}/etc/xpdfrc
|
|
|
|
OPTIONS_DEFINE= TYPE1 LIBPAPER GUI PRINT
|
|
OPTIONS_DEFAULT= TYPE1 GUI PRINT
|
|
OPTIONS_SUB= yes
|
|
|
|
TYPE1_CMAKE_BOOL= TYPE1
|
|
TYPE1_DESC= Ghostscript type1 fonts
|
|
TYPE1_RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/d050000l.pfb:print/gsfonts
|
|
|
|
LIBPAPER_CMAKE_BOOL= USE_LIBPAPER
|
|
LIBPAPER_LIB_DEPENDS= libpaper.so:print/libpaper
|
|
|
|
GUI_CMAKE_ON= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=FALSE
|
|
GUI_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=TRUE
|
|
GUI_DESC= QT5 interface
|
|
GUI_CMAKE_ARGS+= -DNO_TEXT_SELECT:BOOL=OFF
|
|
GUI_USE= QT=buildtools_build,qmake_build,concurrent,core,gui,widgets,printsupport,svg
|
|
GUI_PLIST_SUB= DESKTOPDIR="${DESKTOPDIR}"
|
|
GUI_USES= desktop-file-utils qt:5
|
|
|
|
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
|
|
|
|
post-install:
|
|
@cd ${STAGEDIR}${PREFIX}; \
|
|
${LN} -sf ../libexec/xpdf/xpdf bin/xpdf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/sample-xpdfrc ${STAGEDIR}${PREFIX}/etc/xpdfrc.sample
|
|
${INSTALL_DATA} ${WRKDIR}/xpdf-man.conf \
|
|
${STAGEDIR}${PREFIX}/etc/man.d/xpdf.conf
|
|
|
|
post-install-GUI-on:
|
|
${INSTALL_DATA} ${FILESDIR}/xpdf.desktop ${STAGEDIR}${DESKTOPDIR}
|
|
|
|
.include <bsd.port.mk>
|