[62149] trunk/dports/math/lp_solve

ryandesign at macports.org ryandesign at macports.org
Tue Dec 29 23:27:53 PST 2009


Revision: 62149
          http://trac.macports.org/changeset/62149
Author:   ryandesign at macports.org
Date:     2009-12-29 23:27:50 -0800 (Tue, 29 Dec 2009)
Log Message:
-----------
lp_solve: build using our own Makefile, enabling parallel build and ensuring we're UsingTheRightCompiler

Modified Paths:
--------------
    trunk/dports/math/lp_solve/Portfile

Added Paths:
-----------
    trunk/dports/math/lp_solve/files/Makefile
    trunk/dports/math/lp_solve/files/patch-CC.diff

Modified: trunk/dports/math/lp_solve/Portfile
===================================================================
--- trunk/dports/math/lp_solve/Portfile	2009-12-30 06:55:46 UTC (rev 62148)
+++ trunk/dports/math/lp_solve/Portfile	2009-12-30 07:27:50 UTC (rev 62149)
@@ -5,6 +5,7 @@
 name                    lp_solve
 version                 5.5.0.13
 revision                1
+set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              math
 platforms               darwin
 maintainers             nomaintainer
@@ -17,22 +18,26 @@
                         lp_solve is written in ANSI C and can be compiled on \
                         many different platforms like Mac OS X, Linux and Windows.
 
-homepage                http://lpsolve.sourceforge.net/5.5/
+homepage                http://lpsolve.sourceforge.net/${branch}/
 master_sites            sourceforge:lpsolve
 distname                ${name}_${version}_source
-worksrcdir              ${name}_5.5
+worksrcdir              ${name}_${branch}
 
 checksums               md5     e8e71b1bf86267597d5776ab0f69721d \
                         sha1    ddad2f7aabfcc9c9998800c09b4a3d27fca7138f \
                         rmd160  63ffd2df25bde0c7ca5da4fba4140a8fb97b0495
 
-patchfiles              patch-Wno-long-double.diff
+post-extract {
+    xinstall -m 644 ${filespath}/Makefile ${worksrcpath}
+}
+
+patchfiles              patch-Wno-long-double.diff \
+                        patch-CC.diff
+
 use_configure           no
-set worksrcpath         ${workpath}/${worksrcdir}
-build.cmd               cd ${worksrcpath}/lpsolve55/ && sh ./ccc.osx && \
-                        cd ${worksrcpath}/lp_solve/ && sh ./ccc.osx
-build.args              {}
 
+build.args              CC=${configure.cc}
+
 destroot {
     xinstall -m 755 -W ${worksrcpath}/lpsolve55 \
         liblpsolve55.a liblpsolve55.dylib ${destroot}${prefix}/lib

Added: trunk/dports/math/lp_solve/files/Makefile
===================================================================
--- trunk/dports/math/lp_solve/files/Makefile	                        (rev 0)
+++ trunk/dports/math/lp_solve/files/Makefile	2009-12-30 07:27:50 UTC (rev 62149)
@@ -0,0 +1,10 @@
+# $Id$
+
+SUBDIRS = lpsolve55 lp_solve
+
+.PHONY: all $(SUBDIRS)
+
+all: $(SUBDIRS)
+
+$(SUBDIRS):
+	cd "$@" && c=$(CC) sh ./ccc.osx


Property changes on: trunk/dports/math/lp_solve/files/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/math/lp_solve/files/patch-CC.diff
===================================================================
--- trunk/dports/math/lp_solve/files/patch-CC.diff	                        (rev 0)
+++ trunk/dports/math/lp_solve/files/patch-CC.diff	2009-12-30 07:27:50 UTC (rev 62149)
@@ -0,0 +1,32 @@
+--- demo/ccc.osx	2005-06-11 15:27:44.000000000 -0500
++++ demo/ccc.osx	2009-12-30 01:21:35.000000000 -0600
+@@ -1,5 +1,4 @@
+ src='../bfp/lp_MDO.c ../commonlib.c ../myblas.c ../colamd/colamd.c ../ini.c ../fortify.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_etaPFI/lp_etaPFI.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c demo.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
+-c=cc
+ 
+ math=-lm
+ 
+--- lp_solve/ccc.osx	2005-06-11 15:27:38.000000000 -0500
++++ lp_solve/ccc.osx	2009-12-30 01:21:34.000000000 -0600
+@@ -1,5 +1,4 @@
+ src='../lp_MDO.c ../shared/commonlib.c ../colamd/colamd.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c lp_solve.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
+-c=cc
+ 
+ math=-lm
+ 
+--- lpsolve55/ccc.osx	2005-06-23 16:53:08.000000000 -0500
++++ lpsolve55/ccc.osx	2009-12-30 01:21:33.000000000 -0600
+@@ -1,5 +1,4 @@
+ src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c'
+-c=cc
+ 
+ def=
+ so=
+--- lpsolve55/cccLUSOL.osx	2005-06-23 16:53:18.000000000 -0500
++++ lpsolve55/cccLUSOL.osx	2009-12-30 01:21:32.000000000 -0600
+@@ -1,5 +1,4 @@
+ src='../lp_MDO.c ../shared/commonlib.c ../shared/mmio.c ../shared/myblas.c ../ini.c ../fortify.c ../colamd/colamd.c ../lp_rlp.c ../lp_crash.c ../bfp/bfp_LUSOL/lp_LUSOL.c ../bfp/bfp_LUSOL/LUSOL/lusol.c ../lp_Hash.c ../lp_lib.c ../lp_wlp.c ../lp_matrix.c ../lp_mipbb.c ../lp_MPS.c ../lp_params.c ../lp_presolve.c ../lp_price.c ../lp_pricePSE.c ../lp_report.c ../lp_scale.c ../lp_simplex.c ../lp_SOS.c ../lp_utils.c ../yacc_read.c ../bfp/bfp_LUSOL/lusol.c'
+-c=cc
+ 
+ def=
+ so=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091229/844c27b6/attachment.html>


More information about the macports-changes mailing list