[53357] trunk/dports/math

raimue at macports.org raimue at macports.org
Fri Jul 3 17:28:37 PDT 2009


Revision: 53357
          http://trac.macports.org/changeset/53357
Author:   raimue at macports.org
Date:     2009-07-03 17:28:37 -0700 (Fri, 03 Jul 2009)
Log Message:
-----------
math/DSDP:
New port, closes #19933

Added Paths:
-----------
    trunk/dports/math/DSDP/
    trunk/dports/math/DSDP/Portfile
    trunk/dports/math/DSDP/files/
    trunk/dports/math/DSDP/files/make.include.diff

Added: trunk/dports/math/DSDP/Portfile
===================================================================
--- trunk/dports/math/DSDP/Portfile	                        (rev 0)
+++ trunk/dports/math/DSDP/Portfile	2009-07-04 00:28:37 UTC (rev 53357)
@@ -0,0 +1,57 @@
+# $Id$
+
+PortSystem          1.0
+
+name                DSDP
+version             5.8
+maintainers         inmachina.com:max openmaintainer
+
+categories          math science
+description         DSDP is a open source implementation of an interior-point method for semidefinite programming
+long_description    DSDP provides primal and dual solutions, exploits low-rank structure \
+                    and sparsity in the data, and has relatively low memory requirements for an \
+                    interior-point method. The dual-scaling algorithm implemented in this package has \
+                    a convergence proof and worst-case polynomial complexity under mild assumptions on the data
+platforms           darwin
+
+homepage            http://www.mcs.anl.gov/hs/software/DSDP/
+master_sites        ${homepage}
+
+distname            ${name}${version}
+
+use_zip             yes
+use_configure       no
+checksums           md5     f61d3759cc8c6de688ab5c30877ca83c \
+                    sha1    8327a6fe2de902d97c3b4cf63668f2731c84b80d \
+                    rmd160  75cf8629445522a4f9bbfffdcec25e832c8ffc4e
+
+patchfiles          make.include.diff
+
+build.target        dsdpapi
+build.env-append    DSDPROOT=${worksrcpath} 
+
+variant octave description {Build DSDP with octave interface} {
+    build.target            all
+    depends_lib-append      port:octave
+}
+
+destroot {
+    xinstall ${worksrcpath}/lib/libdsdp.a ${destroot}/${prefix}/lib
+    eval xinstall [glob ${worksrcpath}/include/*] ${destroot}/${prefix}/include
+    xinstall ${worksrcpath}/bin/dsdp5 ${destroot}/${prefix}/bin
+    xinstall ${worksrcpath}/bin/maxcut ${destroot}/${prefix}/bin
+    xinstall ${worksrcpath}/bin/theta ${destroot}/${prefix}/bin
+    
+    if {[variant_isset octave]} {
+        if {[catch {set msite [exec ${prefix}/bin/octave-config --m-site-dir]}]} {
+            set msite ${prefix}/share/dsdp/matlab
+        }
+        set msite ${msite}/dsdp
+        xinstall -d ${destroot}${msite}
+        eval file copy [glob ${worksrcpath}/matlab/*] ${destroot}${msite}
+    }
+}
+
+livecheck.check     regex
+livecheck.url       ${master_sites}
+livecheck.regex     <a href=\"${name}(.*).tar.gz\">.tar.gz</a>


Property changes on: trunk/dports/math/DSDP/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/math/DSDP/files/make.include.diff
===================================================================
--- trunk/dports/math/DSDP/files/make.include.diff	                        (rev 0)
+++ trunk/dports/math/DSDP/files/make.include.diff	2009-07-04 00:28:37 UTC (rev 53357)
@@ -0,0 +1,29 @@
+--- make.include.orig	2009-07-04 02:00:00.000000000 +0200
++++ make.include	2009-07-04 02:01:42.000000000 +0200
+@@ -32,7 +32,7 @@
+ #DSDPTIMER  = DSDP_MS_TIME
+ 
+ # STEP 3c: Add other compiler flags.
+-DSDPCFLAGS = 
++DSDPCFLAGS = -DDSDP_TIME -I/usr/include/sys
+ #DSDPCFLAGS = -Wall
+ #DSDPCFLAGS = -DDSDPMATLAB
+ #  Other flags concern BLAS and LAPACK libraries -- see next step.
+@@ -55,7 +55,7 @@
+ # Not needed to compile library or matlab executable
+ # Needed to link DSDP library to the driver ( read SDPA files, maxcut example, ...)
+ # Also include the math library and other libraries needed to link the BLAS to the C files that call them.
+-LAPACKBLAS  = -llapack -lblas -lg2c -lm
++LAPACKBLAS  = -llapack -lblas -lm
+ #LAPACKBLAS  = -L/usr/lib/ -llapack -lblas -lg2c -lm
+ #LAPACKBLAS  = -L/home/benson/ATLAS/Linux_P4SSE2/lib -llapack -lcblas -lf77blas -latlas -lg2c -lm
+ #LAPACKBLAS  = -L/sandbox/benson/ATLAS-3.6/lib/Linux_P4SSE2  -llapack -lcblas -lf77blas -latlas -lg2c -lm 
+@@ -63,7 +63,7 @@
+ 
+ 
+ # STEP 6, MATLAB MACROS - If compiling Matlab interface, check MEX flag.
+-MEX           = mex -O
++MEX           = mkoctfile --mex
+ #MEX     = C:\Matlab\bin\mex
+ DSDPMATLABDIR = ${DSDPROOT}/matlab
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090703/63dfb6b1/attachment.html>


More information about the macports-changes mailing list