diff --git a/graphics/openexr/Makefile b/graphics/openexr/Makefile index b5403286b86c..eb58e44c8d73 100644 --- a/graphics/openexr/Makefile +++ b/graphics/openexr/Makefile @@ -1,106 +1,106 @@ PORTNAME?= openexr -PORTVERSION= 3.2.0 +PORTVERSION= 3.2.1 PORTREVISION?= 0 CATEGORIES= graphics devel .if !defined(MASTERDIR) MASTER_SITES= https://raw.githubusercontent.com/AcademySoftwareFoundation/openexr-images/v1.0/:testimages \ LOCAL/mandree/openexr/:DEFAULT \ LOCAL/mandree/openexr/:testimages DISTFILES+= Beachball/multipart.0001.exr:testimages DISTFILES+= Beachball/singlepart.0001.exr:testimages DISTFILES+= Chromaticities/Rec709_YC.exr:testimages DISTFILES+= Chromaticities/Rec709.exr:testimages DISTFILES+= Chromaticities/XYZ_YC.exr:testimages DISTFILES+= Chromaticities/XYZ.exr:testimages DISTFILES+= LuminanceChroma/Flowers.exr:testimages DISTFILES+= LuminanceChroma/Garden.exr:testimages DISTFILES+= MultiResolution/ColorCodedLevels.exr:testimages DISTFILES+= MultiResolution/WavyLinesCube.exr:testimages DISTFILES+= MultiResolution/WavyLinesLatLong.exr:testimages DISTFILES+= MultiView/Adjuster.exr:testimages DISTFILES+= TestImages/GammaChart.exr:testimages DISTFILES+= TestImages/GrayRampsHorizontal.exr:testimages DISTFILES+= v2/LeftView/Balls.exr:testimages DISTFILES+= v2/Stereo/Trunks.exr:testimages .endif DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTFILES:M*${EXTRACT_SUFX}} MAINTAINER= mandree@FreeBSD.org COMMENT= High dynamic-range (HDR) image file format WWW= https://www.openexr.com/ LICENSE= BSD3CLAUSE BUILD_DEPENDS?= help2man:misc/help2man # exact libImath version required to avoid hard-to-debug issues LIB_DEPENDS?= libImath-3_1.so.29:math/Imath \ libdeflate.so:archivers/libdeflate USES?= cmake compiler:c++14-lang cpe pathfix pkgconfig USE_GITHUB= yes GH_TUPLE= AcademySoftwareFoundation:openexr:v${PORTVERSION} USE_LDCONFIG= yes CMAKE_ARGS?= -DCMAKE_DEBUG_POSTFIX= CPPFLAGS+= -I. # must be linked with -l{thr|pthread} explicitly LDFLAGS+= -lpthread _MAJORVER= 3_2 _VER= 31 _REL= ${PORTVERSION} PLIST_SUB+= MAJORVER=${_MAJORVER} \ VER=${_VER} \ REL=${_REL} PORTDOCS= * PORTEXAMPLES= * .if !defined(MASTERDIR) OPTIONS_DEFINE= DOCS EXAMPLES OPTIONS_SUB= yes DOCS_CMAKE_BOOL=OPENEXR_INSTALL_DOCS INSTALL_DOCS _DOCSRCDIR1= ${WRKSRC} _DOC_FILES1= CHANGES.md CONTRIBUTING.md GOVERNANCE.md LICENSE.md SECURITY.md \ CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md # too many reports about compilation failures, so # sanity check we are using the same C++ standard library _imath_libcxx= ${COMPILER_FEATURES:Mlib*c++} # This would be better placed in pre-test to avoid wasting space, # but if we do that, the cmake in src/test/bin will go downloading the files, # so we do not benefit from our checksumming and the distdir caching. post-extract: ${MKDIR} ${CONFIGURE_WRKSRC}/src/test/bin .for i in ${DISTFILES:M*.exr} ${PRINTF} %s ${i} | ( cd ${DISTDIR}/${DIST_SUBDIR} && ${CPIO} -dumpl ${CONFIGURE_WRKSRC}/src/test/bin/ 2>/dev/null ) .endfor pre-configure: @${READELF} -d ${LOCALBASE}/lib/libImath.so \ | ${EGREP} -q '\.*\[${_imath_libcxx:C/\+/\\+/g}\.' \ || { ${ECHO_CMD} "*** Your Imath package uses a different C++ standard library than ***" ; \ ${ECHO_CMD} "*** OpenEXR would. Please recompile and reinstall Imath with the ***" ; \ ${ECHO_CMD} "*** same C++ std. library before trying to build OpenEXR. Abort. ***" ; \ exit 1; } post-install-EXAMPLES-on: ${MV} \ ${STAGEDIR}${PREFIX}/share/doc/OpenEXR/examples/ ${STAGEDIR}${EXAMPLESDIR} @${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/OpenEXR 2>/dev/null || : post-install-EXAMPLES-off: ${RM} -R ${STAGEDIR}${PREFIX}/share/doc/OpenEXR/examples/ @${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/OpenEXR 2>/dev/null || : do-test: cd ${BUILD_WRKSRC} && ctest -j ${MAKE_JOBS_NUMBER} .endif .include diff --git a/graphics/openexr/distinfo b/graphics/openexr/distinfo index d6df096407a8..a92ad3fd2c0a 100644 --- a/graphics/openexr/distinfo +++ b/graphics/openexr/distinfo @@ -1,35 +1,35 @@ -TIMESTAMP = 1693588963 +TIMESTAMP = 1695852029 SHA256 (openexr/Beachball/multipart.0001.exr) = 0cd032069fbaa14a2766861fef9893ea66a6494ff64650725d3b26a500df774b SIZE (openexr/Beachball/multipart.0001.exr) = 2894260 SHA256 (openexr/Beachball/singlepart.0001.exr) = 29719942ed3c095a8f8f111fc139fc4c28f446007f5bfce00177cae585b1a87a SIZE (openexr/Beachball/singlepart.0001.exr) = 2347698 SHA256 (openexr/Chromaticities/Rec709_YC.exr) = dd7355a2c2a694bae041500af4f61ae96bdc02a6e9474fa53d4e4ccef83c8774 SIZE (openexr/Chromaticities/Rec709_YC.exr) = 378570 SHA256 (openexr/Chromaticities/Rec709.exr) = 15028cbf7bf0efa43738890af715ec550d26ae9e32a1020d0f4e7c785d3a370e SIZE (openexr/Chromaticities/Rec709.exr) = 908168 SHA256 (openexr/Chromaticities/XYZ_YC.exr) = 7d0b9b7e6f19a698ff733539de15760a07f6771a1a4f5c1e545ac03d7a4ce293 SIZE (openexr/Chromaticities/XYZ_YC.exr) = 364055 SHA256 (openexr/Chromaticities/XYZ.exr) = 8d97c476726ae67a086220463c91b7202279a4c7c1ea94810ce75a4c28e7825f SIZE (openexr/Chromaticities/XYZ.exr) = 930048 SHA256 (openexr/LuminanceChroma/Flowers.exr) = d1016a9177e723122f982fe79077dd71d42bf2b4da565d35f4c728f8a5688236 SIZE (openexr/LuminanceChroma/Flowers.exr) = 758083 SHA256 (openexr/LuminanceChroma/Garden.exr) = c19060f8252ec7cce66979c04c883766d70343ca1916ccc538d02eea982cfc66 SIZE (openexr/LuminanceChroma/Garden.exr) = 399046 SHA256 (openexr/MultiResolution/ColorCodedLevels.exr) = ba836f7d37ea268ef9e96d7f0e28d035f4f197be12356133676282c578ada643 SIZE (openexr/MultiResolution/ColorCodedLevels.exr) = 53298 SHA256 (openexr/MultiResolution/WavyLinesCube.exr) = f6cb5be7cf0b173a04287a51018d6c892ec2caca3c9826df225d74d4bc9b67fc SIZE (openexr/MultiResolution/WavyLinesCube.exr) = 410587 SHA256 (openexr/MultiResolution/WavyLinesLatLong.exr) = 34b1ce44803f9486db8eaea5e1b5f828698797ee7a437ecf62851d9138e10279 SIZE (openexr/MultiResolution/WavyLinesLatLong.exr) = 464456 SHA256 (openexr/MultiView/Adjuster.exr) = 966aa7bbdaec18262c96b0332365da723f537087285b99b1589cb573c5e05269 SIZE (openexr/MultiView/Adjuster.exr) = 4156415 SHA256 (openexr/TestImages/GammaChart.exr) = bb2819850542afae5e2208ba39724c23fe1a07b80b96f4fd093b3c9a3ca8ac2f SIZE (openexr/TestImages/GammaChart.exr) = 23272 SHA256 (openexr/TestImages/GrayRampsHorizontal.exr) = 7858e712af500e737ebaedbf40730646529e6093371ddb939becc58700b8fc6a SIZE (openexr/TestImages/GrayRampsHorizontal.exr) = 18296 SHA256 (openexr/v2/LeftView/Balls.exr) = 86503ff1b0a07372058127896d3858facf625e0e78374ca5c9d26ec28aa3ce91 SIZE (openexr/v2/LeftView/Balls.exr) = 5065464 SHA256 (openexr/v2/Stereo/Trunks.exr) = 8a2f04e8d5b8ef1a5fd48198cf2059f1dd01129e4cccd7a4c96caf8c472676f7 SIZE (openexr/v2/Stereo/Trunks.exr) = 3858752 -SHA256 (openexr/AcademySoftwareFoundation-openexr-3.2.0-v3.2.0_GH0.tar.gz) = b1b200606640547fceff0d3ebe01ac05c4a7ae2a131be7e9b3e5b9f491ef35b3 -SIZE (openexr/AcademySoftwareFoundation-openexr-3.2.0-v3.2.0_GH0.tar.gz) = 18822949 +SHA256 (openexr/AcademySoftwareFoundation-openexr-3.2.1-v3.2.1_GH0.tar.gz) = 61e175aa2203399fb3c8c2288752fbea3c2637680d50b6e306ea5f8ffdd46a9b +SIZE (openexr/AcademySoftwareFoundation-openexr-3.2.1-v3.2.1_GH0.tar.gz) = 18824332 diff --git a/graphics/openexr/files/patch-cmake_OpenEXRSetup.cmake b/graphics/openexr/files/patch-cmake_OpenEXRSetup.cmake new file mode 100644 index 000000000000..f83fac22e357 --- /dev/null +++ b/graphics/openexr/files/patch-cmake_OpenEXRSetup.cmake @@ -0,0 +1,11 @@ +--- cmake/OpenEXRSetup.cmake.orig 2023-09-25 02:46:06 UTC ++++ cmake/OpenEXRSetup.cmake +@@ -215,7 +215,7 @@ if(NOT TARGET PkgConfig::deflate AND NOT deflate_FOUND + set(EXR_DEFLATE_LIB) + else() + set(EXR_DEFLATE_INCLUDE_DIR) +- set(EXR_DEFLATE_LIB ${deflate_LIBRARIES}) ++ set(EXR_DEFLATE_LIB ${deflate_LINK_LIBRARIES}) + # set EXR_DEFATE_LDFLAGS for OpenEXR.pc.in for static build + if (BUILD_SHARED_LIBS) + set(EXR_DEFLATE_LDFLAGS "")