summaryrefslogtreecommitdiff
path: root/multimedia/libvpx
diff options
context:
space:
mode:
authortron <tron>2011-03-12 11:00:01 +0000
committertron <tron>2011-03-12 11:00:01 +0000
commit5a1b212de8c0b6b9510f268a1cb9ea5b21a2e9cc (patch)
tree9ca35ea9c49e2a605321fec825d66d4969159dbf /multimedia/libvpx
parent3b3b9c47a5d7d45a2ab8663ba90019e3301865e4 (diff)
downloadpkgsrc-5a1b212de8c0b6b9510f268a1cb9ea5b21a2e9cc.tar.gz
Fix build under Mac OS X i386. Further changes might be required to
fix PPC and x86_64.
Diffstat (limited to 'multimedia/libvpx')
-rw-r--r--multimedia/libvpx/Makefile17
-rw-r--r--multimedia/libvpx/files/strip_fPIC.sh2
2 files changed, 17 insertions, 2 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
index 54fe84d5bca..b2c8c6cf772 100644
--- a/multimedia/libvpx/Makefile
+++ b/multimedia/libvpx/Makefile
@@ -1,5 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2011/03/11 15:25:26 drochner Exp $
-#
+# $NetBSD: Makefile,v 1.3 2011/03/12 11:00:01 tron Exp $
DISTNAME= libvpx-v0.9.6
PKGNAME= ${DISTNAME:S/-v/-/}
@@ -17,6 +16,8 @@ PKG_DESTDIR_SUPPORT= user-destdir
USE_LIBTOOL= YES
USE_TOOLS+= gmake bash:build perl:build
+.include "../../mk/bsd.prefs.mk"
+
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
BUILD_DEPENDS+= yasm-[0-9]*:../../devel/yasm
.endif
@@ -35,6 +36,18 @@ CONFIGURE_ARGS+= --enable-pic \
--enable-runtime-cpu-detect \
--prefix=${PREFIX}
+.if ${OPSYS} == "Darwin"
+BUILDLINK_TRANSFORM+= rm:-lrt
+
+. if ${MACHINE_ARCH} == "i386"
+. if empty(OS_VERSION:M8.*)
+CONFIGURE_ARGS+= --target=x86-darwin9-gcc
+. else
+CONFIGURE_ARGS+= --target=x86-darwin8-gcc
+. endif
+. endif
+.endif
+
BUILD_TARGET= # none
post-extract:
diff --git a/multimedia/libvpx/files/strip_fPIC.sh b/multimedia/libvpx/files/strip_fPIC.sh
index 007c94fb0a5..de283717845 100644
--- a/multimedia/libvpx/files/strip_fPIC.sh
+++ b/multimedia/libvpx/files/strip_fPIC.sh
@@ -5,6 +5,8 @@
command=""
while [ $# -gt 0 ]; do
case "$1" in
+ -fno-common)
+ ;;
-?PIC)
# Ignore -fPIC and -DPIC options
;;