source: trunk/dports/devel/mpfr/Portfile

Last change on this file was 150036, checked in by devans@…, 8 months ago

mpfr: update to version 3.1.4.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 150036 2016-07-09 00:55:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6# Although mpfr builds without a custom universal variant,
7# it is not the same as building the archs differently
8# due to the variable HAVE_LDOUBLE_IEEE_EXT_LITTLE.
9PortGroup           muniversal 1.0
10PortGroup           compiler_blacklist_versions 1.0
11
12name                mpfr
13# The actual version is generated below, after patchfiles is defined.
14set base_version    3.1.4
15categories          devel math
16platforms           darwin
17license             LGPL-3+
18maintainers         larryv openmaintainer
19
20description         C library for multiple-precision floating-point \
21                    computations
22long_description    MPFR is a portable C library for arbitrary-precision \
23                    binary floating-point computation with correct \
24                    rounding, based on the GMP multiple-precision \
25                    library. The computation is both efficient and \
26                    has a well-defined semantics. It copies the good \
27                    ideas from the ANSI/IEEE-754 standard for \
28                    fixed-precision floating-point arithmetic.
29homepage            http://www.mpfr.org/
30
31depends_lib         port:gmp
32
33distname            ${name}-${base_version}
34master_sites        http://www.mpfr.org/${distname}
35use_xz              yes
36checksums           ${distname}${extract.suffix} \
37                        rmd160  39e7f7368110ea43a49bbe1007d9e9f67b4de64b \
38                        sha256  761413b16d749c53e2bfd2b1dfaa3b027b0e793e404b90b5fbaeef60af6517f5
39
40# Upstream patch names are not qualified with the base version.
41dist_subdir         ${name}/${base_version}
42
43patch.args          -p1
44patchfiles          {*}[lsearch -all -inline ${checksums} {patch[0-9][0-9]}]
45
46set patch_level [llength ${patchfiles}]
47if {${patch_level} > 0} {
48    version         ${base_version}-p${patch_level}
49} else {
50    version         ${base_version}
51}
52
53# Due to radr://10291355 (llvm.org PR11111), the new tls support enabled in clang with Xcode 4.2
54# miscompiles mpfr. While this was fixed in Xcode 4.2.1, as the ttls support was never used prior to
55# Xcode 4.2, the generic fix is to pass --disable-thread-safe to configure, however this will break
56# any project that requires a thread-safe mpfr library, therefore the Xcode 4.2 compiler is
57# blacklisted here
58compiler.blacklist  {clang == 211.10.1}
59
60test.run            yes
61test.target         check
62
63livecheck.version   ${base_version}
64livecheck.url       http://www.mpfr.org/mpfr-current/
65livecheck.regex     "mpfr-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.