# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=cloog pkgver=0.18.1 pkgrel=0 pkgdesc="The Chunky Loop Generator" url="http://www.cloog.org/" arch="all" license="GPL2+" depends="" depends_dev="gmp-dev isl-dev" makedepends_host="$depends_dev" makedepends="$makedepends_host" install="" subpackages="$pkgname-dev" source="http://www.bastoul.net/cloog/pages/download/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --with-sysroot=${CBUILDROOT} \ --with-isl=system \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" INSTALL="install -D" install || return 1 } md5sums="e34fca0540d840e5d0f6427e98c92252 cloog-0.18.1.tar.gz" sha256sums="02500a4edd14875f94fe84cbeda4290425cb0c1c2474c6f75d75a303d64b4196 cloog-0.18.1.tar.gz" sha512sums="0b12d9f3c39a2425e28e1d7c0a2b3787287fe3e6e3052f094d2ab6cffeb205ce19044100cbfd805659b3e6b3d21ac2f5a3c92848f476de54edfe6b1cbd2172e9 cloog-0.18.1.tar.gz"