summaryrefslogtreecommitdiff
path: root/extra/libvpx
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libvpx')
-rw-r--r--extra/libvpx/PKGBUILD18
-rw-r--r--extra/libvpx/mips64el.patch38
2 files changed, 51 insertions, 5 deletions
diff --git a/extra/libvpx/PKGBUILD b/extra/libvpx/PKGBUILD
index 09c994f21..93d3a494f 100644
--- a/extra/libvpx/PKGBUILD
+++ b/extra/libvpx/PKGBUILD
@@ -4,23 +4,31 @@ pkgname=libvpx
pkgver=1.1.0
pkgrel=1
pkgdesc="The VP8 Codec SDK"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.webmproject.org/"
license=('BSD')
depends=('glibc')
makedepends=('yasm')
-source=(http://webm.googlecode.com/files/$pkgname-v$pkgver.tar.bz2)
-sha1sums=('356af5f770c50cd021c60863203d8f30164f6021')
+source=(http://webm.googlecode.com/files/$pkgname-v$pkgver.tar.bz2
+ mips64el.patch)
+sha1sums=('356af5f770c50cd021c60863203d8f30164f6021'
+ '4fd775826a4d737102f831c451235a58947f2cde')
build() {
- cd "$pkgname-v$pkgver"
+ cd "$srcdir/$pkgname-v$pkgver"
+
+ if [ "$CARCH" = "mips64el" ]; then
+ extra="--target=mips64el-linux-gcc"
+ patch -Np1 -i ${srcdir}/mips64el.patch
+ fi
+
./configure --prefix=/usr --enable-vp8 \
--enable-runtime-cpu-detect \
--enable-shared \
--enable-postproc \
--enable-pic \
--disable-install-docs \
- --disable-install-srcs
+ --disable-install-srcs $extra
make
}
diff --git a/extra/libvpx/mips64el.patch b/extra/libvpx/mips64el.patch
new file mode 100644
index 000000000..a0e84d5c2
--- /dev/null
+++ b/extra/libvpx/mips64el.patch
@@ -0,0 +1,38 @@
+diff -uNar libvpx-v0.9.6.orig//build/make/configure.sh libvpx-v0.9.6/build/make/configure.sh
+--- libvpx-v0.9.6.orig//build/make/configure.sh 2011-03-04 17:40:37.000000000 -0300
++++ libvpx-v0.9.6/build/make/configure.sh 2011-03-27 12:31:49.263260789 -0300
+@@ -805,6 +805,15 @@
+
+ esac
+ ;;
++ mips64*)
++ CROSS=""
++ link_with_cc=gcc
++ setup_gnu_toolchain
++ tune_cflags="-mtune="
++ check_add_cflags -march=${tgt_isa}
++ check_add_asflags -march=${tgt_isa}
++ check_add_asflags -KPIC
++ ;;
+ mips*)
+ CROSS=${CROSS:-mipsel-linux-uclibc-}
+ link_with_cc=gcc
+diff -uNar libvpx-v0.9.6.orig//configure libvpx-v0.9.6/configure
+--- libvpx-v0.9.6.orig//configure 2011-03-04 17:40:37.000000000 -0300
++++ libvpx-v0.9.6/configure 2011-03-27 12:31:05.571213054 -0300
+@@ -94,6 +94,7 @@
+ all_platforms="${all_platforms} armv7-linux-gcc" #neon Cortex-A8
+ all_platforms="${all_platforms} armv7-none-rvct" #neon Cortex-A8
+ all_platforms="${all_platforms} mips32-linux-gcc"
++all_platforms="${all_platforms} mips64el-linux-gcc"
+ all_platforms="${all_platforms} ppc32-darwin8-gcc"
+ all_platforms="${all_platforms} ppc32-darwin9-gcc"
+ all_platforms="${all_platforms} ppc32-linux-gcc"
+@@ -194,6 +195,7 @@
+ iwmmxt2
+
+ mips32
++ mips64
+
+ mmx
+ sse