svn commit: r366193 - head/graphics/Coin
Gerald Pfeifer
gerald at FreeBSD.org
Tue Aug 26 07:16:22 UTC 2014
Author: gerald
Date: Tue Aug 26 07:16:21 2014
New Revision: 366193
URL: http://svnweb.freebsd.org/changeset/ports/366193
QAT: https://qat.redports.org/buildarchive/r366193/
Log:
Fix the build with GCC 4.8. Coin mixes stdlib.h (the C header) and cstdlib
(the C++ header) quite freely, which results in conflicts and fails with
recent compilers. Address this via a post-patch substitution to avoid some
70 individual patches.
PR: 192133
Submitted by: Christoph Moench-Tegeder <cmt at burggraben.net>
Modified:
head/graphics/Coin/Makefile
Modified: head/graphics/Coin/Makefile
==============================================================================
--- head/graphics/Coin/Makefile Tue Aug 26 06:58:19 2014 (r366192)
+++ head/graphics/Coin/Makefile Tue Aug 26 07:16:21 2014 (r366193)
@@ -28,6 +28,7 @@ MAKE_ENV= LANG=C
post-patch:
@${REINPLACE_CMD} -e 's|DATA install-data-local|DATA|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} \( -name \*.cpp -o -name \*.h -a \! -name expat.h \) -a -print0 | ${XARGS} -0 ${REINPLACE_CMD} 's/<stdlib.h>/<cstdlib>/g'
post-build:
@${REINPLACE_CMD} -e '/^ldflags=/s|-R|-Wl,-rpath,|' ${WRKSRC}/coin-default.cfg
More information about the svn-ports-head
mailing list