summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2014-01-15 05:53:52 +0000
committerryoon <ryoon@pkgsrc.org>2014-01-15 05:53:52 +0000
commitdc6e77da9254cc94050eb348e9b7f102138a3134 (patch)
treee51fc35a3c003de242acd085a4624207df330efe /multimedia
parenta1c99d325c2c4deb144b944b0641979867ef7f6b (diff)
downloadpkgsrc-dc6e77da9254cc94050eb348e9b7f102138a3134.tar.gz
Fix PR pkg/48508: Fix build under NetBSD 5 and Solaris 10
* Use GNU tr from sysutils/coreutils for Solaris 10 * GCC 4.4 or later and newer binutils (gas) is required to compile ssse3 code.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/libvpx/Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
index 83aa0454986..14d1bb90bb0 100644
--- a/multimedia/libvpx/Makefile
+++ b/multimedia/libvpx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2014/01/10 08:43:42 pho Exp $
+# $NetBSD: Makefile,v 1.35 2014/01/15 05:53:52 ryoon Exp $
DISTNAME= libvpx_1.3.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
@@ -11,6 +11,9 @@ HOMEPAGE= http://code.google.com/p/webm/
COMMENT= On2 VP8 library from Google
LICENSE= modified-bsd
+# PR pkg/48508: GCC 4.4 or later is required to compile ssse3 code.
+GCC_REQD= 4.4
+
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES= c c++
@@ -95,10 +98,23 @@ CONFIGURE_ENV+= RTCD_OPTIONS='--disable-sse2 --disable-sse3 --disable-ssse3 --d
CONFIGURE_ARGS+= --disable-runtime-cpu-detect
.endif
+# Under Solaris 10 its /usr/xpg4/bin/tr is not sufficient. PR pkg/48508
+.if !empty(MACHINE_PLATFORM:MSunOS-5.10*)
+BUILD_DEPENDS= coreutils-[0-9]*:../../sysutils/coreutils
+FIND_PREFIX:= GTRDIR=coreutils
+.include "../../mk/find-prefix.mk"
+TOOLS_PLATFORM.tr= ${GTRDIR}/bin/gtr
+.endif
+
BUILD_TARGET= # none
post-extract:
${CP} ${FILESDIR}/strip_fPIC.sh ${WRKSRC}
+# PR pkg/48508: newer gas from binutils is required to compile ssse3 code.
+.if !empty(MACHINE_PLATFORM:MNetBSD-5.*) || !empty(MACHINE_PLATFORM:MSunOS-5.10*)
+.include "../../devel/binutils/buildlink3.mk"
+.include "../../devel/binutils/override-as.mk"
+.endif
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"