void-packages/srcpkgs/gstreamer1/template

53 lines
1.5 KiB
Plaintext

# Template file for 'gstreamer1'.
pkgname=gstreamer1
version=1:1.2.3
revision=2
wrksrc="gstreamer-${version#*:}"
build_style=gnu-configure
configure_args="--disable-valgrind --enable-docbook
--with-package-origin=http://www.voidlinux.eu"
hostmakedepends="pkg-config flex python docbook-xsl"
makedepends="libxml2-devel libglib-devel"
short_desc="Core GStreamer libraries and elements (1.x)"
maintainer="Juan RP <xtraeme@gmail.org>"
homepage="http://gstreamer.freedesktop.org/"
license="LGPL-2.1"
distfiles="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${version#*:}.tar.xz"
checksum=0f9a9817a384b3448c368c23345e5122435caef9c00f1c40d7b1953827b0d8eb
# Package build options
build_options="gir"
desc_option_gir="Enable support for building gobject introspection data"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
else
hostmakedepends+=" automake gettext-devel libtool glib-devel"
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
fi
if [ "$build_option_gir" ]; then
configure_args+=" --enable-introspection"
makedepends+=" gobject-introspection"
else
configure_args+=" --disable-introspection"
fi
gstreamer1-devel_package() {
depends="libxml2-devel libglib-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
vmove usr/share/aclocal
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}