void-packages/srcpkgs/gstreamer1/template

44 lines
1.3 KiB
Bash

# Template file for 'gstreamer1'.
pkgname=gstreamer1
reverts="1:1.4.5_1"
version=1.6.2
revision=1
wrksrc="gstreamer-${version#*:}"
build_style=gnu-configure
configure_args="--disable-valgrind --enable-docbook
--with-package-origin=http://www.voidlinux.eu $(vopt_enable gir introspection)"
hostmakedepends="automake gettext-devel libtool pkg-config flex python docbook-xsl glib-devel $(vopt_if gir gobject-introspection)"
makedepends="libxml2-devel libglib-devel"
short_desc="Core GStreamer libraries and elements (1.x)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://gstreamer.freedesktop.org/"
license="LGPL-2.1"
distfiles="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${version#*:}.tar.xz"
checksum=5896716bd8e089dba452932a2eff2bb6f6c9d58ff64a96635d157f1ffaf8feb2
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}
gstreamer1-devel_package() {
depends="${makedepends} ${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
}
}