Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Feb 2015 11:56:25 +0000 (UTC)
From:      Gerald Pfeifer <gerald@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380135 - head/graphics/openimageio
Message-ID:  <201502281156.t1SBuPl7024381@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gerald
Date: Sat Feb 28 11:56:24 2015
New Revision: 380135
URL: https://svnweb.freebsd.org/changeset/ports/380135
QAT: https://qat.redports.org/buildarchive/r380135/

Log:
  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)

Modified:
  head/graphics/openimageio/Makefile

Modified: head/graphics/openimageio/Makefile
==============================================================================
--- head/graphics/openimageio/Makefile	Sat Feb 28 11:16:33 2015	(r380134)
+++ head/graphics/openimageio/Makefile	Sat Feb 28 11:56:24 2015	(r380135)
@@ -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_INCLUD
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502281156.t1SBuPl7024381>