Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156876556
D47466.id146093.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D47466.id146093.diff
View Options
Index: graphics/xpdf4/Makefile
===================================================================
--- graphics/xpdf4/Makefile
+++ graphics/xpdf4/Makefile
@@ -1,12 +1,9 @@
PORTNAME= xpdf
PORTVERSION= 4.05
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= graphics print
MASTER_SITES= https://dl.xpdfreader.com/
-.if !defined(MASTERDIR)
-PKGNAMESUFFIX= 4
-.endif
MAINTAINER= cy@FreeBSD.org
COMMENT= Display PDF files and convert them to other formats
@@ -21,6 +18,20 @@
CONFLICTS_INSTALL+= xpdf3 xpdf4
.endif
+FLAVORS= qt5 qt6
+FLAVOR?= ${FLAVORS:[1]}
+.if !defined(MASTERDIR)
+qt5_PKGNAMESUFFIX= 4
+qt6_PKGNAMESUFFIX= 4-qt6
+qt5_CONFLICTS_INSTALL= ${PORTNAME}4-qt6
+qt6_CONFLICTS_INSTALL= ${PORTNAME}4
+.else
+qt5_PKGNAMESUFFIX=
+qt6_PKGNAMESUFFIX= -qt6
+qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6
+qt6_CONFLICTS_INSTALL= ${PORTNAME}
+.endif
+
USES= compiler:c++11-lang cmake cpe localbase:ldflags
LIB_DEPENDS= libfreetype.so:print/freetype2 \
libpng.so:graphics/png \
@@ -34,9 +45,7 @@
-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 \
- -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets:BOOL=ON
+ -DNO_TEXT_SELECT:BOOL=OFF
CPE_VENDOR= xpdfreader
PLIST_SUB= DESKTOPDIR="${DESKTOPDIR}"
@@ -52,10 +61,20 @@
LIBPAPER_CMAKE_BOOL= USE_LIBPAPER
LIBPAPER_LIB_DEPENDS= libpaper.so:print/libpaper
-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
+GUI_DESC= GUI interface
+GUI_USES= desktop-file-utils
+
+.if ${FLAVOR} == qt5
+USES+= qt:5
+GUI_USE= QT=buildtools:build,qmake:build,concurrent,core,gui,network,printsupport,svg,widgets
+CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=FALSE \
+ -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets:BOOL=ON
+.else
+USES+= qt:6
+GUI_USE= QT=base,tools:build
+CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Widgets:BOOL=ON \
+ -DCMAKE_DISABLE_FIND_PACKAGE_Qt6Widgets:BOOL=FALSE
+.endif
PRINT_CMAKE_ON= -DXPDFWIDGET_PRINTING:BOOL=ON -DCUPS:BOOL=ON
PRINT_CMAKE_OFF= -DXPDFWIDGET_PRINTING:BOOL=OFF -DCUPS:BOOL=OFF
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 1:01 AM (10 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33224839
Default Alt Text
D47466.id146093.diff (2 KB)
Attached To
Mode
D47466: graphics/xpdf4: add Qt5/Qt6 flavors
Attached
Detach File
Event Timeline
Log In to Comment