Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2019 14:24:33 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r500495 - head/graphics/opencolorio
Message-ID:  <201904301424.x3UEOXMv077336@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Tue Apr 30 14:24:33 2019
New Revision: 500495
URL: https://svnweb.freebsd.org/changeset/ports/500495

Log:
  graphics/opencolorio: fix build with GCC-based architectures
  
  Add -Wno-unused-function -Wno-error to CXXFLAGS when using GCC.
  
  While here, add USES=localbase:ldflags.
  
  PR:		233888
  Approved by:	FreeBSD@ShaneWare.Biz (maintainer), mat (mentor)
  Differential Revision:	https://reviews.freebsd.org/D20089

Modified:
  head/graphics/opencolorio/Makefile

Modified: head/graphics/opencolorio/Makefile
==============================================================================
--- head/graphics/opencolorio/Makefile	Tue Apr 30 14:18:36 2019	(r500494)
+++ head/graphics/opencolorio/Makefile	Tue Apr 30 14:24:33 2019	(r500495)
@@ -12,7 +12,8 @@ COMMENT?=	Complete color management solution
 
 LICENSE=	BSD3CLAUSE
 
-USES=		alias cmake compiler:c++11-lang pkgconfig shebangfix
+USES=		alias cmake compiler:c++11-lang localbase:ldflags pkgconfig \
+		shebangfix
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	imageworks
@@ -20,10 +21,10 @@ GH_PROJECT=	OpenColorIO
 
 CMAKE_ON=	USE_EXTERNAL_TINYXML USE_EXTERNAL_YAML
 CMAKE_OFF=	OCIO_BUILD_JNIGLUE OCIO_BUILD_NUKE OCIO_BUILD_STATIC
-LDFLAGS+=	-L${LOCALBASE}/lib
-# pyglue gives an error on use of register
-# this should only be an error using c++17
-CXXFLAGS+=	-Wno-deprecated-register
+
+CXXFLAGS=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
+CXXFLAGS_gcc=	-Wno-unused-function -Wno-error
+CXXFLAGS_clang=	-Wno-deprecated-register
 
 SHEBANG_FILES=	share/sphinx/ExtractRstFromSourceCPP.py \
 		share/sphinx/ExtractRstFromSourceSimple.py \



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