Bryan Blackburn wrote:
On Thu, May 21, 2009 at 05:39:08PM -0700, Christopher Barker said:

so it looks like netcdf4 support has been commented out. Anyone know why?

Probably related to ticket #16262:

<http://trac.macports.org/ticket/16262>

arrgg! I just spent a couple hours learning about how to write port files and hacked the netcdf portfile, then found that 7 hours ago someone had already fixed it!

Oh well, at least I learned something. However:

I'd also love to get '--enable-dap if possible

It also looks like the recent release is 4.0.1, it would be nice to get that updated.

The current port file does support netcdf4, which was the big one, but it's still using version 4.0, rather than 4.0.1, and it isn't using --enable-dap

How might those changed get in? I've tested them, and they work for me. As there is no maintainer, and the ticket has been closed, I'm not sure how to proceed.

--enable-dap required libcurl, which got pulled in from:

/usr/lib/libcurl.3.dylib

Should it use a macport libcurl instead? If so, how do I get it to do that?

By the way, I used python's hashlib module to generate the sha1 hash -- is there a simple mac-ports way to do that?

I've enclosed my version of the portfile (re-named to netcdf-4 to not stomp on netcdf) in case anyone wants a look.

-Chris





--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]
# $Id: Portfile 48266 2009-03-17 23:42:31Z [email protected] $

PortSystem 1.0
name            netcdf-4
version         4.0.1
maintainers     noaa.gov.org:Chris.Barker
platforms       darwin
categories      science

description     NetCDF - Network Common Data Format version 4
long_description        NetCDF is an interface \
                        for array-oriented data access and a library that \
                        provides an implementation of the interface. The \
                        netCDF library also defines a machine-independent \
                        format for representing scientific data. Together, \
                        the interface, library, and format support the \
                        creation, access, and sharing of scientific data. \
                       netCDF version 4 has many features not found in earlier \
                       versions of the library, such as hierarchical groups, \
                       zlib compression, multiple unlimited dimensions, and \
                       new data types.  It is implemented on top of HDF5. \
                        The netCDF software was developed at the Unidata \
                        Program Center in Boulder, Colorado.

homepage        http://unidata.ucar.edu/packages/netcdf/

distname       netcdf-${version}
distfiles      ${distname}.tar.gz   

master_sites    ftp://ftp.unidata.ucar.edu/pub/netcdf/ \
                http://www.gfd-dennou.org/arch/netcdf/unidata-mirror/ \
                ftp://www.gfd-dennou.org/arch/netcdf/unidata-mirror/
#checksums     sha1 bea99846265e55e54be2c200ae004acc3a221c0a
checksums     sha1 96b361de72bcf68eaba42e7e5cf0f92c33d288e9

depends_lib     port:hdf5-18 
#            port:szip

configure.cppflags      "-DNDEBUG -Df2cFortran"
configure.cxxflags      "-O2 -fno-common"
configure.cflags        "-O2 -fno-common"
configure.args  --enable-shared         \
                --disable-f77           \
                --enable-netcdf-4       \
                --enable-dap            \
                --with-hdf5=${prefix}   
#               --with-szlib=${prefix}

test.run        yes
test.target     check

destroot.destdir        prefix=${destroot}${prefix} \
                        MANDIR=\\\${prefix}/share/man

post-destroot {
        file delete -force ${destroot}${prefix}/share/man/whatis.db
}

variant g95 description {Enable Fortran support with g95} {
        depends_lib             port:g95
        configure.args-delete   --disable-f77
        configure.fc            ${prefix}/bin/g95
        configure.env-append    FCFLAGS=-O2
}
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to