1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

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
This commit is contained in:
Piotr Kubaj 2019-04-30 14:24:33 +00:00
parent 9ed8bf08e5
commit 191e257bcf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=500495

View File

@ -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 \