# Template file for 'gst-python'.
pkgname=gst-python
version=0.10.22
revision=8
lib32disabled=yes
build_style=gnu-configure
configure_args="--disable-static --with-libpython-dir=${XBPS_CROSS_BASE}/usr/lib/python2.7/config"
hostmakedepends="pkg-config python"
makedepends="glib-devel python-devel pygtk-devel
 libxml2-devel gstreamer-devel gst-plugins-base-devel"
depends="pygtk"
pycompile_module="gst-0.10"
short_desc="Python bindings for GStreamer 0.10"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://gstreamer.freedesktop.org"
distfiles="$homepage/src/$pkgname/$pkgname-$version.tar.bz2"
checksum=8f26f519a5bccd770864317e098e5e307fc5ad1201eb96329634b6508b253178

pre_configure() {
	if [ "$CROSS_BUILD" ]; then
		sed -i -e "s,PYTHON_INCLUDES=.*,PYTHON_INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/python2.7,g" configure
	fi
}

gst-python-devel_package() {
	lib32disabled=yes
	depends="${sourcepkg}-${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove usr/share/gst-python
	}
}
