8dc0682c36
ChangeLog: https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v2.5.3 "Patch release with various bug/security fixes and build/install fixes, plus a performance optimization: * Various sanitizer/fuzz-identified issues related to handling of invalid input * Fixes to misc compiler warnings [...] * Read performance optimization (#782) * Fix for building on non-glibc (#798) * Fixes to tests" The full name of shared libraries changed from *.25.0.1 to *.25.0.2 => PORTREVISION bumps for all ports that use either ilmbase or openexr coming up in separate commit to ease MFH. All test builds of direct users succeeded on 12.1 amd64. MFH: 2020Q3 (patchlevel update w/ security fixes) Security: b1d6b383-dd51-11ea-a688-7b12871ef3ad
90 lines
2.6 KiB
Makefile
90 lines
2.6 KiB
Makefile
# Created by: nork@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openexr
|
|
PORTVERSION= 2.5.3
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= LOCAL/mandree/:test
|
|
DISTFILES= ${PORTNAME}-2.2.0-comp_dwa-test-images.tar.xz:test
|
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
|
COMMENT= High dynamic-range (HDR) image file format
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
# exact version required to avoid hard-to-debug issues
|
|
LIB_DEPENDS= libImath-2_5.so.25:graphics/ilmbase
|
|
|
|
USES= cmake compiler:c++14-lang libtool pathfix pkgconfig
|
|
|
|
USE_GITHUB= yes
|
|
GH_TUPLE= AcademySoftwareFoundation:openexr:v${PORTVERSION}
|
|
|
|
USE_LDCONFIG= yes
|
|
CPPFLAGS+= -I. -I../IlmImf
|
|
# must be linked with -l{thr|pthread} explicitly
|
|
LDFLAGS+= -lpthread
|
|
|
|
WRKSRC_SUBDIR= OpenEXR
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
OPTIONS_SUB= yes
|
|
|
|
_DOCSRCDIR1= ${WRKSRC:H}/
|
|
_DOCSRCDIR2= ${WRKSRC}/doc
|
|
_DOC_FILES1= CHANGES.md CONTRIBUTING.md GOVERNANCE.md LICENSE.md SECURITY.md \
|
|
CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md
|
|
_DOC_FILES2= *.odt *.pdf
|
|
|
|
MAJORVER= 2_5
|
|
_VER= 25
|
|
_MINVER= 0
|
|
_PLVER= 2
|
|
|
|
PLIST_SUB+= MAJORVER=${MAJORVER} \
|
|
VER=${_VER} \
|
|
MINVER=${_MINVER} \
|
|
PLVER=${_PLVER}
|
|
|
|
# too many reports about compilation failures, so
|
|
# sanity check we are using the same C++ standard library
|
|
_ilm_libcxx= ${COMPILER_FEATURES:Mlib*c++}
|
|
pre-configure:
|
|
@${READELF} -d ${LOCALBASE}/lib/libImath.so \
|
|
| ${EGREP} -q '\<NEEDED\>.*\[${_ilm_libcxx:C/\+/\\+/g}\.' \
|
|
|| { ${ECHO_CMD} "*** Your ilmbase package uses a different C++ standard library than ***" ; \
|
|
${ECHO_CMD} "*** OpenEXR would. Please recompile and reinstall ilmbase with the ***" ; \
|
|
${ECHO_CMD} "*** same C++ std. library before trying to build OpenEXR. Abort. ***" ; \
|
|
exit 1; }
|
|
|
|
post-install:
|
|
${STRIP_CMD} \
|
|
${STAGEDIR}${PREFIX}/lib/libIlmImf-${MAJORVER}.so.${_VER} \
|
|
${STAGEDIR}${PREFIX}/lib/libIlmImfUtil-${MAJORVER}.so.${_VER}
|
|
|
|
post-install-DOCS-off:
|
|
${RM} ${STAGEDIR}${DOCSDIR:H}/OpenEXR/*.pdf
|
|
@${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/${PORTNAME} 2>/dev/null || :
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${_DOC_FILES1:S|^|${_DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${_DOC_FILES2:S|^|${_DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR}
|
|
${MV} ${STAGEDIR}${DOCSDIR:H}/OpenEXR/[a-df-zA-Z]* ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-off:
|
|
${RM} -R ${STAGEDIR}${PREFIX}/share/doc/OpenEXR/examples/
|
|
@${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/OpenEXR 2>/dev/null || :
|
|
|
|
post-install-EXAMPLES-on:
|
|
${MV} \
|
|
${STAGEDIR}${PREFIX}/share/doc/OpenEXR/examples/ ${STAGEDIR}${EXAMPLESDIR}
|
|
@${RMDIR} ${STAGEDIR}${PREFIX}/share/doc/OpenEXR 2>/dev/null || :
|
|
|
|
do-test:
|
|
cd ${BUILD_WRKSRC} && ctest -j ${MAKE_JOBS_NUMBER}
|
|
|
|
.include <bsd.port.mk>
|