# Template file for 'libdvdnav'
pkgname=libdvdnav
version=4.2.0
revision=3
build_style=gnu-configure
configure_args="--with-dvdread-config=/bin/true"
hostmakedepends="libtool automake"
makedepends="libdvdread-devel"
short_desc="Library to navigate DVDs"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://dvdnav.mplayerhq.hu/"
distfiles="http://dvdnav.mplayerhq.hu/releases/$pkgname-$version.tar.bz2"
checksum=8c971b08276c89ddcecd26fc44204460fd250dc57346f03476d3077188c47550

CFLAGS+="-I${XBPS_CROSS_BASE}/usr/include"
LDFLAGS+="-L${XBPS_CROSS_BASE}/usr/lib -ldvdread"

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

libdvdnav-devel_package() {
	depends="libdvdread-devel libdvdnav>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/bin
		vmove usr/include
		vmove usr/share
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
