summaryrefslogtreecommitdiff
path: root/legacy/libvpx
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-28 19:44:19 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-28 19:44:38 -0500
commit863fc054627e3ca3a0813027d03d3b1ca0409aca (patch)
tree73bbbe766fca01bdcca01bd863e32f00d981271c /legacy/libvpx
parent2d499007519e94892204189710e2bea22e12fc45 (diff)
downloadpackages-863fc054627e3ca3a0813027d03d3b1ca0409aca.tar.gz
packages-863fc054627e3ca3a0813027d03d3b1ca0409aca.tar.bz2
packages-863fc054627e3ca3a0813027d03d3b1ca0409aca.tar.xz
packages-863fc054627e3ca3a0813027d03d3b1ca0409aca.zip
user/libvpx: move to legacy/, remove from rdeps
Diffstat (limited to 'legacy/libvpx')
-rw-r--r--legacy/libvpx/APKBUILD54
-rw-r--r--legacy/libvpx/libm-pc.patch11
2 files changed, 65 insertions, 0 deletions
diff --git a/legacy/libvpx/APKBUILD b/legacy/libvpx/APKBUILD
new file mode 100644
index 000000000..e52733795
--- /dev/null
+++ b/legacy/libvpx/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer:
+pkgname=libvpx
+pkgver=1.7.0
+pkgrel=0
+pkgdesc="Library for the VP8 and VP9 codecs"
+url="https://www.webmproject.org/"
+arch="all"
+options="!check" # Requires at least 2 GB of sample videos...
+license="BSD-3-Clause"
+depends=""
+makedepends="bash coreutils perl yasm cmd:which"
+subpackages="$pkgname-dev $pkgname-utils"
+source="https://github.com/webmproject/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ # fix build for armv7
+ case "$CTARGET" in
+ armv7-*-*-*eabihf) export CFLAGS="-mfloat-abi=hard";;
+ esac
+ bash ./configure \
+ --extra-cflags="$CFLAGS" \
+ --enable-pic \
+ --enable-libs \
+ --enable-runtime-cpu-detect \
+ --enable-vp8 \
+ --enable-vp9 \
+ --enable-shared \
+ --disable-install-srcs \
+ --enable-postproc
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DIST_DIR="$pkgdir"/usr install
+ chmod 644 "$pkgdir"/usr/include/vpx/*.h \
+ "$pkgdir"/usr/lib/pkgconfig/*
+ chown root:root -R "$pkgdir"
+ chmod 755 "$pkgdir"/usr/lib/*
+}
+
+utils() {
+ pkgdesc="VP8 and VP9 vode codec utilities and tools"
+ install -d "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+sha512sums="8b3b766b550f8d86907628d7ed88035f9a2612aac21542e0fd5ad35b905eb82cbe1be02a1a24afce7a3bcc4766f62611971f72724761996b392136c40a1e7ff0 libvpx-1.7.0.tar.gz"
diff --git a/legacy/libvpx/libm-pc.patch b/legacy/libvpx/libm-pc.patch
new file mode 100644
index 000000000..87f07a398
--- /dev/null
+++ b/legacy/libvpx/libm-pc.patch
@@ -0,0 +1,11 @@
+--- ./libs.mk.orig
++++ ./libs.mk
+@@ -241,7 +241,7 @@
+ $(qexec)echo 'Version: $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH)' >> $@
+ $(qexec)echo 'Requires:' >> $@
+ $(qexec)echo 'Conflicts:' >> $@
+- $(qexec)echo 'Libs: -L$${libdir} -lvpx' >> $@
++ $(qexec)echo 'Libs: -L$${libdir} -lvpx -lm' >> $@
+ $(qexec)echo 'Cflags: -I$${includedir}' >> $@
+ INSTALL-LIBS-yes += $(LIBSUBDIR)/pkgconfig/vpx.pc
+ INSTALL_MAPS += $(LIBSUBDIR)/pkgconfig/%.pc %.pc