1 | # $Id: Portfile 15063 2006-11-29 22:58:53Z lefevre $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mpfr |
---|
6 | version 2.2.1 |
---|
7 | categories devel math |
---|
8 | platforms darwin |
---|
9 | maintainers leimy@opendarwin.org |
---|
10 | |
---|
11 | description The MPFR library is a C library for multiple-precision floating-point computations |
---|
12 | long_description The MPFR library is a C library for multiple-precision \ |
---|
13 | floating-point computations with exact rounding (also called \ |
---|
14 | correct rounding). It is based on the GMP multiple-precision \ |
---|
15 | library and should replace the MPF class in further releases \ |
---|
16 | of GMP. |
---|
17 | |
---|
18 | homepage http://www.mpfr.org/ |
---|
19 | master_sites http://www.mpfr.org/mpfr-${version}/ |
---|
20 | checksums md5 40bf06f8081461d8db7d6f4ad5b9f6bd \ |
---|
21 | sha1 d0abd0943fcfc937a816bf67baaff3f0273a19e7 |
---|
22 | use_bzip2 yes |
---|
23 | extract.only ${name}-${version}.tar.bz2 |
---|
24 | |
---|
25 | depends_lib port:gmp |
---|
26 | |
---|
27 | configure.args --enable-shared --infodir=\\\${prefix}/share/info --with-gmp=${prefix} |
---|
28 | configure.env CFLAGS="-fno-common" LDFLAGS="-L${prefix}/lib" |
---|
29 | |
---|
30 | test.run yes |
---|
31 | test.target check |
---|
32 | |
---|
33 | post-destroot { |
---|
34 | xinstall -d -m 755 ${destroot}${prefix}/share/${name} |
---|
35 | xinstall -m 644 -v -W ${worksrcpath} mpfr.texi texinfo.tex \ |
---|
36 | ${destroot}${prefix}/share/${name} |
---|
37 | system "ranlib ${destroot}${prefix}/lib/libmpfr.a" |
---|
38 | } |
---|
39 | |
---|
40 | platform darwin x86 { |
---|
41 | configure.args-append --host=none-apple-darwin |
---|
42 | } |
---|
43 | platform darwin i386 { |
---|
44 | configure.args-append --host=none-apple-darwin |
---|
45 | } |
---|
46 | |
---|
47 | platform darwin 8 { |
---|
48 | configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0 |
---|
49 | } |
---|