void-packages/srcpkgs/gst-libav/template
2019-06-09 15:45:10 +02:00

30 lines
878 B
Bash

# Template file for 'gst-libav'
pkgname=gst-libav
version=1.16.0
revision=1
wrksrc="${pkgname}-${version}"
build_style=meson
patch_args="-Np1"
hostmakedepends="pkg-config yasm"
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=dfac119043a9cfdcacd7acde77f674ab172cf2537b5812be52f49e9cddc53d9a
case "$XBPS_TARGET_MACHINE" in
*-musl) # Required by musl for M_SQRT1_2
CFLAGS="-D_XOPEN_SOURCE"
;;
esac
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
}