Date: Thu, 3 Jul 2014 18:13:33 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r360439 - head/graphics/OpenEXR Message-ID: <201407031813.s63IDXZK099068@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mandree Date: Thu Jul 3 18:13:33 2014 New Revision: 360439 URL: http://svnweb.freebsd.org/changeset/ports/360439 QAT: https://qat.redports.org/buildarchive/r360439/ Log: Add sanity check to match LIB_DEPENDS C++ library against ours. Modified: head/graphics/OpenEXR/Makefile Modified: head/graphics/OpenEXR/Makefile ============================================================================== --- head/graphics/OpenEXR/Makefile Thu Jul 3 18:09:23 2014 (r360438) +++ head/graphics/OpenEXR/Makefile Thu Jul 3 18:13:33 2014 (r360439) @@ -17,7 +17,7 @@ LIB_DEPENDS= libImath.so:${PORTSDIR}/gra WRKSRC= ${WRKDIR}/${DISTNAME} -USES= gmake libtool:keepla pathfix pkgconfig +USES= compiler:features gmake libtool:keepla pathfix pkgconfig GNU_CONFIGURE= yes CONFIGURE_ARGS+=--disable-ilmbasetest --enable-imfexamples USE_LDCONFIG= yes @@ -59,6 +59,18 @@ post-patch: -e 's|$$(EXTRA_DIST)||' \ ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/Makefile.in +# too many reports about compileration failures, so sanity check C++ +# library +_ilm_libcxx=${COMPILER_FEATURES:Mlib*c++} +pre-configure: + @${OBJDUMP} -j .dynstr -p ${LOCALBASE}/lib/libImath.so \ + | ${EGREP} -q '^[[:space:]]*NEEDED[[:space:]]+${_ilm_libcxx:C/\+/\\+/g}\.' \ + || { ${ECHO_CMD} "*** Your ilmbase package uses a non-default C++ standard library. ***" ; \ + ${ECHO_CMD} "*** Please recompile and reinstall ilmbase with the default ***" ; \ + ${ECHO_CMD} "*** C++ compiler before trying to build OpenEXR. Aborting. ***" ; \ + exit 1; } + + .if ! ${PORT_OPTIONS:MEXAMPLES} EXTRA_PATCHES+=${FILESDIR}/extra-patch-IlmImfExamples__Makefile.in .endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407031813.s63IDXZK099068>