37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'gst-libav'
|
|
pkgname=gst-libav
|
|
version=1.14.5
|
|
revision=1
|
|
lib32disabled=yes
|
|
wrksrc="${pkgname}-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--with-system-libav"
|
|
patch_args="-Np1"
|
|
hostmakedepends="pkg-config yasm python"
|
|
makedepends="orc-devel gst-plugins-base1-devel ffmpeg-devel"
|
|
depends="orc>=0.4.18 gst-plugins-base1>=${version}"
|
|
short_desc="GStreamer libav plugin (1.x)"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="LGPL-2.0-or-later"
|
|
homepage="https://gstreamer.freedesktop.org"
|
|
distfiles="${homepage}/src/${pkgname}/${pkgname}-${version}.tar.xz"
|
|
checksum=df10beebe794d316e6bbf019f16a8c6753cc28614f4ae8ce887bfd27761271fc
|
|
|
|
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*);"
|
|
}
|
|
|
|
post_configure() {
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64-musl) # compiling with -O3 triggers a gcc bug
|
|
sed -i 's/-O3/-O2/g' gst-libs/ext/libav/config.mak
|
|
;;
|
|
esac
|
|
}
|