# Template file for 'ppl'
pkgname=ppl
version=1.0
revision=2
build_style=gnu-configure
configure_args="--enable-interfaces=c,cxx"
hostmakedepends="libtool automake"
makedepends="gmp-devel>=5.1.1"
short_desc="The Parma Polyhedra Library"
homepage="http://bugseng.com/products/ppl"
license="GPL-3"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://bugseng.com/products/ppl/download/ftp/releases/${version}/ppl-${version}.tar.gz"
checksum=fd346687482ad51c1e98eb260bd61dd5a35a0cff5f580404380c88b0089a71b4

disable_debug=yes

pre_configure() {
	autoreconf -fi
}

post_install() {
	rm -rf ${DESTDIR}/usr/share/doc
}

ppl-devel_package() {
	depends="ppl>=${version}"
	short_desc+=" -- development files"
	pkg_install() {
		for d in bin include share; do
			vmove usr/${d}
		done
		vmove "usr/lib/*.a"
	}
}

ppl_package() {
	pkg_install() {
		vmove usr
	}
}
