diff --git a/graphics/luminance-qt5/Makefile b/graphics/luminance-qt5/Makefile index 2ad670154fdf..b5071aa27eff 100644 --- a/graphics/luminance-qt5/Makefile +++ b/graphics/luminance-qt5/Makefile @@ -1,51 +1,53 @@ # Created by: Yinghong Liu PORTNAME= luminance-hdr DISTVERSION= 2.5.1 -PORTREVISION= 15 +PORTREVISION= 16 CATEGORIES= graphics MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION} PKGNAMESUFFIX= -qt5 MAINTAINER= h2+fbsdports@fsfe.org COMMENT= Complete open source solution for HDR photography LICENSE= GPLv2 DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine EXPIRATION_DATE=2021-06-23 BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3 LIB_DEPENDS= libcfitsio.so:astro/cfitsio \ - libHalf.so:graphics/ilmbase \ + libImath.so:math/Imath \ libtiff.so:graphics/tiff \ libraw_r.so:graphics/libraw \ libfftw3f.so:math/fftw3-float \ libgsl.so:math/gsl \ libexiv2.so:graphics/exiv2 \ liblcms2.so:graphics/lcms2 \ libpng.so:graphics/png \ - libIlmImf.so:graphics/openexr \ + libOpenEXR.so:graphics/openexr \ libboost_date_time.so:devel/boost-libs +CFLAGS+= -I${LOCALBASE}/include/Imath + USES= cmake desktop-file-utils jpeg pkgconfig qt:5 tar:bzip2 USE_QT= concurrent core declarative gui location network printsupport \ sql svg webchannel webengine widgets xml \ buildtools_build linguisttools_build qmake_build CONFLICTS_INSTALL= luminance-hdr-[0-9]* OPTIONS_DEFINE= DOCS post-patch: # Do not install yet another copy of GPL (we use license framework instead) # and fix installation path for docs (but not for internal help files) @${REINPLACE_CMD} -e '/LICENSE/d ; \ /#info files/s,share/luminance-hdr,${DOCSDIR_REL},' \ ${WRKSRC}/CMakeLists.txt # Point to the right location for program where to look for GPL text @${REINPLACE_CMD} -e 's,LICENSE,${LICENSE}, ; \ s,share/doc/luminance-hdr,share/licenses/${PKGNAME},' \ ${WRKSRC}/src/UI/UMessageBox.cpp .include diff --git a/graphics/luminance-qt5/files/patch-build__files_Modules_FindOpenEXR.cmake b/graphics/luminance-qt5/files/patch-build__files_Modules_FindOpenEXR.cmake new file mode 100644 index 000000000000..a6e21e9799d8 --- /dev/null +++ b/graphics/luminance-qt5/files/patch-build__files_Modules_FindOpenEXR.cmake @@ -0,0 +1,23 @@ +--- build_files/Modules/FindOpenEXR.cmake.orig 2017-05-10 19:14:06 UTC ++++ build_files/Modules/FindOpenEXR.cmake +@@ -39,18 +39,16 @@ if (NOT OPENEXR_VERSION) + endif() + if (${OPENEXR_VERSION} VERSION_LESS "2.1") + SET(_openexr_FIND_COMPONENTS +- Half + Iex +- IlmImf ++ OpenEXR + IlmThread + Imath + ) + else () + string(REGEX REPLACE "([0-9]+)[.]([0-9]+).*" "\\1_\\2" _openexr_libs_ver ${OPENEXR_VERSION}) + SET(_openexr_FIND_COMPONENTS +- Half ++ OpenEXR-${_openexr_libs_ver} + Iex-${_openexr_libs_ver} +- IlmImf-${_openexr_libs_ver} + IlmThread-${_openexr_libs_ver} + Imath-${_openexr_libs_ver} + )