diff options
author | tron <tron@pkgsrc.org> | 2011-03-12 11:00:01 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2011-03-12 11:00:01 +0000 |
commit | f59261210ef1dabaa25cc2826f25bb2a6bb48b5b (patch) | |
tree | 9ca35ea9c49e2a605321fec825d66d4969159dbf /multimedia/libvpx | |
parent | 5d429abf57adcec9ba0c0627116382e146a0dea0 (diff) | |
download | pkgsrc-f59261210ef1dabaa25cc2826f25bb2a6bb48b5b.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/Makefile | 17 | ||||
-rw-r--r-- | multimedia/libvpx/files/strip_fPIC.sh | 2 |
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 ;; |