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