[80272] trunk/dports/science/grib_api/Portfile

takeshi at macports.org takeshi at macports.org
Fri Jul 8 06:07:02 PDT 2011


Revision: 80272
          http://trac.macports.org/changeset/80272
Author:   takeshi at macports.org
Date:     2011-07-08 06:07:01 -0700 (Fri, 08 Jul 2011)
Log Message:
-----------
grib_api: updated for 1.9.9

Modified Paths:
--------------
    trunk/dports/science/grib_api/Portfile

Modified: trunk/dports/science/grib_api/Portfile
===================================================================
--- trunk/dports/science/grib_api/Portfile	2011-07-08 12:28:42 UTC (rev 80271)
+++ trunk/dports/science/grib_api/Portfile	2011-07-08 13:07:01 UTC (rev 80272)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                grib_api
-version             1.9.0
-revision            1
+version             1.9.9
 platforms           darwin
 maintainers         takeshi
 license             LGPL
@@ -13,9 +12,9 @@
 description         GRIB decoder
 homepage            http://www.ecmwf.int/products/data/software/grib_api.html
 master_sites        http://www.ecmwf.int/products/data/software/download/software_files/
-checksums           md5     daa84dfd97e90f321281b200745185b2 \
-                    sha1    7bc1d54deecfc691892fb86742acd3f29162123e \
-                    rmd160  7501961311936526bc6207d4edb37f32f912010b
+checksums           md5     fe6c684e4a41477f3a6e97ab8892f35d \
+                    sha1    f16333363f35cbcab496118afe1fe21ae743b756 \
+                    rmd160  fb2fa217edf7c07b432af91337da3cf04039fd9c
 long_description \
     The ECMWF GRIB API is an application program interface accessible \
     from C and FORTRAN programs developed for encoding and decoding   \
@@ -29,9 +28,6 @@
 post-patch {
     reinplace "s|share\/samples|share/$name/samples|" ${worksrcpath}/configure
     reinplace "s|share\/definitions|share/$name/definitions|" ${worksrcpath}/configure
-    foreach d {grib1 grib1_mlgrib2} {
-        reinplace "s|ifs_samples_${d}dir = ifs_samples/${d}|ifs_samples_${d}dir = \$(datadir)/${name}/ifs_samples/${d}|" ${worksrcpath}/ifs_samples/${d}/Makefile.in
-    }
     if {![variant_isset emos]} {
         reinplace "s|'none'|''|" ${worksrcpath}/configure
     }
@@ -39,6 +35,7 @@
 
 configure.args      --disable-dependency-tracking \
                     --disable-fortran \
+                    --with-ifs-samples=${prefix}/share/${name}/ifs_samples \
                     --with-jasper=${prefix} \
                     --with-openjpeg=${prefix} \
                     --with-png-support=${prefix}
@@ -60,7 +57,7 @@
     configure.args-append   --with-emos=-lemosR64
 }
 
-variant gcc43 conflicts g95 gcc44 description {builds fortran interface with gfortran 4.3} {
+variant gcc43 conflicts g95 gcc44 gcc45 description {builds fortran interface with gfortran 4.3} {
     depends_build-append    port:gcc43
     configure.args-delete   --disable-fortran
     configure.compiler      macports-gcc-4.3
@@ -68,7 +65,7 @@
                             --with-fortranlibs=-lgfortran
 }
 
-variant gcc44 conflicts g95 gcc43 description {builds fortran interface with gfortran 4.4} {
+variant gcc44 conflicts g95 gcc43 gcc45 description {builds fortran interface with gfortran 4.4} {
     depends_build-append    port:gcc44
     configure.args-delete   --disable-fortran
     configure.compiler      macports-gcc-4.4
@@ -76,7 +73,15 @@
                             --with-fortranlibs=-lgfortran
 }
 
-variant g95 conflicts gcc43 gcc44 emos universal description {builds fortran interface with g95} {
+variant gcc45 conflicts g95 gcc43 gcc44 description {builds fortran interface with gfortran 4.5} {
+    depends_build-append    port:gcc45
+    configure.args-delete   --disable-fortran
+    configure.compiler      macports-gcc-4.5
+    configure.args-append   --with-fortranlibdir=${prefix}/lib/gcc45 \
+                            --with-fortranlibs=-lgfortran
+}
+
+variant g95 conflicts gcc43 gcc44 gcc45 emos universal description {builds fortran interface with g95} {
     depends_build-append    port:g95
     configure.args-delete   --disable-fortran
     configure.fc            ${prefix}/bin/g95
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110708/484b5e62/attachment.html>


More information about the macports-changes mailing list