aboutsummaryrefslogtreecommitdiff
path: root/extra/libvpx
diff options
context:
space:
mode:
Diffstat (limited to 'extra/libvpx')
-rwxr-xr-xextra/libvpx/build23
-rw-r--r--extra/libvpx/checksums2
-rw-r--r--extra/libvpx/depends2
-rw-r--r--extra/libvpx/patches/fix-busybox-diff.patch13
-rw-r--r--extra/libvpx/sources2
-rw-r--r--extra/libvpx/version1
6 files changed, 43 insertions, 0 deletions
diff --git a/extra/libvpx/build b/extra/libvpx/build
new file mode 100755
index 00000000..04d7a732
--- /dev/null
+++ b/extra/libvpx/build
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+patch -p1 < fix-busybox-diff.patch
+
+./configure \
+ --prefix=/usr \
+ --enable-vp8 \
+ --enable-vp9 \
+ --disable-tools \
+ --disable-examples \
+ --disable-docs \
+ --enable-experimental \
+ --enable-runtime-cpu-detect \
+ --enable-shared \
+ --enable-postproc \
+ --enable-pic \
+ --disable-install-docs \
+ --disable-install-srcs \
+ --disable-install-bins \
+ --as=yasm
+
+make
+make DESTDIR="$1" install
diff --git a/extra/libvpx/checksums b/extra/libvpx/checksums
new file mode 100644
index 00000000..819af214
--- /dev/null
+++ b/extra/libvpx/checksums
@@ -0,0 +1,2 @@
+df19b8f24758e90640e1ab228ab4a4676ec3df19d23e4593375e6f3847dee03e v1.8.1.tar.gz
+ce802d64bcbeb4230527aea2b4284d9844fb12fa5aca868a94e03982f85ec45b fix-busybox-diff.patch
diff --git a/extra/libvpx/depends b/extra/libvpx/depends
new file mode 100644
index 00000000..30287002
--- /dev/null
+++ b/extra/libvpx/depends
@@ -0,0 +1,2 @@
+perl make
+yasm make
diff --git a/extra/libvpx/patches/fix-busybox-diff.patch b/extra/libvpx/patches/fix-busybox-diff.patch
new file mode 100644
index 00000000..fa93b0a6
--- /dev/null
+++ b/extra/libvpx/patches/fix-busybox-diff.patch
@@ -0,0 +1,13 @@
+diff --git a/configure b/configure
+index e5a74c6..11f660d 100755
+--- a/configure
++++ b/configure
+@@ -170,7 +170,7 @@ for t in ${all_targets}; do
+ [ -f "${source_path}/${t}.mk" ] && enable_feature ${t}
+ done
+
+-if ! diff --version >/dev/null; then
++if ! command -v diff >/dev/null; then
+ die "diff missing: Try installing diffutils via your package manager."
+ fi
+
diff --git a/extra/libvpx/sources b/extra/libvpx/sources
new file mode 100644
index 00000000..1927b430
--- /dev/null
+++ b/extra/libvpx/sources
@@ -0,0 +1,2 @@
+https://github.com/webmproject/libvpx/archive/v1.8.1.tar.gz
+patches/fix-busybox-diff.patch
diff --git a/extra/libvpx/version b/extra/libvpx/version
new file mode 100644
index 00000000..8aa37bcd
--- /dev/null
+++ b/extra/libvpx/version
@@ -0,0 +1 @@
+1.8.1 1