From 67a6ad8f2766e7b078c9e96e0d033b59caa04ca5 Mon Sep 17 00:00:00 2001 From: obache Date: Sun, 20 Jul 2014 11:16:14 +0000 Subject: Move compiler check last, allow to overwrite GCC_REQD in included files. PR pkg/48985. --- graphics/openimageio/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'graphics') diff --git a/graphics/openimageio/Makefile b/graphics/openimageio/Makefile index 6bf932a30fd..fb34da38dac 100644 --- a/graphics/openimageio/Makefile +++ b/graphics/openimageio/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.27 2014/07/09 20:00:01 ryoon Exp $ +# $NetBSD: Makefile,v 1.28 2014/07/20 11:16:14 obache Exp $ OIIOVER= 1.4.10 DISTNAME= oiio-Release-${OIIOVER} @@ -25,11 +25,6 @@ CMAKE_ARGS+= -DINSTALL_DOCS:BOOL=OFF # For redefinition of _rotl macro. BUILDLINK_TRANSFORM+= rm:-Werror -.include "../../mk/compiler.mk" -.if !empty(PKGSRC_COMPILER:Mclang) -CXXFLAGS+= -Wno-deprecated-register -.endif - .include "../../devel/boost-libs/buildlink3.mk" .include "../../devel/hdf5/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" @@ -44,4 +39,10 @@ CXXFLAGS+= -Wno-deprecated-register .include "../../x11/qt4-libs/buildlink3.mk" BUILDLINK_DEPMETHOD.qt4-tools= build .include "../../x11/qt4-tools/buildlink3.mk" + +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mclang) +CXXFLAGS+= -Wno-deprecated-register +.endif + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3