From 90d04117700f14634f37a535b854a20900fe2af9 Mon Sep 17 00:00:00 2001 From: q66 Date: Tue, 5 Feb 2019 19:51:52 +0100 Subject: [PATCH] New package: libvpx5-1.7.0 This is necessary in order to transition to newer libvpx. Web browsers, particularly their vendored webrtc component, depend on libvpx with older API, while new versions in the future will depend on the version with the newer API. In order to break the cycle, we need to temporarily provide both versions, and remove the older version once everything is updated. --- common/shlibs | 1 + srcpkgs/libvpx5-devel | 1 + srcpkgs/libvpx5/template | 52 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 120000 srcpkgs/libvpx5-devel create mode 100644 srcpkgs/libvpx5/template diff --git a/common/shlibs b/common/shlibs index c9b1418e61..0c2898c065 100644 --- a/common/shlibs +++ b/common/shlibs @@ -826,6 +826,7 @@ libmission-control-plugins.so.0 telepathy-mission-control-5.9.2_1 libclutter-gtk-1.0.so.0 clutter-gtk-1.1.2_1 libchamplain-0.12.so.0 libchamplain-0.12.5_2 libchamplain-gtk-0.12.so.0 libchamplain-0.12.5_2 +libvpx.so.5 libvpx5-1.7.0_1 libvpx.so.6 libvpx6-1.8.0_1 libXevie.so.1 libXevie-1.0.2_1 libatspi.so.0 at-spi2-core-1.91.91_1 diff --git a/srcpkgs/libvpx5-devel b/srcpkgs/libvpx5-devel new file mode 120000 index 0000000000..f159c769e6 --- /dev/null +++ b/srcpkgs/libvpx5-devel @@ -0,0 +1 @@ +libvpx5 \ No newline at end of file diff --git a/srcpkgs/libvpx5/template b/srcpkgs/libvpx5/template new file mode 100644 index 0000000000..036efd2eea --- /dev/null +++ b/srcpkgs/libvpx5/template @@ -0,0 +1,52 @@ +# Template file for 'libvpx5' +pkgname=libvpx5 +version=1.7.0 +revision=1 +wrksrc=libvpx-${version} +hostmakedepends="perl yasm" +short_desc="VP8 and VP9 video codec (1.7 series)" +maintainer="q66 " +license="BSD-3-Clause-Clear" +homepage="http://www.webmproject.org" +distfiles="https://github.com/webmproject/libvpx/archive/v${version}.tar.gz" +checksum=1fec931eb5c94279ad219a5b6e0202358e94a93a90cfb1603578c326abfc1238 + +do_configure() { + export LD="$CC" + + if [ "$CROSS_BUILD" ]; then + case "$XBPS_TARGET_MACHINE" in + aarch64*) _cross="--target=arm64-linux-gcc";; + armv7*) _cross="--target=armv7-linux-gcc";; + *) _cross="--target=generic-gnu";; + esac + fi + CFLAGS+=" -fPIC" + + ./configure --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 ${_cross} +} + +do_build() { + make ${makejobs} +} + +do_install() { + make DIST_DIR=${DESTDIR}/usr install + vlicense LICENSE +} + +libvpx5-devel_package() { + depends="libvpx5>=${version}_${revision}" + conflicts="libvpx-devel>=0" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.a" + vmove "usr/lib/*.so" + vmove usr/lib/pkgconfig + } +}