Skip to content

Commit

Permalink
print/pdfmixtool: Fix build after ImageMagick7 7.1.1 update.
Browse files Browse the repository at this point in the history
iAfter the update to ImageMagick7 7.1.1, build would fail and complain about
MAGICKCORE_HDRI_ENABLE not being defined. While pkgconf clearly propagates these
additional CFLAGS, the CMakeLists.txt of pdfmixtool does not use them.

PR:		276362
Reported by:	dev@submerge.ch (maintainer)
  • Loading branch information
0EVSG authored and fernape committed Jan 17, 2024
1 parent cab98f1 commit 963ccdb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion print/pdfmixtool/Makefile
@@ -1,6 +1,6 @@
PORTNAME= pdfmixtool
DISTVERSION= 1.1.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= print graphics editors
PKGNAMESUFFIX= -${FLAVOR}

Expand Down
15 changes: 15 additions & 0 deletions 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)

0 comments on commit 963ccdb

Please sign in to comment.