[101605] trunk/dports/science/hdf4/Portfile

takeshi at macports.org takeshi at macports.org
Mon Jan 14 12:18:01 PST 2013


Revision: 101605
          https://trac.macports.org/changeset/101605
Author:   takeshi at macports.org
Date:     2013-01-14 12:18:01 -0800 (Mon, 14 Jan 2013)
Log Message:
-----------
hdf: revamped for 4.2.8. added gcc46 and gcc47 variants.

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

Modified: trunk/dports/science/hdf4/Portfile
===================================================================
--- trunk/dports/science/hdf4/Portfile	2013-01-14 18:35:53 UTC (rev 101604)
+++ trunk/dports/science/hdf4/Portfile	2013-01-14 20:18:01 UTC (rev 101605)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                hdf4
-version             4.2.7
-revision            1
+version             4.2.8
 platforms           darwin
 categories          science
 license             NCSA
@@ -14,21 +13,16 @@
 description         file format for storing scientific data and utilities
 long_description    ${description}
 homepage            http://www.hdfgroup.org/products/hdf4/index.html
-master_sites        ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/ \
-                    http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/
-distname            hdf-${version}-patch1
+master_sites        ftp://ftp.hdfgroup.org/HDF/prev-releases/HDF${version}/src/ \
+                    http://www.hdfgroup.org/ftp/HDF/prev-releases/HDF${version}/src/
+distname            hdf-${version}
 use_bzip2           yes
-checksums           md5     dd1ab70083448ec062dbd0b37083cd14 \
-                    sha1    37950d01ca242f29bc3a9eb2d20d77f466cf3f30 \
-                    rmd160  a88d919bceb9002eac3f91e2059e6d887350b22c
+checksums           md5     380c67592e118423dc123cd4214a2cd9 \
+                    sha1    9d4ab457ccb8e582c265ca3f5f2ec90614d89da4 \
+                    rmd160  fe3e57e3967eb421a22a3ee9093fd0d287394b3a
 
 depends_lib         port:zlib port:jpeg
 
-post-patch {
-    reinplace "s|CFLAGS_TO_ADD\$CFLAGS|CFLAGS|" ${worksrcpath}/configure
-    reinplace "s|FFLAGS_TO_ADD\$FFLAGS|FFLAGS|" ${worksrcpath}/configure
-}
-
 configure.args      --disable-netcdf --disable-fortran \
                     --with-jpeg=${prefix} --enable-shared \
                     --without-szlib
@@ -56,30 +50,42 @@
     }
 }
 
-variant g95 conflicts gcc43 gcc44 gcc45 universal description {build with g95} {
+variant g95 conflicts gcc43 gcc44 gcc45 gcc46 gcc47 universal description {build with g95} {
     configure.args-delete   --disable-fortran --enable-shared
     depends_build-append    port:g95
     configure.f77           ${prefix}/bin/g95
 }
 
-variant gcc43 conflicts g95 gcc44 gcc45 universal description {build with gfortran 4.3} {
+variant gcc43 conflicts g95 gcc44 gcc45 gcc46 gcc47 universal description {build with gfortran 4.3} {
     configure.args-delete   --disable-fortran --enable-shared
     depends_build-append    port:gcc43
     configure.f77           ${prefix}/bin/gfortran-mp-4.3
 }
 
-variant gcc44 conflicts g95 gcc43 gcc45 universal description {build with gfortran 4.4} {
+variant gcc44 conflicts g95 gcc43 gcc45 gcc46 gcc47 universal description {build with gfortran 4.4} {
     configure.args-delete   --disable-fortran --enable-shared
     depends_build-append    port:gcc44
     configure.f77           ${prefix}/bin/gfortran-mp-4.4
 }
 
-variant gcc45 conflicts g95 gcc43 gcc44 universal description {build with gfortran 4.5} {
+variant gcc45 conflicts g95 gcc43 gcc44 gcc46 gcc47 universal description {build with gfortran 4.5} {
     configure.args-delete   --disable-fortran --enable-shared
     depends_build-append    port:gcc45
     configure.f77           ${prefix}/bin/gfortran-mp-4.5
 }
 
+variant gcc46 conflicts g95 gcc43 gcc44 gcc45 gcc47 universal description {build with gfortran 4.6} {
+    configure.args-delete   --disable-fortran --enable-shared
+    depends_build-append    port:gcc46
+    configure.f77           ${prefix}/bin/gfortran-mp-4.6
+}
+
+variant gcc47 conflicts g95 gcc43 gcc44 gcc45 gcc46 universal description {build with gfortran 4.7} {
+    configure.args-delete   --disable-fortran --enable-shared
+    depends_build-append    port:gcc47
+    configure.f77           ${prefix}/bin/gfortran-mp-4.7
+}
+
 variant szip description {build with szip} {
     depends_lib-append      port:szip
     configure.args-delete   --without-szlib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130114/b861ce21/attachment.html>


More information about the macports-changes mailing list