2021-07-31 15:54:44 +00:00
|
|
|
Index: gmic-2.9.7/cmake/FindCImg.cmake
|
|
|
|
===================================================================
|
|
|
|
--- gmic-2.9.7.orig/cmake/FindCImg.cmake
|
|
|
|
+++ gmic-2.9.7/cmake/FindCImg.cmake
|
|
|
|
@@ -147,7 +147,10 @@ if(ENABLE_JPEG)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(ENABLE_OPENEXR)
|
|
|
|
- find_package(OpenEXR)
|
|
|
|
+ find_package(OpenEXR CONFIG)
|
|
|
|
+ if(NOT TARGET OpenEXR::OpenEXR)
|
|
|
|
+ find_package(OpenEXR)
|
|
|
|
+ endif()
|
|
|
|
|
|
|
|
if(OpenEXR_FOUND)
|
|
|
|
list(APPEND CLI_COMPILE_FLAGS "cimg_use_openexr")
|
|
|
|
Index: gmic-2.9.7/src/Makefile
|
|
|
|
===================================================================
|
2021-12-11 14:41:22 +00:00
|
|
|
--- gmic-3.0.0.orig/src/Makefile
|
|
|
|
+++ gmic-3.0.0/src/Makefile
|
|
|
|
@@ -307,8 +307,8 @@
|
2021-07-31 15:54:44 +00:00
|
|
|
|
|
|
|
# Enable native support of EXR image files, using the OpenEXR library.
|
|
|
|
# (http://www.openexr.com/)
|
2021-12-11 14:41:22 +00:00
|
|
|
-OPENEXR_CFLAGS = -Dcimg_use_openexr $(shell pkg-config --cflags OpenEXR || echo -I$(USR)/$(INCLUDE)/OpenEXR)
|
|
|
|
-OPENEXR_LIBS = $(shell pkg-config --libs OpenEXR || echo -lIlmImf -lHalf)
|
|
|
|
+OPENEXR_CFLAGS = -Dcimg_use_openexr $(shell pkg-config --cflags OpenEXR || echo -I$(USR)/$(INCLUDE)/OpenEXR -I$(USR)/$(INCLUDE)/Imath)
|
|
|
|
+OPENEXR_LIBS = $(shell pkg-config --libs OpenEXR || echo -lOpenEXR -lImath)
|
2021-07-31 15:54:44 +00:00
|
|
|
|
|
|
|
# Enable Fast Fourier Transforms, using the FFTW3 library.
|
|
|
|
# (http://www.fftw.org/)
|