2008-09-17 10:28:40 +02:00
|
|
|
# Description: Free library for arbitrary precision arithmetic
|
|
|
|
# URL: http://gmplib.org/
|
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
|
|
|
|
name=libgmp
|
2014-03-31 08:17:07 -05:00
|
|
|
version=6.0.0a
|
2013-10-04 10:46:53 +02:00
|
|
|
release=1
|
2014-03-31 08:17:07 -05:00
|
|
|
source=(ftp://ftp.gmplib.org/pub/gmp-${version%a}/gmp-$version.tar.xz \
|
2013-10-04 10:46:53 +02:00
|
|
|
gmp.h)
|
2008-09-17 10:28:40 +02:00
|
|
|
|
|
|
|
build() {
|
2014-03-31 08:17:07 -05:00
|
|
|
cd gmp-${version%a}
|
2012-11-22 12:38:39 -06:00
|
|
|
./configure --prefix=/usr \
|
2013-02-12 18:24:00 +01:00
|
|
|
--enable-cxx \
|
|
|
|
--build=x86_64-unknown-linux-gnu
|
2008-09-17 10:28:40 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2013-08-07 07:45:36 -05:00
|
|
|
mv $PKG/usr/include/gmp{,-64}.h
|
2013-08-18 11:43:22 +02:00
|
|
|
install -m 0644 $SRC/gmp.h $PKG/usr/include/
|
2010-01-09 15:44:19 +01:00
|
|
|
rm -r $PKG/usr/share
|
2008-09-17 10:28:40 +02:00
|
|
|
}
|