28 lines
932 B
Bash
28 lines
932 B
Bash
# Template file for 'gst-libav'
|
|
pkgname=gst-libav
|
|
reverts="1:1.4.5_4"
|
|
version=1.6.1
|
|
revision=1
|
|
lib32disabled=yes
|
|
wrksrc="${pkgname}-${version#*:}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-libav-extra-configure=--enable-runtime-cpudetect"
|
|
hostmakedepends="pkg-config yasm python"
|
|
makedepends="orc-devel gst-plugins-base1-devel"
|
|
depends="orc>=0.4.18 gst-plugins-base1>=${version}"
|
|
short_desc="GStreamer libav plugin (1.x)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-2"
|
|
homepage="http://gstreamer.freedesktop.org"
|
|
distfiles="${homepage}/src/${pkgname}/${pkgname}-${version#*:}.tar.xz"
|
|
checksum=24d5e8e8b8c825af1a19aa80a27aba268ec383c8133fd4ef66e0e572ff6137a9
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # Required by musl for M_SQRT1_2
|
|
CFLAGS="-D_XOPEN_SOURCE"
|
|
esac
|
|
pre_configure() {
|
|
# Fix cross compiling for arm* where os=linuxeabihf
|
|
sed -i ${wrksrc}/gst-libs/ext/libav/configure \
|
|
-e "s;linux);linux*);"
|
|
}
|