[68041] trunk/dports/science

takeshi at macports.org takeshi at macports.org
Mon May 24 23:01:16 PDT 2010


Revision: 68041
          http://trac.macports.org/changeset/68041
Author:   takeshi at macports.org
Date:     2010-05-24 23:01:13 -0700 (Mon, 24 May 2010)
Log Message:
-----------
hdfeos5: added for ncarg

Modified Paths:
--------------
    trunk/dports/science/ncarg/Portfile
    trunk/dports/science/ncarg/files/patch-config-ymake.diff
    trunk/dports/science/nco/Portfile
    trunk/dports/science/udunits2/Portfile

Added Paths:
-----------
    trunk/dports/science/hdfeos5/
    trunk/dports/science/hdfeos5/Portfile

Added: trunk/dports/science/hdfeos5/Portfile
===================================================================
--- trunk/dports/science/hdfeos5/Portfile	                        (rev 0)
+++ trunk/dports/science/hdfeos5/Portfile	2010-05-25 06:01:13 UTC (rev 68041)
@@ -0,0 +1,42 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 67916 2010-05-21 14:05:49Z takeshi at macports.org $
+
+PortSystem          1.0
+
+name                hdfeos5
+version             1.12
+categories          science
+platforms           darwin
+maintainers         takeshi
+description         HDF-EOS library built on HDF5
+long_description \
+    library designed built on HDF5 to support the same Grid/Point/Swath \
+    functionality in HDF-EOS 2 and to the extent possible it will be    \
+    built with the same calling sequences as the original HDF-EOS 2 library.
+homepage            http://hdfeos.org/
+master_sites        ftp://edhs1.gsfc.nasa.gov/edhs/${name}/latest_release/
+distname            HDF-EOS5.${version}
+
+checksums           md5     c2c51a7ab67215d3861000452bcb8550 \
+                    sha1    c20d54a34a08586cc0c3ac06773ea557f78ddc66 \
+                    rmd160  be71e5ab494319c75cffd0ff39e10b78e2843c2d
+
+depends_lib         port:hdf5-18
+worksrcdir          ${name}
+extract.suffix      .tar.Z
+fetch.use_epsv      no
+
+configure.cc        ${prefix}/bin/h5cc
+configure.cflags-append -DH5_USE_16_API
+configure.args      --prefix=${prefix}/lib/${name} \
+                    --with-hdf5=${prefix} \
+                    --with-zlib=${prefix} \
+                    --with-szlib=${prefix} \
+                    --disable-dependency-tracking
+
+post-destroot {
+    set incdir ${destroot}${prefix}/lib/${name}/include
+    xinstall -d -m 755 ${incdir}
+    xinstall -m 644 ${worksrcpath}/include/HE5_GctpFunc.h ${incdir}
+    xinstall -m 644 ${worksrcpath}/include/HE5_HdfEosDef.h ${incdir}
+}

Modified: trunk/dports/science/ncarg/Portfile
===================================================================
--- trunk/dports/science/ncarg/Portfile	2010-05-25 05:47:53 UTC (rev 68040)
+++ trunk/dports/science/ncarg/Portfile	2010-05-25 06:01:13 UTC (rev 68041)
@@ -4,8 +4,7 @@
 PortSystem                  1.0
 
 name                        ncarg
-version                     5.1.1
-revision                    3
+version                     5.2.0
 categories                  science
 maintainers                 takeshi
 description                 language for scientific data processing and visualization
@@ -23,26 +22,24 @@
 
 distname                    ncl_${name}_src-${version}
 worksrcdir                  ncl_${name}-${version}
-checksums                   md5    42154992f2966320dc9f8958b9d81da3         \
-                            sha1   729abefde701f1f812bc168dd9ef04ca753b861c \
-                            rmd160 cc83ee928d05ff82794021ef589300d80961955e
+checksums           md5     7ed710647a7eec8f500c7494853a2b65 \
+                    sha1    4a5c0f2285ca49a11f56ee7148883154ec86379f \
+                    rmd160  dfcd90bc94a1499b545b4191ed70b570b8c62c56
 
-depends_lib                 port:jpeg       \
-                            port:netcdf     \
-                            port:hdf4       \
-                            port:libpng     \
+depends_lib                 port:jpeg6b     \
+                            port:cairo      \
+                            port:proj       \
                             port:gdal       \
-                            port:udunits    \
+                            port:udunits2   \
                             port:vis5d      \
                             port:hdfeos     \
+                            port:hdfeos5    \
                             port:wgrib2     \
-                            port:openssl    \
                             port:curl       \
                             port:libxml2    \
                             port:libnc-dap  \
                             port:xorg-libXaw \
-                            port:xorg-libice \
-                            port:lesstif
+                            lib:libXm:lesstif
 depends_build               port:gcc43      \
                             port:triangle
 
@@ -58,10 +55,6 @@
 }
 
 set usedap y
-platform darwin 8 {
-    set usedap n
-    depends_lib-delete      port:libnc-dap
-} 
 
 if {$build_arch eq "x86_64"} {
     patchfiles                  patch-config-ymake.diff
@@ -79,20 +72,24 @@
         reinplace "s|gcc$|${configure.cc}|" ${worksrcpath}/config/${f}
         reinplace "/CcOptions/d" ${worksrcpath}/config/${f}
         reinplace "s|-lXext$|-lXext\\
-#define CcOptions -fPIC -ansi -D_DARWIN_C_SOURCE\\
+#define CcOptions -fPIC -ansi -D_DARWIN_C_SOURCE -DH5_USE_16_API\\
 #define COptimizeFlag ${configure.cflags}\\
 #define FOptimizeFlag ${configure.fflags}\\
 #define ManRoot ${destroot}${prefix}/share/man\\
-#define NetCDF4lib -lnetcdf|" ${worksrcpath}/config/${f}
+#define NetCDF4lib -lnetcdf -lhdf5_hl -lhdf5 -lz -lsz -lmfhdf -ldf -lcurl -lidn -lssl -lcrypto|" ${worksrcpath}/config/${f}
         reinplace "s|-L/usr/X11R6/lib -L/sw/lib|-L${prefix}/lib|" ${worksrcpath}/config/${f}
         reinplace "s|-I/usr/X11R6/include -I/sw/include|-I${prefix}/include|" ${worksrcpath}/config/${f}
     }
     if {[variant_isset g95]} {
         reinplace "s|-fno-range-check||" ${worksrcpath}/config/Darwin_Intel
     }
-    reinplace "s|hdf\/||" ${worksrcpath}/ni/src/ncl/NclHDF.c
-    reinplace "s|hdf\/||" ${worksrcpath}/ni/src/ncl/NclHDFEOS.c
-    reinplace "s|hdf\/||" ${worksrcpath}/ncarview/src/lib/libncarg_ras/hdf.c
+    foreach f {ni/src/ncl/NclHDF.c \
+           ni/src/ncl/NclHDFEOS.c \
+           ni/src/ncl/NclHDFEOS5.c \
+           ncarview/src/lib/libncarg_ras/hdf.c} {
+        reinplace "s|hdf\/||" ${worksrcpath}/${f}
+    }
+    reinplace "s|\$\(NCARGGKSCAIROLIB\) \$\(NCARGCLIB\)|\$(NCARGGKSCAIROLIB) \$(NCARGGKSLIB) \$(NCARGCLIB)|" ${worksrcpath}/config/Project
 }
 
 pre-configure {
@@ -112,15 +109,16 @@
 y
 y
 y
-n
 y
 y
 y
 y
 y
-${usedap}
-${prefix}/lib
-${prefix}/include
+y
+y
+y
+${prefix}/lib/jpeg6b/lib ${prefix}/lib/netcdf-devel/lib ${prefix}/lib/hdfeos5/lib ${prefix}/lib
+${prefix}/include/freetype2 ${prefix}/include/udunits2 ${prefix}/lib/jpeg6b/include ${prefix}/lib/netcdf-devel/include ${prefix}/lib/hdfeos5/include ${prefix}/include
 
 
 EOF"

Modified: trunk/dports/science/ncarg/files/patch-config-ymake.diff
===================================================================
--- trunk/dports/science/ncarg/files/patch-config-ymake.diff	2010-05-25 05:47:53 UTC (rev 68040)
+++ trunk/dports/science/ncarg/files/patch-config-ymake.diff	2010-05-25 06:01:13 UTC (rev 68041)
@@ -1,12 +1,11 @@
---- config/ymake.orig	2009-12-23 17:02:49.000000000 +0900
-+++ config/ymake	2009-12-23 17:12:25.000000000 +0900
-@@ -415,8 +415,9 @@
+--- config/ymake.orig	2010-05-22 18:56:02.000000000 +0900
++++ config/ymake	2010-05-22 18:56:26.000000000 +0900
+@@ -415,8 +415,8 @@
              set vendor  = Apple
              breaksw
          case    i386:
 -            set model   = $mach
 -            set arch    = $mach
-+        case  x86_64:
 +            set model   = x86_64
 +            set arch    = x86_64
              set sysincs = Darwin_Intel

Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile	2010-05-25 05:47:53 UTC (rev 68040)
+++ trunk/dports/science/nco/Portfile	2010-05-25 06:01:13 UTC (rev 68041)
@@ -29,7 +29,7 @@
                             port:libxml2 \
                             port:netcdf-devel \
                             port:openssl \
-                            port:udunits \
+                            port:udunits2 \
                             port:zlib \
                             port:antlr \
                             port:gsl \
@@ -39,18 +39,23 @@
                             port:m4
 depends_run                 port:wget
 
+post-patch {
+    reinplace "s|\${GSL_INC_ARG} ||" ${worksrcpath}/configure
+}
+
 configure.env               HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \
                             PATH_TO_NCGEN=${prefix}/lib/netcdf-devel/bin/ncgen
 configure.cppflags-delete   -I${prefix}/include
 configure.cppflags-append   -I/usr/include/malloc \
                             -I${prefix}/lib/netcdf-devel/include \
+                            -I${prefix}/include/udunits2 \
                             -I${prefix}/include
 configure.ldflags-delete    -L${prefix}/lib
 configure.ldflags-append    -L${prefix}/lib/netcdf-devel/lib \
                             -L${prefix}/lib
 configure.args              --disable-dependency-tracking \
                             --mandir=${prefix}/share/man  \
-                            --enable-udunits --disable-udunits2 \
+                            --enable-udunits2 \
                             --enable-dap-netcdf           \
                             --disable-dap-opendap         \
                             --enable-netcdf4
@@ -82,13 +87,6 @@
     configure.args-append   --enable-mpi
 }
 
-variant udunits2 description {compile with udunits2} {
-    depends_lib-delete      port:udunits
-    depends_lib-append      port:udunits2
-    configure.args-delete   --enable-udunits --disable-udunits2
-    configure.args-append   --disable-udunits --enable-udunits2
-}
-
 livecheck.type  regex
 livecheck.url   ${homepage}
 livecheck.regex  {Current NCO version is ([0-9]+\.[0-9]+\.[0-9]+)}

Modified: trunk/dports/science/udunits2/Portfile
===================================================================
--- trunk/dports/science/udunits2/Portfile	2010-05-25 05:47:53 UTC (rev 68040)
+++ trunk/dports/science/udunits2/Portfile	2010-05-25 06:01:13 UTC (rev 68041)
@@ -4,7 +4,7 @@
 PortSystem 1.0
 
 name            udunits2
-version         2.1.8
+version         2.1.14
 distname        udunits-${version}
 maintainers     takeshi
 platforms       darwin
@@ -26,9 +26,9 @@
 
 master_sites    ftp://ftp.unidata.ucar.edu/pub/udunits/ \
                 ftp://www.gfd-dennou.org/arch-large1/ucar/unidata/pub/udunits
-checksums       md5    011355a8d27fa5b079d34095affa8965         \
-                sha1   78a332e1eea9dfb2e63bd11e8e1fc0f01d7263db \
-                rmd160 d92b72d5b5c30457a2454ebdfafa6ded99fd71b1
+checksums       md5     17698289a0d6b04551fe6d6a389af41c \
+                sha1    ab82f04bb284d129dd2e384cd708431451ae7e39 \
+                rmd160  829c4a0547994a08508f196c21b7b584b4ef8763
 
 depends_lib     port:expat
 
@@ -37,23 +37,9 @@
     reinplace "s|../expat/libexpat.la|${prefix}/lib/libexpat.la|" ${worksrcpath}/lib/Makefile.in
 }
 
-configure.args-append   --disable-udunits-1 --disable-dependency-tracking
-#patch {
-#        reinplace "s|\$(prefix)/man|\$(prefix)/share/man|" ${worksrcpath}/port/master.mk.in
-#}
+configure.args-append   --includedir=${prefix}/include/${name} \
+                        --disable-dependency-tracking
 
-#configure.cppflags-append       "-DNDEBUG -Df2cFortran"
-#configure.cflags-append         -fno-common
-
-#pre-destroot {
-#        file delete ${worksrcpath}/lib/libudunits.a
-#}
-
-#destroot.destdir    DESTDIR=${destroot} \
-#                    prefix=${destroot}${prefix} \
-#                    exec_prefix=${destroot}${prefix}
-
 livecheck.type  regex
 livecheck.url   http://www.unidata.ucar.edu/downloads/udunits/index.jsp
 livecheck.regex {Current release ([0-9]+\.[0-9]+\.[0-9]+)} 
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100524/272237a9/attachment-0001.html>


More information about the macports-changes mailing list