summaryrefslogtreecommitdiff
path: root/multimedia/libvpx/Makefile
diff options
context:
space:
mode:
authorsno <sno@pkgsrc.org>2014-02-16 09:58:18 +0000
committersno <sno@pkgsrc.org>2014-02-16 09:58:18 +0000
commit3d42e4ee95446e40c6e67e9e561b6df581aa6fce (patch)
treecbeab3edab67d8bd4e8110e337b877031d9835b3 /multimedia/libvpx/Makefile
parent454cda2db408ca159c1f93ca6f83740e0bdb93cf (diff)
downloadpkgsrc-3d42e4ee95446e40c6e67e9e561b6df581aa6fce.tar.gz
be stricter when requiring gcc 4.4+:
* pkg/48508 refers only SunOS and NetBSD (in fact, only NetBSD 5 and Solaris 10 - but I expect at least lower versions come with same issues and higher might have improved toolchain) * check only for x86 architectures (no sse3 on sparc, ppc, arm, mips, ...) * only require minimum gcc version when gcc is the used compiler - SunPRO, clang, pcc ... might behave differently * hopefully someone picks it up and fix the binutils dependency, if required
Diffstat (limited to 'multimedia/libvpx/Makefile')
-rw-r--r--multimedia/libvpx/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
index 97a479387de..29c2ae36c89 100644
--- a/multimedia/libvpx/Makefile
+++ b/multimedia/libvpx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2014/02/15 10:53:20 jperkin Exp $
+# $NetBSD: Makefile,v 1.37 2014/02/16 09:58:18 sno Exp $
DISTNAME= libvpx_1.3.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
@@ -26,12 +26,12 @@ CONFIGURE_ARGS+= --disable-unit-tests
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} != "Darwin"
-# PR pkg/48508: GCC 4.4 or later is required to compile ssse3 code.
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+.if ${PKGSRC_COMPILER} == "gcc" && ${OPSYS} == "NetBSD" && ${OPSYS} == "SunOS"
+# PR pkg/48508: GCC 4.4 or later is required to compile ssse3 code on NetBSD & Solaris.
GCC_REQD= 4.4
.endif
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
BUILD_DEPENDS+= yasm-[0-9]*:../../devel/yasm
.endif