diff options
Diffstat (limited to 'extra/libvpx')
-rw-r--r-- | extra/libvpx/PKGBUILD | 18 | ||||
-rw-r--r-- | extra/libvpx/mips64el.patch | 37 |
2 files changed, 50 insertions, 5 deletions
diff --git a/extra/libvpx/PKGBUILD b/extra/libvpx/PKGBUILD index 9caafb1af..4f2c6fd5d 100644 --- a/extra/libvpx/PKGBUILD +++ b/extra/libvpx/PKGBUILD @@ -4,24 +4,32 @@ pkgname=libvpx pkgver=1.2.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=(ftp://ftp.archlinux.org/other/libvpx/libvpx-$pkgver.tar.xz{,.sig}) +[ "$CARCH" != "mips64el" ] && makedepends=('yasm') +source=(ftp://ftp.archlinux.org/other/libvpx/libvpx-$pkgver.tar.xz{,.sig} + mips64el.patch) sha1sums=('75cd953cf2db694412569272803fbdc73f2b599f' - 'SKIP') + 'SKIP' + '78ea367dc417f64ad3ce8e33fda210e56a083f4b') build() { cd "$pkgname-$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..075ee8119 --- /dev/null +++ b/extra/libvpx/mips64el.patch @@ -0,0 +1,37 @@ +diff -ru libvpx-1.2.0.orig/build/make/configure.sh libvpx-1.2.0/build/make/configure.sh +--- libvpx-1.2.0.orig/build/make/configure.sh 2013-05-12 15:15:57.130701452 +0200 ++++ libvpx-1.2.0/build/make/configure.sh 2013-05-12 15:17:30.904572335 +0200 +@@ -952,6 +952,14 @@ + + esac + ;; ++ mips64*) ++ 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*) + link_with_cc=gcc + setup_gnu_toolchain +diff -ru libvpx-1.2.0.orig/configure libvpx-1.2.0/configure +--- libvpx-1.2.0.orig/configure 2013-05-12 15:15:57.259672776 +0200 ++++ libvpx-1.2.0/configure 2013-05-12 15:17:56.198583024 +0200 +@@ -98,6 +98,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" +@@ -210,6 +211,7 @@ + neon + + mips32 ++ mips64 + dspr2 + + mmx |