void-packages/srcpkgs/gstreamer/template
2015-10-24 12:22:17 +02:00

43 lines
1.2 KiB
Bash

# Template file for 'gstreamer'.
pkgname=gstreamer
version=0.10.36
revision=8
build_style=gnu-configure
configure_args="--disable-valgrind --enable-docbook $(vopt_enable gir introspection)"
hostmakedepends="automake libtool gettext-devel pkg-config flex python perl
docbook-xsl glib-devel $(vopt_if gir gobject-introspection)"
makedepends="libxml2-devel libglib-devel"
short_desc="Core GStreamer libraries and elements"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://gstreamer.freedesktop.org/"
license="LGPL-2.1"
distfiles="http://gstreamer.freedesktop.org/src/$pkgname/$pkgname-$version.tar.xz"
checksum=9151aa108c177054387885763fa0e433e76780f7c5655c70a5390f2a6c6871da
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
autoreconf -if
}
gstreamer-devel_package() {
depends="${makedepends} gstreamer>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/gtk-doc
vmove usr/share/aclocal
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
}
}