svn commit: r500495 - head/graphics/opencolorio
Piotr Kubaj
pkubaj at FreeBSD.org
Tue Apr 30 14:24:34 UTC 2019
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 at 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 \
More information about the svn-ports-head
mailing list