Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Free library for arbitrary precision arithmetic |
2 | # URL: http://gmplib.org/ | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: |
6 | ||
7 | name=libgmp | |
9448bfc0 | 8 | version=6.0.0a |
84729e93 | 9 | release=1 |
9448bfc0 VM |
10 | source=(ftp://ftp.gmplib.org/pub/gmp-${version%a}/gmp-$version.tar.xz \ |
11 | gmp.h) | |
6dca1d21 JB |
12 | |
13 | build() { | |
9448bfc0 | 14 | cd gmp-${version%a} |
31039fa2 JB |
15 | ./configure --build=$CHOST \ |
16 | --host=$CTARGET \ | |
17 | --prefix=/usr \ | |
18 | --enable-cxx | |
31039fa2 JB |
19 | make |
20 | make DESTDIR=$PKG install | |
9448bfc0 VM |
21 | mv $PKG/usr/include/gmp{,-32}.h |
22 | install -m 0644 $SRC/gmp.h $PKG/usr/include/ | |
31039fa2 | 23 | rm -r $PKG/usr/share |
6dca1d21 | 24 | } |