void-packages/srcpkgs/gstreamer1/template

52 lines
1.4 KiB
Text
Raw Normal View History

2012-09-25 09:34:12 +00:00
# Template file for 'gstreamer1'.
pkgname=gstreamer1
2014-05-01 06:55:49 +00:00
version=1:1.2.4
revision=2
2013-08-30 09:11:29 +00:00
wrksrc="gstreamer-${version#*:}"
2012-09-25 09:34:12 +00:00
build_style=gnu-configure
configure_args="--disable-valgrind --enable-docbook
2013-08-30 09:11:29 +00:00
--with-package-origin=http://www.voidlinux.eu"
hostmakedepends="pkg-config flex python docbook-xsl"
2013-04-27 01:44:43 +00:00
makedepends="libxml2-devel libglib-devel"
2012-09-25 09:34:12 +00:00
short_desc="Core GStreamer libraries and elements (1.x)"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-09-25 09:34:12 +00:00
homepage="http://gstreamer.freedesktop.org/"
license="LGPL-2.1"
2013-08-30 09:11:29 +00:00
distfiles="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-${version#*:}.tar.xz"
2014-05-01 06:55:49 +00:00
checksum=1e7ca67a7870a82c9ed51d51d0008cdbc550c41d64cc3ff3f9a1c2fc311b4929
# Package build options
build_options="gir"
# 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}"
2013-06-06 14:05:02 +00:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-08-30 09:11:29 +00:00
vmove "usr/lib/*.so"
vmove usr/share/gtk-doc
vmove usr/share/aclocal
if [ "$build_option_gir" ]; then
vmove "usr/share/gir*"
fi
}
}