Ticket #35719: Portfile_minpack

File Portfile_minpack, 3.0 KB (added by jjstickel (Jonathan Stickel), 12 years ago)
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:
3
4PortSystem          1.0
5
6name                minpack
7version             19961126
8categories          math devel
9license             bsd
10platforms           darwin
11maintainers         gmail.com:jjstickel openmaintainer
12
13description         Minpack includes software for solving nonlinear equations\
14    and nonlinear least squares problems.
15
16long_description    Minpack includes software for solving nonlinear\
17    equations and nonlinear least squares problems.  Five algorithmic\
18    paths each include a core subroutine and an easy-to-use driver.  The\
19    algorithms proceed either from an analytic specification of the\
20    Jacobian matrix or directly from the problem functions.  The paths\
21    include facilities for systems of equations with a banded Jacobian\
22    matrix, for least squares problems with a large amount of data, and\
23    for checking the consistency of the Jacobian matrix with the\
24    functions.
25
26homepage            http://www.netlib.org/minpack/
27master_sites        http://ftp.debian.org/debian/pool/main/m/minpack/
28
29set patch_version       16
30
31distfiles           ${name}_${version}.orig.tar.gz\
32    ${name}_${version}-${patch_version}.diff.gz
33
34checksums           minpack_${version}.orig.tar.gz \
35                    rmd160  a22ca3230cd3a4cf9f71774a146d456ac48aff70 \
36                    sha256  afd0e514d256f053aca8b48071412a39c36ff74b76ec0d48ab3e9d9be9c48a11 \
37                    minpack_${version}-${patch_version}.diff.gz \
38                    rmd160  df70756913760ada08b7acbefec4f094b9c5db84 \
39                    sha256  5647d2a0f3d494b56c6fb249dd159d583c864a6a4bef9ab90d1717534fdd880a
40
41extract.only        ${name}_${version}.orig.tar.gz
42
43worksrcdir          ${name}-${version}.orig
44
45patchfiles           minpack_${version}-${patch_version}.diff.gz
46patch.pre_args       -p1
47
48post-patch {
49    system "chmod +x ${worksrcpath}/configure"
50}
51
52variant gcc45 conflicts gcc46 gcc47 gcc48 description {Use the gcc45 compiler} {
53    depends_lib-append  port:gcc45
54    configure.compiler  macports-gcc-4.5
55}
56variant gcc46 conflicts gcc45 gcc47 gcc48 description {Use the gcc46 compiler} {
57    depends_lib-append  port:gcc46
58    configure.compiler  macports-gcc-4.6
59}
60variant gcc47 conflicts gcc45 gcc46 gcc48 description {Use the gcc47 compiler} {
61    depends_lib-append  port:gcc47
62    configure.compiler  macports-gcc-4.7
63}
64variant gcc48 conflicts gcc45 gcc46 gcc47 description {Use the gcc48 compiler} {
65    depends_lib-append  port:gcc48
66    configure.compiler  macports-gcc-4.8
67}
68if { ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48] } {
69        default_variants      +gcc45
70}
71
72post-destroot {
73    set docdir ${destroot}${prefix}/share/doc/${name}
74    xinstall -m 755 -d ${docdir}
75    xinstall -m 644 ${worksrcpath}/ex/file06 ${docdir}/minpack-documentation.txt
76    xinstall -m 644 ${worksrcpath}/readme ${docdir}/readme
77    xinstall -m 644 ${worksrcpath}/debian/copyright ${docdir}/copyright
78}