[61992] trunk/dports/science/magicspp/Portfile
jmr at macports.org
jmr at macports.org
Sat Dec 26 21:04:16 PST 2009
Revision: 61992
http://trac.macports.org/changeset/61992
Author: jmr at macports.org
Date: 2009-12-26 21:04:14 -0800 (Sat, 26 Dec 2009)
Log Message:
-----------
magicspp: quick fix for portindex failure
Modified Paths:
--------------
trunk/dports/science/magicspp/Portfile
Modified: trunk/dports/science/magicspp/Portfile
===================================================================
--- trunk/dports/science/magicspp/Portfile 2009-12-27 04:54:29 UTC (rev 61991)
+++ trunk/dports/science/magicspp/Portfile 2009-12-27 05:04:14 UTC (rev 61992)
@@ -53,18 +53,20 @@
reinplace "s:FreeBSD__ \):FreeBSD__ ) || defined(__APPLE__):" ${worksrcpath}/src/terralib/kernel/TeUtils.cpp
}
-set submatch ""
-set flib ""
-regexp {\+([[:alnum:]]+) \(active\)} [exec port installed emos] match submatch
-if {${submatch}=="gcc43"} {
- set flib "-L${prefix}/lib/gcc43 -lgfortran"
- configure.compiler macports-gcc-4.3
-} elseif {${submatch}=="g95"} {
- set flib -lf95
- configure.f77 ${prefix}/bin/g95
+pre-configure {
+ set submatch ""
+ set flib ""
+ regexp {\+([[:alnum:]]+) \(active\)} [exec port installed emos] match submatch
+ if {${submatch}=="gcc43"} {
+ set flib "-L${prefix}/lib/gcc43 -lgfortran"
+ configure.compiler macports-gcc-4.3
+ } elseif {${submatch}=="g95"} {
+ set flib -lf95
+ configure.f77 ${prefix}/bin/g95
+ }
+ configure.ldflags-append -lgrib_api -lopenjpeg -lpng -lemosR64 $flib -lnetcdf_c++ -lnetcdf
}
configure.env-append LIBS=\"-lgrib_api -lopenjpeg -lpng\"
-configure.ldflags-append "-lgrib_api -lopenjpeg -lpng -lemosR64 $flib -lnetcdf_c++ -lnetcdf"
configure.cppflags-append -I${prefix}/include/freetype2/
configure.args-append --disable-dependency-tracking \
--enable-cairo \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091226/1de73d18/attachment.html>
More information about the macports-changes
mailing list