aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2015-02-28 19:56:24 +0800
committergerald <gerald@FreeBSD.org>2015-02-28 19:56:24 +0800
commitd12e23106e500eaed4c640bb8f7e44d43f663b1f (patch)
treecb76b3bdcfa0ca650c796652c4a76a08d8c72aa7 /graphics
parentadde14e45fddffaa32728ba61ee57bd19fceacd2 (diff)
downloadfreebsd-ports-gnome-d12e23106e500eaed4c640bb8f7e44d43f663b1f.tar.gz
freebsd-ports-gnome-d12e23106e500eaed4c640bb8f7e44d43f663b1f.tar.zst
freebsd-ports-gnome-d12e23106e500eaed4c640bb8f7e44d43f663b1f.zip
If building with GCC, force the use of a current version, since some
dependencies do that now and the old GCC 4.2 system compiler fails to link with those. PR: 197907, 196712 Submitted by: FreeBSD@ShaneWare.Biz (maintainer)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/openimageio/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile
index c16728ebf037..57cf424e395c 100644
--- a/graphics/openimageio/Makefile
+++ b/graphics/openimageio/Makefile
@@ -20,7 +20,7 @@ GH_COMMIT= 99a9988
# fbm also installs bin/idiff
CONFLICTS= fbm-[0-9]*
-USES= cmake:outsource
+USES= cmake:outsource compiler
CMAKE_ARGS= -DBUILDSTATIC:BOOL=OFF \
-DLINKSTATIC:BOOL=OFF \
-DNOTHREADS:BOOL=OFF \
@@ -71,6 +71,13 @@ CMAKE_ENV+= QTDIR=${QT_PREFIX} QT_INCLUDES=${QT_INCDIR}
CMAKE_ARGS+= -DUSE_OPENGL:BOOL=OFF -DUSE_QT:BOOL=OFF
.endif
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == gcc
+# GCC 4.2 does not link with other ports that now use GCC 4.9 or later.
+USE_GCC= yes
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|share/doc/OpenImageIO|${DOCSDIR}|g' \
${WRKSRC}/CMakeLists.txt
@@ -81,4 +88,4 @@ post-install:
${LN} -sf libOpenImageIO_Util.so.1.4 ${STAGEDIR}${PREFIX}/lib/libOpenImageIO_Util.so.1
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>