2008-09-17 10:28:40 +02:00
|
|
|
# Description: Free library for arbitrary precision arithmetic
|
2020-06-04 16:56:32 +02:00
|
|
|
# URL: https://gmplib.org/
|
2008-09-17 10:28:40 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
|
|
|
|
|
|
|
name=libgmp
|
2020-11-19 15:15:56 +01:00
|
|
|
version=6.2.1
|
2013-10-04 10:46:53 +02:00
|
|
|
release=1
|
2020-06-04 16:56:32 +02:00
|
|
|
source=(https://gmplib.org/download/gmp/gmp-$version.tar.xz \
|
2013-10-04 10:46:53 +02:00
|
|
|
gmp.h)
|
2008-09-17 10:28:40 +02:00
|
|
|
|
|
|
|
build() {
|
2015-11-26 10:07:52 +01:00
|
|
|
cd gmp-$version
|
2012-11-22 19:38:39 +01: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 14:45:36 +02: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
|
|
|
}
|