### this file is sourced not run
PKGVER=0.19
PKGBUILD=1

TARBALL=isl-$PKGVER.tar.xz
MD5SUM=1ae893020fa078531e6158cb243880a5
BUNDLE=fatdog-base-8.2.tar
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$BUNDLE

SLACKREQ=
SLACKDESC="libisl: libisl $PKGVER (Sets library)  
libisl:  
libisl: ISL is a library for manipulating sets and relations of integer 
libisl: points bounded by linear constraints. . Needed by gcc for 
libisl: optimisations.  
libisl: 
libisl: 
libisl: 
libisl: 
libisl: 
libisl:  
"


### override download for LFS sources bundle
# $1-src-dir $2-tarball 
pkg_download() {
	echo downloading $BUNDLE for $TARBALL
	wget -P $1 $SRC_URL
	tar -xf $1/$BUNDLE --strip-components=1 -C $1 
	rm $1/$BUNDLE
}

### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/isl*

	CC="gcc -isystem /usr/include ${BUILD64}" \
	LDFLAGS="-Wl,-rpath-link,/usr/lib64:/lib64 ${BUILD64}" \
	  ./configure --prefix=/usr --libdir=/usr/lib64 &&
	  
	make $MAKEFLAGS &&
	make install &&
	
	mkdir -pv /usr/share/gdb/auto-load/usr/lib64 &&
	mv -v /usr/lib64/*gdb.py /usr/share/gdb/auto-load/usr/lib64 &&
	
	pkg_build_slackdesc
}
