Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: C library for multiple-precision floating-point computations with correct rounding |
2 | # URL: http://www.mpfr.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: libgmp |
6 | ||
7 | name=libmpfr | |
842a1322 | 8 | version=3.1.3-p5 |
6dca1d21 | 9 | release=1 |
2a644c91 VM |
10 | source=(http://www.mpfr.org/mpfr-${version%-*}/mpfr-${version%-*}.tar.xz |
11 | $name-$version.patch.gz) | |
6dca1d21 JB |
12 | |
13 | build() { | |
3a054a5f | 14 | cd mpfr-${version%-*} |
2a644c91 | 15 | gunzip -c $SRC/$name-$version.patch.gz | patch -p1 |
6dca1d21 JB |
16 | ./configure --build=$CHOST \ |
17 | --host=$CTARGET \ | |
b1b926ea | 18 | --prefix=/usr \ |
3a054a5f VM |
19 | --with-gmp-include=$CLFS/usr/include \ |
20 | --with-gmp-lib=$CLFS/usr/lib | |
6dca1d21 JB |
21 | |
22 | make | |
23 | make DESTDIR=$PKG install | |
b1b926ea | 24 | rm -rf $PKG/usr/share |
6dca1d21 | 25 | } |