# Template build file for 'libIDL'.
pkgname=libIDL
version=0.8.14
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config flex"
makedepends="libglib-devel"
short_desc="CORBA Interface Definition Language parser"
homepage="http://projects.gnome.org/ORBit2/"
license="LGPL-2.1"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="${GNOME_SITE}/$pkgname/0.8/$pkgname-$version.tar.bz2"
checksum=c5d24d8c096546353fbc7cedf208392d5a02afe9d56ebcc1cccb258d7c4d2220

if [ -n "$CROSS_BUILD" ]; then
	configure_args+=" libIDL_cv_long_long_format=${libIDL_cv_long_long_format=ll}"
fi

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