source: trunk/dports/devel/mpfr/Portfile @ 45984

Last change on this file since 45984 was 45984, checked in by mcalhoun@…, 9 years ago

mpfr: mpfr can only support the same architectures as gmp.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 45984 2009-01-26 15:03:37Z mcalhoun@macports.org $
2
3PortSystem 1.0
4
5# Although mpfr builds without a custom universal variant,
6# it is not the same as builing the archs differently
7# due to the variable HAVE_LDOUBLE_IEEE_EXT_LITTLE.
8PortGroup  muniversal 1.0
9
10name            mpfr
11version         2.3.2
12categories      devel math
13platforms       darwin
14maintainers     vincent-opdarw@vinc17.org
15
16description     C library for multiple-precision floating-point computations
17long_description \
18    MPFR is a portable C library for arbitrary-precision binary \
19    floating-point computation with correct rounding, based on the GMP \
20    multiple-precision library. The computation is both efficient and \
21    has a well-defined semantics. It copies the good ideas from the \
22    ANSI/IEEE-754 standard for fixed-precision floating-point arithmetic.
23
24homepage        http://www.mpfr.org/
25master_sites    http://www.mpfr.org/mpfr-${version}/
26
27checksums \
28    ${distname}.tar.bz2 md5 527147c097874340cb9cee0579dacf3b \
29    ${distname}.tar.bz2 sha1 37dbd478e1c136f37cf4c68eb1522e86e2307288 \
30    ${distname}.tar.bz2 rmd160 7f025fa03450cd64e57b226804d013614ef7d165
31
32use_bzip2       yes
33use_parallel_build yes
34
35depends_lib     port:gmp
36
37dist_subdir     ${name}/${version}
38
39#patch_sites     ${master_sites}
40#patchfiles      patch01 patch02 patch03 patch04
41#patch.args      -p1
42
43test.run        yes
44test.target     check
45
46post-destroot {
47    set docdir ${destroot}${prefix}/share/doc/${name}
48    file mkdir ${docdir}
49    xinstall -m 644 -v -W ${worksrcpath} \
50      AUTHORS BUGS COPYING.LIB FAQ.html NEWS TODO ${docdir}
51}
52
53# universal_archs_supported must be the same as gmp
54if { ${os.arch}=="i386" } {
55    if { [llength ${universal_archs}] > 2 } {
56        set universal_archs_supported  "i386 x86_64"
57    }
58} else {
59    set universal_archs_supported  "ppc ppc64"
60}
61
62array set merger_host {
63    i386    i386-apple-darwin
64    x86_64  x86_64-apple-darwin
65}
66
67livecheck.url    http://www.mpfr.org/mpfr-current/
68livecheck.regex  "mpfr-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.