gstreamer1: update to 1.2.2; added gir option to allow cross builds.

This commit is contained in:
Juan RP 2014-01-03 18:58:41 +01:00
parent 7252b00a84
commit b78ceafb69

View file

@ -1,19 +1,40 @@
# Template file for 'gstreamer1'.
pkgname=gstreamer1
version=1:1.2.1
version=1:1.2.2
revision=1
wrksrc="gstreamer-${version#*:}"
build_style=gnu-configure
configure_args="--disable-debug --disable-valgrind --enable-docbook
configure_args="--disable-valgrind --enable-docbook
--with-package-origin=http://www.voidlinux.eu"
hostmakedepends="pkg-config flex python docbook-xsl gobject-introspection"
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=a4523d2471bca6cd0059a32e3b042f50faa4dadc6439852af8b43ca3f17d1fc9
checksum=b9f12137ab663edc6c37429b38ca7911074b9c2a829267fe855d4e57d916a0b6
# 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"
pre_configure() {
autoreconf -fi
}
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}"
@ -24,6 +45,8 @@ gstreamer1-devel_package() {
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
vmove usr/share/aclocal
vmove "usr/share/gir*"
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}