void-packages/srcpkgs/gstreamer1/template
2014-12-22 11:36:45 +01:00

43 lines
1.3 KiB
Text

# Template file for 'gstreamer1'.
pkgname=gstreamer1
version=1:1.4.5
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"
makedepends="libxml2-devel libglib-devel $(vopt_if gir gobject-introspection)"
short_desc="Core GStreamer libraries and elements (1.x)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://gstreamer.freedesktop.org/"
update_pkgname="gstreamer"
license="LGPL-2.1"
distfiles="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${version#*:}.tar.xz"
checksum=40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae
# 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="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
}
}