[65742] trunk/dports/math/lp_solve
ryandesign at macports.org
ryandesign at macports.org
Tue Mar 30 20:20:17 PDT 2010
Revision: 65742
http://trac.macports.org/changeset/65742
Author: ryandesign at macports.org
Date: 2010-03-30 20:20:13 -0700 (Tue, 30 Mar 2010)
Log Message:
-----------
lp_solve: fix install_name of liblpsolve55.dylib using a patch emailed to me by Fr?\195?\169d?\195?\169ric Devernay
Modified Paths:
--------------
trunk/dports/math/lp_solve/Portfile
trunk/dports/math/lp_solve/files/Makefile
Added Paths:
-----------
trunk/dports/math/lp_solve/files/patch-install_name.diff
Modified: trunk/dports/math/lp_solve/Portfile
===================================================================
--- trunk/dports/math/lp_solve/Portfile 2010-03-31 00:54:41 UTC (rev 65741)
+++ trunk/dports/math/lp_solve/Portfile 2010-03-31 03:20:13 UTC (rev 65742)
@@ -4,6 +4,7 @@
name lp_solve
version 5.5.0.15
+revision 1
set branch [join [lrange [split ${version} .] 0 1] .]
categories math
platforms darwin
@@ -29,11 +30,13 @@
}
patchfiles patch-Wno-long-double.diff \
- patch-CC.diff
+ patch-CC.diff \
+ patch-install_name.diff
use_configure no
-build.args CC="${configure.cc} ${configure.cc_archflags}"
+build.args CC="${configure.cc} ${configure.cc_archflags}" \
+ PREFIX="${prefix}"
destroot {
switch ${configure.build_arch} {
Modified: trunk/dports/math/lp_solve/files/Makefile
===================================================================
--- trunk/dports/math/lp_solve/files/Makefile 2010-03-31 00:54:41 UTC (rev 65741)
+++ trunk/dports/math/lp_solve/files/Makefile 2010-03-31 03:20:13 UTC (rev 65742)
@@ -7,4 +7,4 @@
all: $(SUBDIRS)
$(SUBDIRS):
- cd "$@" && c="$(CC)" sh ./ccc.osx
+ cd "$@" && c="$(CC)" prefix="$(PREFIX)" sh -x ./ccc.osx
Added: trunk/dports/math/lp_solve/files/patch-install_name.diff
===================================================================
--- trunk/dports/math/lp_solve/files/patch-install_name.diff (rev 0)
+++ trunk/dports/math/lp_solve/files/patch-install_name.diff 2010-03-31 03:20:13 UTC (rev 65742)
@@ -0,0 +1,11 @@
+--- lpsolve55/ccc.osx 2009-08-09 10:36:19.000000000 -0500
++++ lpsolve55/ccc.osx 2010-03-30 22:02:41.000000000 -0500
+@@ -37,7 +37,7 @@
+ if [ "$so" != "" ]
+ then
+ $c -fPIC -fno-common -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $opts $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
+- $c -dynamiclib bin/$PLATFORM/liblpsolve55.a -compatibility_version 5.5.0 -current_version 5.5.0 -o bin/$PLATFORM/liblpsolve55.dylib `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc
++ $c -dynamiclib bin/$PLATFORM/liblpsolve55.a -compatibility_version 5.5.0 -current_version 5.5.0 -o bin/$PLATFORM/liblpsolve55.dylib -install_name $prefix/lib/liblpsolve55.dylib `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc
+ fi
+
+ rm *.o 2>/dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100330/b1e190a6/attachment.html>
More information about the macports-changes
mailing list