[74749] trunk/dports/math/dotwrp/Portfile
takeshi at macports.org
takeshi at macports.org
Sat Jan 1 06:26:11 PST 2011
Revision: 74749
http://trac.macports.org/changeset/74749
Author: takeshi at macports.org
Date: 2011-01-01 06:26:04 -0800 (Sat, 01 Jan 2011)
Log Message:
-----------
dotwrp: added gcc44 and gcc45 variants
Modified Paths:
--------------
trunk/dports/math/dotwrp/Portfile
Modified: trunk/dports/math/dotwrp/Portfile
===================================================================
--- trunk/dports/math/dotwrp/Portfile 2011-01-01 06:04:00 UTC (rev 74748)
+++ trunk/dports/math/dotwrp/Portfile 2011-01-01 14:26:04 UTC (rev 74749)
@@ -5,6 +5,7 @@
name dotwrp
version 1.0
+revision 1
categories math science
platforms darwin
maintainers takeshi
@@ -20,9 +21,17 @@
use_configure no
-depends_build port:g95
+if { ![variant_isset g95] && ![variant_isset gcc45]} {
+ default_variants +gcc44
+}
-set fc ${prefix}/bin/g95
+if {[variant_isset g95]} {
+ set fc ${prefix}/bin/g95
+} elseif {[variant_isset gcc45]} {
+ set fc ${prefix}/bin/gfortran-mp-4.5
+} else {
+ set fc ${prefix}/bin/gfortran-mp-4.4
+}
set fflags "${configure.fflags} -fno-underscoring"
build {
system "cd ${worksrcpath};
@@ -34,3 +43,15 @@
destroot {
xinstall -m 644 ${worksrcpath}/lib${name}.a ${destroot}${prefix}/lib
}
+
+variant g95 conflicts gcc44 gcc45 description {compile with g95} {
+ depends_build port:g95
+}
+
+variant gcc44 conflicts g95 gcc45 description {compile with gfortran-mp-4.4} {
+ depends_build port:gcc44
+}
+
+variant gcc45 conflicts g95 gcc44 description {compile with gfortran-mp-4.5} {
+ depends_build port:gcc45
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110101/9b246025/attachment.html>
More information about the macports-changes
mailing list