Ticket #19933: Portfile

File Portfile, 2.1 KB (added by max@…, 15 years ago)

Updated Portfile, moved DSDPCFLAGS to make.include.patch

Line 
1# $Id$
2
3PortSystem          1.0
4
5name                DSDP
6version             5.8
7maintainers         inmachina.com:max openmaintainer
8
9categories          math science
10description         DSDP is a open source implementation of an interior-point method for semidefinite programming
11long_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
15platforms           darwin
16
17homepage            http://www.mcs.anl.gov/hs/software/DSDP/
18master_sites        ${homepage}
19
20distname            ${name}${version}
21
22use_zip             yes
23use_configure           no
24checksums           md5     f61d3759cc8c6de688ab5c30877ca83c \
25                    sha1    8327a6fe2de902d97c3b4cf63668f2731c84b80d \
26                    rmd160  75cf8629445522a4f9bbfffdcec25e832c8ffc4e
27
28patchfiles          make.include.diff
29
30build.target        dsdpapi
31build.env-append    DSDPROOT=${worksrcpath}
32
33variant octave description {Build DSDP with octave interface} {
34    build.target            all
35    depends_lib-append      port:octave
36}
37
38destroot {
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
55livecheck.check     regex
56livecheck.url       ${master_sites}
57livecheck.regex     <a href=\"${name}(.*).tar.gz\">.tar.gz</a>