Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 77 - (show annotations)
Sun Oct 4 13:27:46 2009 UTC (3 years, 7 months ago) by cjg
File size: 950 byte(s)
mpfr: fixed sources url
1 # Description: The MPFR library is a C library for multiple-precision floating-point computations with correct rounding.
2 # URL: http://www.mpfr.org/
3 # Maintainer: The Crux PPC Team
4
5 name=mpfr
6 version=2.3.1
7 release=1
8 source=(http://www.mpfr.org/mpfr-2.3.1/$name-$version.tar.bz2 \
9 http://svn.cross-lfs.org/svn/repos/cross-lfs/trunk/patches/$name-$version-cumulative-1.patch)
10
11 build () {
12 cd $name-$version
13 patch -Np1 -i $SRC/$name-$version-cumulative-1.patch
14 mkdir build64
15 cd build64
16 CC="gcc -m64" CXX="g++ -m64" ../configure --prefix=/usr \
17 --mandir=/usr/man \
18 --libdir=/usr/lib64 \
19 --host=powerpc64-unknown-linux-gnu \
20 --enable-shared
21
22 make
23 make DESTDIR=$PKG install
24
25 cd ..
26 mkdir build32
27 cd build32
28 ../configure --prefix=/usr \
29 --mandir=/usr/man \
30 --host=powerpc-unknown-linux-gnu \
31 --enable-shared
32
33 make
34 make DESTDIR=$PKG install
35
36 rm -rf $PKG/usr/share
37 }