void-packages/srcpkgs/gst-plugins-base1/template
2019-02-23 20:32:49 +01:00

61 lines
1.9 KiB
Bash

# Template file for 'gst-plugins-base1'
pkgname=gst-plugins-base1
version=1.14.4
revision=3
wrksrc="${pkgname/1/}-${version}"
build_style=gnu-configure
build_helper="gir"
configure_args="--enable-experimental --disable-static
$(vopt_enable gir introspection) $(vopt_enable cdparanoia) $(vopt_enable sndio)"
hostmakedepends="automake gettext-devel libtool python pkg-config
glib-devel"
makedepends="gstreamer1-devel glib-devel libxml2-devel pango-devel
cairo-devel liboil-devel alsa-lib-devel libXv-devel libXext-devel
libvisual-devel libgudev-devel libtheora-devel libvorbis-devel
libSM-devel orc-devel $(vopt_if cdparanoia libcdparanoia-devel)
opus-devel MesaLib-devel $(vopt_if sndio sndio-devel)"
depends="orc>=0.4.18 gstreamer1>=${version}"
short_desc="GStreamer Base Plug-ins (v1.x)"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="https://gstreamer.freedesktop.org"
distfiles="${homepage}/src/${pkgname/1/}/${pkgname/1/}-${version}.tar.xz"
checksum=ca6139490e48863e7706d870ff4e8ac9f417b56f3b9e4b3ce490c13b09a77461
case "$XBPS_TARGET_MACHINE" in
i686*) CFLAGS="-O2 -msse2";;
esac
# Package build options
build_options="cdparanoia gir sndio"
build_options_default="cdparanoia sndio"
case "$XBPS_TARGET_MACHINE" in
i686-musl|x86_64-musl) build_options_default+=" gir" ;;
*-musl) ;;
*) build_options_default+=" gir" ;;
esac
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
pre_build() {
vsed \
-e '/--library/a --library-path="$(top_builddir)/gst-libs/gst/sdp/.libs" \\' \
-i gst-libs/gst/rtsp/Makefile
}
gst-plugins-base1-devel_package() {
depends="gstreamer1-devel>=${version} ${sourcepkg}>=${version}_${revision} orc-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}