2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: A free library for arbitrary precision arithmetic.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://gmplib.org/
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler:
|
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
name=gmp
|
|
|
|
|
version=6.1.0
|
|
|
|
|
release=1
|
|
|
|
|
|
|
|
|
|
source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
|
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-27 21:56:50 +02:00
|
|
|
|
cd gmp-$version
|
|
|
|
|
case `uname -m` in
|
|
|
|
|
i?86)
|
|
|
|
|
ABI=32 ./configure --build=i686-pc-linux-gnu \
|
|
|
|
|
--prefix=/usr --enable-cxx --libdir=/lib ;;
|
|
|
|
|
*)
|
|
|
|
|
./configure --build=x86_64-unknown-linux-gnu \
|
|
|
|
|
--prefix=/usr --enable-cxx --libdir=/lib ;;
|
|
|
|
|
esac
|
|
|
|
|
make
|
|
|
|
|
# make check 2>&1 | tee gmp-check-log
|
|
|
|
|
# awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log
|
|
|
|
|
make DESTDIR=$PKG install
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 21:56:50 +02:00
|
|
|
|
rm -rf $PKG/usr/share/info/dir
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Documentation
|
|
|
|
|
#mkdir -p $PKG/usr/share/doc/gmp-${version}
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 21:56:50 +02:00
|
|
|
|
#cp doc/{isa_abi_headache,configuration} doc/*.html \
|
|
|
|
|
#$PKG/usr/share/doc/gmp-${version}
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|