Ticket #12296: Portfile

File Portfile, 1.3 KB (added by takeshi@…, 17 years ago)
Line 
1# $Id: Portfile 22919 2007-03-19 09:40:23Z takanori@macports.org $
2PortSystem       1.0
3name             cdo
4version          1.0.8
5platforms        darwin
6maintainers      takeshi@mac.com
7categories       science
8description      Climate Data Operators
9master_sites     http://www.mpimet.mpg.de/fileadmin/software/cdo/
10checksums        md5 7d6a10374ee844df5882a8c9b3c16feb
11homepage         http://www.mpimet.mpg.de/fileadmin/software/cdo/
12long_description \
13                 CDO is a collection of command line Operators               \
14                 to manipulate and analyse Climate Data files.               \
15                 Supported file formats are GRIB, netCDF, SERVICE and EXTRA. \
16                 There are more than 200 operators available.
17depends_lib      port:netcdf
18
19configure.env    LDFLAGS="-flat_namespace -undefined suppress"
20configure.args   --with-netcdf=${prefix} --disable-dependency-tracking
21
22post-destroot {
23    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc
24    eval xinstall -m 644 [glob ${worksrcpath}/doc/*.pdf] ${destroot}${prefix}/share/doc/${name}/doc
25    foreach f {AUTHORS COPYING ChangeLog INSTALL NEWS OPERATORS README} {
26        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
27    }
28}