# Template file for 'gst-plugins-bad'.
pkgname=gst-plugins-bad
version=0.10.23
revision=11
lib32disabled=yes
build_style=gnu-configure
configure_args="--enable-experimental --disable-static"
hostmakedepends="automake libtool pkg-config intltool glib-devel"
makedepends="libpng-devel alsa-lib-devel celt-devel libressl-devel
 gst-plugins-base-devel libdca-devel orc-devel libmms-devel exempi-devel
 libexif-devel libmpcdec-devel faac-devel SDL-devel libpng-devel
 faad2-devel libdvdread-devel libdvdnav-devel librsvg-devel libsndfile-devel
 xvidcore-devel jasper-devel libmodplug-devel neon-devel libcurl-devel
 libvpx-devel libvdpau-devel libgsm-devel librtmp-devel"
# Requires libgstfft-0.10.so.0 from gst-plugins-base-0.10.36.
depends="gst-plugins-base>=0.10.36"
short_desc="GStreamer plugins from the bad set"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2, LGPL-2.1"
homepage="http://gstreamer.freedesktop.org"
distfiles="$homepage/src/$pkgname/$pkgname-$version.tar.xz"
checksum=03cf0786391c64625569072e904082a08861f05a63d64b2f8e8dad3f26d81bf9

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

gst-plugins-bad-devel_package() {
	depends="gst-plugins-base-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
	}
}
