Ticket #11085: Portfile

File Portfile, 1.4 KB (added by vinc17@…, 17 years ago)

Portfile for mpfr 2.2.1

Line 
1# $Id: Portfile 15063 2006-11-29 22:58:53Z lefevre $
2
3PortSystem 1.0
4
5name            mpfr
6version         2.2.1
7categories      devel math
8platforms       darwin
9maintainers     leimy@opendarwin.org
10
11description     The MPFR library is a C library for multiple-precision floating-point computations
12long_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
18homepage        http://www.mpfr.org/
19master_sites    http://www.mpfr.org/mpfr-${version}/
20checksums       md5 40bf06f8081461d8db7d6f4ad5b9f6bd \
21                sha1 d0abd0943fcfc937a816bf67baaff3f0273a19e7
22use_bzip2       yes
23extract.only    ${name}-${version}.tar.bz2
24
25depends_lib     port:gmp
26
27configure.args  --enable-shared --infodir=\\\${prefix}/share/info --with-gmp=${prefix}
28configure.env   CFLAGS="-fno-common" LDFLAGS="-L${prefix}/lib"
29
30test.run        yes
31test.target     check
32
33post-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
40platform darwin x86     {
41        configure.args-append   --host=none-apple-darwin
42}
43platform darwin i386    {
44        configure.args-append   --host=none-apple-darwin
45}
46
47platform 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}