[80275] trunk/dports/science/libnc-dap/Portfile

takeshi at macports.org takeshi at macports.org
Fri Jul 8 06:56:12 PDT 2011


Revision: 80275
          http://trac.macports.org/changeset/80275
Author:   takeshi at macports.org
Date:     2011-07-08 06:56:10 -0700 (Fri, 08 Jul 2011)
Log Message:
-----------
libnc-dap: removed fortran interface as default. added gcc45

Modified Paths:
--------------
    trunk/dports/science/libnc-dap/Portfile

Modified: trunk/dports/science/libnc-dap/Portfile
===================================================================
--- trunk/dports/science/libnc-dap/Portfile	2011-07-08 13:33:11 UTC (rev 80274)
+++ trunk/dports/science/libnc-dap/Portfile	2011-07-08 13:56:10 UTC (rev 80275)
@@ -5,12 +5,12 @@
 
 name            libnc-dap
 version         3.7.3
+revision        1
 platforms       darwin
 maintainers     takeshi
 categories      science
 description     an alternative implementation of Unidata's netCDF 3.6 API
-master_sites    ftp://ftp.unidata.ucar.edu/pub/opendap/source/ \
-                http://opendap.org/pub/source/
+master_sites    http://www.opendap.org/pub/source/
 checksums       md5    b69f3fb1b26b65903e41c2aa832cab34         \
                 sha1   785726c7920daeb11de8989753da44e166ebd8e5 \
                 rmd160 d99025ad66a54d7676fe44a6a29d93c272a2e582
@@ -27,25 +27,32 @@
                 port:libdap \
                 port:libxml2
 
-if {![variant_isset g95] && ![variant_isset gcc43]} {
-    default_variants +gcc44
-}
-
-variant gcc43 conflicts g95 gcc44 description {Build using gcc43} {
+variant gcc43 conflicts g95 gcc44 gcc45 description {Build fortran interface using gcc43} {
+    configure.args-delete   --disable-f77
     depends_build-append    port:gcc43
     configure.fc            ${prefix}/bin/gfortran-mp-4.3
 }
 
-variant gcc44 conflicts g95 gcc43 description {Build using gcc44} {
+variant gcc44 conflicts g95 gcc43 gcc45 description {Build fortran interface using gcc44} {
+    configure.args-delete   --disable-f77
     depends_build-append    port:gcc44
     configure.fc            ${prefix}/bin/gfortran-mp-4.4
 }
 
-variant g95 conflicts gcc43 gcc44 description {Build using g95} {
+variant gcc45 conflicts g95 gcc43 gcc45 description {Build fortran interface using gcc45} {
+    configure.args-delete   --disable-f77
+    depends_build-append    port:gcc45
+    configure.fc            ${prefix}/bin/gfortran-mp-4.5
+}
+
+variant g95 conflicts gcc43 gcc44 gcc45 description {Build fortran interface using g95} {
+    configure.args-delete   --disable-f77
     depends_build-append    port:g95
     configure.fc            ${prefix}/bin/g95
 }
 
+configure.args-append       --disable-f77
+
 pre-build {
     if {[variant_isset universal]} {
         reinplace "s|single_module|single_module ${configure.universal_ldflags}|" ${worksrcpath}/libtool
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110708/3cf1984f/attachment-0001.html>


More information about the macports-changes mailing list