summaryrefslogtreecommitdiff
path: root/multimedia/libvpx
diff options
context:
space:
mode:
authorsevan <sevan@pkgsrc.org>2018-06-03 00:47:30 +0000
committersevan <sevan@pkgsrc.org>2018-06-03 00:47:30 +0000
commit3a0f67214d24651b9c601fb90f1dd69a63f49a51 (patch)
treedb6825a739ca41093fd954a1380a0e009ecd2c0c /multimedia/libvpx
parent51c2518139db586d4c2aa67bfdf85880f3b1f97f (diff)
downloadpkgsrc-3a0f67214d24651b9c601fb90f1dd69a63f49a51.tar.gz
As far as PowerPC support goes, libvpx supports 64-bit PowerPC in Little Endian
mode only, now. Set the target to generic-gnu for powerpc based ports on NetBSD to allow libvpx to build and run, though without any targetted optimization. Resolves build issue on NetBSD/macppc which failed at configure stage otherwise. TenFourFox has patches to add support for Altivec acceleration, which could be used to add support back again locally. https://github.com/classilla/tenfourfox/tree/master/media/libvpx
Diffstat (limited to 'multimedia/libvpx')
-rw-r--r--multimedia/libvpx/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/multimedia/libvpx/Makefile b/multimedia/libvpx/Makefile
index befc431ad28..d866e53d5eb 100644
--- a/multimedia/libvpx/Makefile
+++ b/multimedia/libvpx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.73 2018/05/10 21:10:38 jmcneill Exp $
+# $NetBSD: Makefile,v 1.74 2018/06/03 00:47:30 sevan Exp $
DISTNAME= libvpx-1.7.0
CATEGORIES= multimedia
@@ -102,6 +102,10 @@ SUBST_SED.clang= -e 's/-DINLINE_ASM/-DINLINE_ASM ${CLANG_INTEGRATED_AS}/'
CONFIGURE_ARGS+= --target=mips32-linux-gcc
.endif
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc"
+CONFIGURE_ARGS+= --target=generic-gnu
+.endif
+
.if !empty(MACHINE_PLATFORM:MNetBSD-*-*arm*) || !empty(MACHINE_PLATFORM:MNetBSD-*-*aarch64*)
CONFIGURE_ARGS+= --disable-runtime-cpu-detect
.endif