svn commit: r360439 - head/graphics/OpenEXR

Matthias Andree mandree at FreeBSD.org
Thu Jul 3 18:13:33 UTC 2014


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


More information about the svn-ports-all mailing list