diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-06 10:28:05 +0100 |
commit | f1af93971b7490792d8541bc790e0d8c6d787059 (patch) | |
tree | a38046712bbc3a3844d77452d16c84e716caa3d4 /media-gfx/gmic/files | |
parent | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff) |
gentoo resync : 06.08.2019
Diffstat (limited to 'media-gfx/gmic/files')
-rw-r--r-- | media-gfx/gmic/files/gmic-2.7.1-qt-cmake.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/media-gfx/gmic/files/gmic-2.7.1-qt-cmake.patch b/media-gfx/gmic/files/gmic-2.7.1-qt-cmake.patch new file mode 100644 index 000000000000..caf22d04ce94 --- /dev/null +++ b/media-gfx/gmic/files/gmic-2.7.1-qt-cmake.patch @@ -0,0 +1,35 @@ +Fix linking with fftw when thread support is enabled. + +--- gmic-qt/CMakeLists.txt ++++ gmic-qt/CMakeLists.txt +@@ -13,6 +13,7 @@ + set(CMAKE_AUTOUIC OFF) + set(CMAKE_AUTORCC ON) + set(CMAKE_INCLUDE_CURRENT_DIR ON) ++set(EXTRA_LIBRARIES) + + set (GMIC_QT_HOST "gimp" CACHE STRING "Define for which host qmic-qt will be built: gimp, krita, none, paintdotnet, or digikam.") + if (${GMIC_QT_HOST} STREQUAL "none") +@@ -145,8 +146,13 @@ + # + find_package(FFTW3 REQUIRED) + add_definitions(-Dcimg_use_fftw3 ) +-add_definitions(-Dcimg_use_fftw3_singlethread ) + include_directories(${FFTW3_INCLUDE_DIR}) ++find_library(FFTW3_THREADS_LIB fftw3_threads PATHS ${FFTW3_LIBRARY_DIRS}) ++if(FFTW3_THREADS_LIB STREQUAL "FFTW3_THREADS_LIB-NOTFOUND") ++ add_definitions(-Dcimg_use_fftw3_singlethread) ++else() ++ list(APPEND EXTRA_LIBRARIES "-lfftw3_threads") ++endif() + + # + # CURL +@@ -187,6 +193,7 @@ + ${PNG_LIBRARIES} + ${FFTW3_LIBRARIES} + ${ZLIB_LIBRARIES} ++ ${EXTRA_LIBRARIES} + ) + + if (CURL_FOUND) |