1 | # $Id: Portfile 113965 2013-11-26 20:23:14Z macsforever2000@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name DSDP |
---|
6 | version 5.8 |
---|
7 | revision 2 |
---|
8 | maintainers nomaintainer |
---|
9 | |
---|
10 | categories math science |
---|
11 | description DSDP is a open source implementation of an interior-point method for semidefinite programming |
---|
12 | long_description DSDP provides primal and dual solutions, exploits low-rank structure \ |
---|
13 | and sparsity in the data, and has relatively low memory requirements for an \ |
---|
14 | interior-point method. The dual-scaling algorithm implemented in this package has \ |
---|
15 | a convergence proof and worst-case polynomial complexity under mild assumptions on the data |
---|
16 | platforms darwin |
---|
17 | |
---|
18 | homepage http://www.mcs.anl.gov/hs/software/DSDP/ |
---|
19 | master_sites ${homepage} |
---|
20 | |
---|
21 | distname ${name}${version} |
---|
22 | |
---|
23 | use_zip yes |
---|
24 | use_configure no |
---|
25 | checksums md5 f61d3759cc8c6de688ab5c30877ca83c \ |
---|
26 | sha1 8327a6fe2de902d97c3b4cf63668f2731c84b80d \ |
---|
27 | rmd160 75cf8629445522a4f9bbfffdcec25e832c8ffc4e |
---|
28 | |
---|
29 | depends_lib port:atlas |
---|
30 | |
---|
31 | patchfiles patch-make.include.diff |
---|
32 | |
---|
33 | build.target dsdpapi |
---|
34 | build.env-append DSDPROOT=${worksrcpath} |
---|
35 | |
---|
36 | variant octave description {Build DSDP with octave interface} { |
---|
37 | build.target all |
---|
38 | depends_lib-append path:bin/octave:octave |
---|
39 | } |
---|
40 | |
---|
41 | post-patch { |
---|
42 | reinplace "s|@@MP_CC@@|${configure.cc}|g" \ |
---|
43 | ${worksrcpath}/make.include |
---|
44 | reinplace "s|@@MP_ARCHFLAGS@@|${configure.cc_archflags}|g" \ |
---|
45 | ${worksrcpath}/make.include |
---|
46 | reinplace "s|@@PREFIX@@|${prefix}|g" \ |
---|
47 | ${worksrcpath}/make.include |
---|
48 | } |
---|
49 | destroot { |
---|
50 | xinstall ${worksrcpath}/lib/libdsdp.a ${destroot}${prefix}/lib |
---|
51 | eval xinstall [glob ${worksrcpath}/include/*] ${destroot}${prefix}/include |
---|
52 | xinstall ${worksrcpath}/bin/dsdp5 ${destroot}${prefix}/bin |
---|
53 | xinstall ${worksrcpath}/bin/maxcut ${destroot}${prefix}/bin |
---|
54 | xinstall ${worksrcpath}/bin/theta ${destroot}${prefix}/bin |
---|
55 | |
---|
56 | if {[variant_isset octave]} { |
---|
57 | if {[catch {set msite [exec ${prefix}/bin/octave-config --m-site-dir]}]} { |
---|
58 | set msite ${prefix}/share/dsdp/matlab |
---|
59 | } |
---|
60 | set msite ${msite}/dsdp |
---|
61 | xinstall -d ${destroot}${msite} |
---|
62 | eval file copy [glob ${worksrcpath}/matlab/*] ${destroot}${msite} |
---|
63 | } |
---|
64 | } |
---|
65 | |
---|
66 | livecheck.type regex |
---|
67 | livecheck.url ${master_sites} |
---|
68 | livecheck.regex <a href=\"${name}(.*).tar.gz\">.tar.gz</a> |
---|