[50241] trunk/dports/math/metis/Portfile
mcalhoun at macports.org
mcalhoun at macports.org
Mon Apr 27 18:27:01 PDT 2009
Revision: 50241
http://trac.macports.org/changeset/50241
Author: mcalhoun at macports.org
Date: 2009-04-27 18:27:00 -0700 (Mon, 27 Apr 2009)
Log Message:
-----------
metis: Fix library location.
Modified Paths:
--------------
trunk/dports/math/metis/Portfile
Modified: trunk/dports/math/metis/Portfile
===================================================================
--- trunk/dports/math/metis/Portfile 2009-04-28 01:22:20 UTC (rev 50240)
+++ trunk/dports/math/metis/Portfile 2009-04-28 01:27:00 UTC (rev 50241)
@@ -28,7 +28,7 @@
build.target
# Prevent -lmetis from finding library ${prefix}/lib
-configure.ldflags-delete -L${prefix}
+configure.ldflags-delete -L${prefix}/lib
set ver0 [join [lrange [split ${version} .] 0 0] .]
set ver1 [join [lrange [split ${version} .] 0 1] .]
@@ -37,7 +37,9 @@
# ensure that the correct compiler and compiler options are used.
reinplace "s|CC = .*|CC = ${configure.cc}|" ${worksrcpath}/Makefile.in
reinplace "s|OPTFLAGS = .*|OPTFLAGS = ${configure.cflags}|" ${worksrcpath}/Makefile.in
- reinplace "s|LDOPTIONS = .*|LDOPTIONS = ${configure.ldflags}|" ${worksrcpath}/Makefile.in
+ if { [info exists configure.ldflags] } {
+ reinplace "s|LDOPTIONS = .*|LDOPTIONS = ${configure.ldflags}|" ${worksrcpath}/Makefile.in
+ }
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Lib/Makefile
reinplace "s|__VERSION__|${version}|g" ${worksrcpath}/Lib/Makefile
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090427/b9107a99/attachment.html>
More information about the macports-changes
mailing list