2012-09-25 11:34:12 +02:00
|
|
|
# Template file for 'gstreamer1'.
|
|
|
|
pkgname=gstreamer1
|
2014-01-03 18:58:41 +01:00
|
|
|
version=1:1.2.2
|
2013-04-27 03:44:43 +02:00
|
|
|
revision=1
|
2013-08-30 11:11:29 +02:00
|
|
|
wrksrc="gstreamer-${version#*:}"
|
2012-09-25 11:34:12 +02:00
|
|
|
build_style=gnu-configure
|
2014-01-03 18:58:41 +01:00
|
|
|
configure_args="--disable-valgrind --enable-docbook
|
2013-08-30 11:11:29 +02:00
|
|
|
--with-package-origin=http://www.voidlinux.eu"
|
2014-01-03 18:58:41 +01:00
|
|
|
hostmakedepends="pkg-config flex python docbook-xsl"
|
2013-04-27 03:44:43 +02:00
|
|
|
makedepends="libxml2-devel libglib-devel"
|
2012-09-25 11:34:12 +02:00
|
|
|
short_desc="Core GStreamer libraries and elements (1.x)"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.org>"
|
|
|
|
homepage="http://gstreamer.freedesktop.org/"
|
|
|
|
license="LGPL-2.1"
|
2013-08-30 11:11:29 +02:00
|
|
|
distfiles="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${version#*:}.tar.xz"
|
2014-01-03 18:58:41 +01:00
|
|
|
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
|
2014-01-03 19:00:30 +01:00
|
|
|
hostmakedepends+=" automake gettext-devel libtool glib-devel"
|
2014-01-03 18:58:41 +01:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
makedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2013-04-12 15:11:12 +02:00
|
|
|
|
|
|
|
gstreamer1-devel_package() {
|
2013-04-27 03:44:43 +02:00
|
|
|
depends="libxml2-devel libglib-devel ${sourcepkg}-${version}_${revision}"
|
2013-06-06 16:05:02 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 15:11:12 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-08-30 11:11:29 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 15:11:12 +02:00
|
|
|
vmove usr/share/gtk-doc
|
|
|
|
vmove usr/share/aclocal
|
2014-01-03 18:58:41 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove "usr/share/gir*"
|
|
|
|
fi
|
2013-04-12 15:11:12 +02:00
|
|
|
}
|
|
|
|
}
|