summaryrefslogtreecommitdiff
path: root/system/cloog/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/cloog/APKBUILD')
-rw-r--r--system/cloog/APKBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/system/cloog/APKBUILD b/system/cloog/APKBUILD
new file mode 100644
index 000000000..d39df3ba4
--- /dev/null
+++ b/system/cloog/APKBUILD
@@ -0,0 +1,52 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=cloog
+pkgver=0.18.4
+pkgrel=1
+pkgdesc="The Chunky Loop Generator"
+url="http://www.cloog.org/"
+arch="all"
+license="GPL-2.0-or-later"
+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"
+ 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="e531f725244856c92c9bba009ff44faf cloog-0.18.4.tar.gz"
+sha256sums="325adf3710ce2229b7eeb9e84d3b539556d093ae860027185e7af8a8b00a750e cloog-0.18.4.tar.gz"
+sha512sums="d35d67b08ffe13c1a010b65bfe4dd02b0ae013d5b489e330dc950bd3514defca8f734bd37781856dcedf0491ff6122c34eecb4b0fe32a22d7e6bdadea98c8c23 cloog-0.18.4.tar.gz"