diff --git a/print/pdfmixtool/Makefile b/print/pdfmixtool/Makefile index f5e3b38488e9..7b78798aec08 100644 --- a/print/pdfmixtool/Makefile +++ b/print/pdfmixtool/Makefile @@ -1,41 +1,41 @@ PORTNAME= pdfmixtool DISTVERSION= 1.1.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= print graphics editors PKGNAMESUFFIX= -${FLAVOR} MAINTAINER= dev@submerge.ch COMMENT= Application to split, merge, rotate and mix PDF files WWW= https://www.scarpetta.eu/pdfmixtool/ LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libqpdf.so:print/qpdf qt6_BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers FLAVORS= qt5 qt6 FLAVOR?= ${FLAVORS:[1]} USES= cmake compiler:c++11-lang desktop-file-utils magick pkgconfig .if ${FLAVOR} == qt5 USES+= qt:5 USE_QT= buildtools:build core gui linguisttools:build qmake:build \ svg widgets xml .elif ${FLAVOR} == qt6 USES+= gl qt:6 USE_GL= gl opengl USE_QT= base tools:build svg CMAKE_ARGS+= -DQT_VERSION=6 .endif USE_GITLAB= yes GL_ACCOUNT= scarpetta GL_TAGNAME= 35d482029881d9904c6e7487fe7572a3a5795406 LDFLAGS+= -L${LOCALBASE}/lib CONFLICTS_INSTALL= pdfmixtool-qt5 pdfmixtool-qt6 .include diff --git a/print/pdfmixtool/files/patch-CMakeLists.txt b/print/pdfmixtool/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..9229066a2c84 --- /dev/null +++ b/print/pdfmixtool/files/patch-CMakeLists.txt @@ -0,0 +1,15 @@ +--- CMakeLists.txt.orig 2024-01-16 00:28:44 UTC ++++ CMakeLists.txt +@@ -142,6 +142,12 @@ target_link_libraries ( + ${QT_LIBRARIES} + ) + ++target_compile_options( ++ pdfmixtool ++ PUBLIC ++ ${MAGICK_CFLAGS_OTHER} ++) ++ + INSTALL(TARGETS pdfmixtool RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + INSTALL(FILES resources/eu.scarpetta.PDFMixTool.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications) + INSTALL(FILES resources/eu.scarpetta.PDFMixTool.appdata.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)