# Maintainer: Natanael Copa pkgname=gstreamer pkgver=0.10.34 pkgrel=0 pkgdesc="GStreamer Multimedia Framework" url="http://gstreamer.freedesktop.org/" arch="all" license="LGPL" subpackages="$pkgname-dev $pkgname-doc $pkgname-tools" depends= makedepends="pkgconfig libxml2-dev glib-dev bison flex gettext-dev libiconv-dev" source="http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-$pkgver.tar.bz2 " depends_dev="glib-dev libxml2-dev" _builddir="$srcdir"/gstreamer-$pkgver prepare() { cd "$_builddir" # fix building with gnu make 3.82 find -name Makefile.in | xargs sed -i -e "s/^ /\t/" || return 1 for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done } build() { cd "$srcdir"/gstreamer-$pkgver ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --disable-docs-build || return 1 make || return 1 } package() { cd "$srcdir"/gstreamer-$pkgver make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la \ "$pkgdir"/usr/lib/*.a \ "$pkgdir"/usr/lib/gstreamer*/*.la \ "$pkgdir"/usr/lib/gstreamer*/*.a } tools() { pkgdesc="common tools and files for GStreamer streaming media framework" # gst-feedback needs this depends="pkgconfig" mkdir -p "$subpkgdir"/usr/ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ } md5sums="e6938af242cd002be9f0b6441e848d83 gstreamer-0.10.34.tar.bz2"