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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name minpack |
---|
7 | version 19961126 |
---|
8 | categories math devel |
---|
9 | license bsd |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:jjstickel openmaintainer |
---|
12 | |
---|
13 | description Minpack includes software for solving nonlinear equations\ |
---|
14 | and nonlinear least squares problems. |
---|
15 | |
---|
16 | long_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 | |
---|
26 | homepage http://www.netlib.org/minpack/ |
---|
27 | master_sites http://ftp.debian.org/debian/pool/main/m/minpack/ |
---|
28 | |
---|
29 | set patch_version 16 |
---|
30 | |
---|
31 | distfiles ${name}_${version}.orig.tar.gz\ |
---|
32 | ${name}_${version}-${patch_version}.diff.gz |
---|
33 | |
---|
34 | checksums 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 | |
---|
41 | extract.only ${name}_${version}.orig.tar.gz |
---|
42 | |
---|
43 | worksrcdir ${name}-${version}.orig |
---|
44 | |
---|
45 | patchfiles minpack_${version}-${patch_version}.diff.gz |
---|
46 | patch.pre_args -p1 |
---|
47 | |
---|
48 | post-patch { |
---|
49 | system "chmod +x ${worksrcpath}/configure" |
---|
50 | } |
---|
51 | |
---|
52 | variant gcc45 conflicts gcc46 gcc47 gcc48 description {Use the gcc45 compiler} { |
---|
53 | depends_lib-append port:gcc45 |
---|
54 | configure.compiler macports-gcc-4.5 |
---|
55 | } |
---|
56 | variant gcc46 conflicts gcc45 gcc47 gcc48 description {Use the gcc46 compiler} { |
---|
57 | depends_lib-append port:gcc46 |
---|
58 | configure.compiler macports-gcc-4.6 |
---|
59 | } |
---|
60 | variant gcc47 conflicts gcc45 gcc46 gcc48 description {Use the gcc47 compiler} { |
---|
61 | depends_lib-append port:gcc47 |
---|
62 | configure.compiler macports-gcc-4.7 |
---|
63 | } |
---|
64 | variant gcc48 conflicts gcc45 gcc46 gcc47 description {Use the gcc48 compiler} { |
---|
65 | depends_lib-append port:gcc48 |
---|
66 | configure.compiler macports-gcc-4.8 |
---|
67 | } |
---|
68 | if { ![variant_isset gcc46] && ![variant_isset gcc47] && ![variant_isset gcc48] } { |
---|
69 | default_variants +gcc45 |
---|
70 | } |
---|
71 | |
---|
72 | post-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 | } |
---|