From 7e60536f4d1e32c82add914b619ff8abf71377de Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 9 Apr 2015 17:09:01 +0000 Subject: Improve Clang build fix and use it under Mac OS X as well. The problem is specific to the verion of Clang (3.5 and newer) and not the platform. This package now builds under Mac OS X Yosemite with the latest version of Xcode tools. --- multimedia/libvpx/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'multimedia') diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile index 919905a7af0..078352dad14 100644 --- a/multimedia/libvpx/Makefile +++ b/multimedia/libvpx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.51 2015/02/25 11:13:54 adam Exp $ +# $NetBSD: Makefile,v 1.52 2015/04/09 17:09:01 tron Exp $ DISTNAME= libvpx_1.3.0.orig PKGNAME= ${DISTNAME:S/_/-/:S/.orig//} @@ -93,9 +93,12 @@ CONFIGURE_ARGS+= --target=x86-solaris-gcc .include "../../mk/compiler.mk" .if !empty(PKGSRC_COMPILER:Mclang) CXXFLAGS+= -std=c++11 -. if ${OPSYS} == "NetBSD" +. if ${OPSYS} == "NetBSD" || ${OPSYS} == "Darwin" # https://bugzilla.mozilla.org/show_bug.cgi?id=982693 -CFLAGS+= -fno-integrated-as +SUBST_CLASSES+= clang +SUBST_STAGE.clang= post-patch +SUBST_FILES.clang= build/make/Makefile +SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM -fno-integrated-as/' . endif .endif -- cgit v1.2.3