[79608] trunk/dports/math/DSDP

jmr at macports.org jmr at macports.org
Mon Jun 20 06:03:09 PDT 2011


Revision: 79608
          http://trac.macports.org/changeset/79608
Author:   jmr at macports.org
Date:     2011-06-20 06:03:08 -0700 (Mon, 20 Jun 2011)
Log Message:
-----------
DSDP: obey build_arch (#25313)

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

Modified: trunk/dports/math/DSDP/Portfile
===================================================================
--- trunk/dports/math/DSDP/Portfile	2011-06-20 08:34:38 UTC (rev 79607)
+++ trunk/dports/math/DSDP/Portfile	2011-06-20 13:03:08 UTC (rev 79608)
@@ -39,8 +39,10 @@
 }
 
 post-patch { 	
-    reinplace -E "s|@@MP_CC@@|${configure.cc}|g" \
+    reinplace "s|@@MP_CC@@|${configure.cc}|g" \
         ${worksrcpath}/make.include
+    reinplace "s|@@MP_ARCHFLAGS@@|${configure.cc_archflags}|g" \
+        ${worksrcpath}/make.include
 }
 destroot {
     xinstall ${worksrcpath}/lib/libdsdp.a ${destroot}${prefix}/lib

Modified: trunk/dports/math/DSDP/files/patch-make.include.diff
===================================================================
--- trunk/dports/math/DSDP/files/patch-make.include.diff	2011-06-20 08:34:38 UTC (rev 79607)
+++ trunk/dports/math/DSDP/files/patch-make.include.diff	2011-06-20 13:03:08 UTC (rev 79608)
@@ -1,5 +1,5 @@
---- make.include.orig	2011-02-28 21:29:20.000000000 +0100
-+++ make.include	2011-02-28 21:29:55.000000000 +0100
+--- make.include.orig	2005-10-22 05:30:55.000000000 +1000
++++ make.include	2011-06-20 22:55:40.000000000 +1000
 @@ -6,7 +6,7 @@
  #   the defaults below should work, although fast BLAS and LAPACK recommended.
  
@@ -18,6 +18,17 @@
  #DSDPCFLAGS = -Wall
  #DSDPCFLAGS = -DDSDPMATLAB
  #  Other flags concern BLAS and LAPACK libraries -- see next step.
+@@ -43,8 +43,8 @@
+ 
+ 
+ # STEP 4.  Set Linker and FLAGS:  Link the DSDP library to application
+-CFLAGS   = ${OPTFLAGS} -I. -I${DSDPROOT}/include ${DSDPCFLAGS}
+-CLINKER	= ${CC} ${OPTFLAGS}
++CFLAGS   = ${OPTFLAGS} @@MP_ARCHFLAGS@@ -I. -I${DSDPROOT}/include ${DSDPCFLAGS}
++CLINKER	= ${CC} ${OPTFLAGS} @@MP_ARCHFLAGS@@
+ #CLINKER	= ${CXX} ${OPTFLAGS} -static
+ #CLINKER	= link /out:dsdp5.exe
+ 
 @@ -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, ...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110620/4ea369cf/attachment.html>


More information about the macports-changes mailing list