diff options
author | Matthias Andree <mandree@FreeBSD.org> | 2014-08-15 20:37:31 +0000 |
---|---|---|
committer | Matthias Andree <mandree@FreeBSD.org> | 2014-08-15 20:37:31 +0000 |
commit | 515db2ed104a7de4ffb582600576cfa5136637cc (patch) | |
tree | 3c1641f7451c72c9a9f849082551388e5ddbe65a /graphics/OpenEXR/Makefile | |
parent | e55c717cb08120ba9ecda980d27c3ddc87d94f95 (diff) | |
download | ports-515db2ed104a7de4ffb582600576cfa5136637cc.tar.gz ports-515db2ed104a7de4ffb582600576cfa5136637cc.zip |
Notes
Diffstat (limited to 'graphics/OpenEXR/Makefile')
-rw-r--r-- | graphics/OpenEXR/Makefile | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/graphics/OpenEXR/Makefile b/graphics/OpenEXR/Makefile index adcb84291c86..d03e16cb799c 100644 --- a/graphics/OpenEXR/Makefile +++ b/graphics/OpenEXR/Makefile @@ -2,8 +2,8 @@ # $FreeBSD$ PORTNAME= OpenEXR -PORTVERSION= 2.1.0 -PORTREVISION= 3 +PORTVERSION= 2.2.0 +PORTREVISION= 1 CATEGORIES= graphics devel MASTER_SITES= SAVANNAH/openexr/ DISTNAME= openexr-${DISTVERSION} @@ -13,7 +13,8 @@ COMMENT= High dynamic-range (HDR) image file format LICENSE= BSD3CLAUSE -LIB_DEPENDS= libImath.so:${PORTSDIR}/graphics/ilmbase +# exact version required to avoid hard-to-debug issues +LIB_DEPENDS= libImath-2_2.so.12:${PORTSDIR}/graphics/ilmbase WRKSRC= ${WRKDIR}/${DISTNAME} @@ -21,6 +22,7 @@ USES= compiler:features gmake libtool:keepla pathfix pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS+=--disable-ilmbasetest --enable-imfexamples USE_LDCONFIG= yes +CPPFLAGS+= -I. -I../IlmImf # must be linked with -l{thr|pthread} explicitly LDFLAGS+= ${PTHREAD_LIBS} @@ -42,10 +44,17 @@ OPTIONS_SUB= yes LARGE_STACK_CONFIGURE_ENABLE= large-stack -.include <bsd.port.options.mk> +.include <bsd.port.pre.mk> -MAJORVER= 2_1 -VER= 21 +# If default compiler is GCC, upgrade it because +# g++ 4.2 is too old to auto-upgrade 0xffffffffffffffffl to +# a long long integer constant - and has likely more issues. +.if ${COMPILER_TYPE} == gcc +USE_GCC= yes +.endif + +MAJORVER= 2_2 +VER= 22 PLIST_SUB= MAJORVER=${MAJORVER} PLIST_SUB+= VER=${VER} @@ -59,7 +68,7 @@ post-patch: -e 's|$$(EXTRA_DIST)||' \ ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/Makefile.in -# too many reports about compileration failures, so sanity check C++ +# too many reports about compilation failures, so sanity check C++ # library _ilm_libcxx=${COMPILER_FEATURES:Mlib*c++} pre-configure: @@ -79,11 +88,11 @@ regression-test regression test check: build @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check) post-install: - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libIlmImf-Imf_${MAJORVER}.so.${VER} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libIlmImf-${MAJORVER}.so.${VER} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR2} ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |