aboutsummaryrefslogtreecommitdiffstats
path: root/main/isl/APKBUILD
blob: 17b7470af72c2b3132cf421900cc149c7d289031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=isl
pkgver=0.12.1
pkgrel=0
pkgdesc="An Integer Set Library for the Polyhedral Model"
url="http://freecode.com/projects/isl"
arch="all"
license="MIT"
depends=
depends_dev="gmp-dev"
makedepends_host="$depends_dev"
makedepends="$makedepends_host"
replaces="cloog"
install=""
subpackages="$pkgname-dev"
source="http://isl.gforge.inria.fr/isl-$pkgver.tar.bz2"

_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 \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-sysroot=${CBUILDROOT} \
		|| return 1

	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" INSTALL="install -D" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

dev() {
	default_dev || return 1
	replaces="cloog-dev"
	mkdir -p "$subpkgdir"/usr/share/gdb/python/auto-load/usr/lib
	mv "$pkgdir"/usr/lib/*-gdb.py \
		"$subpkgdir"/usr/share/gdb/python/auto-load/usr/lib/
}

md5sums="27d381085ff1b5733c3e8a9b6ad24a4d  isl-0.12.1.tar.bz2"
sha256sums="43ba8a43c3554a72a7e9e0d913a52dedbc0d712f472f3e62d239517bdd53e7b7  isl-0.12.1.tar.bz2"
sha512sums="63c71ea7c57cc2502cd4007261997ef5442c55c7a43cd5906a27f1203a1e16384f444c657d18f3bf1a71ebb3de9d75702e43d5228bdfc2d21c76ef130027ad5f  isl-0.12.1.tar.bz2"