[55360] trunk/dports/science/nco/Portfile
takeshi at macports.org
takeshi at macports.org
Sun Aug 9 15:49:08 PDT 2009
Revision: 55360
http://trac.macports.org/changeset/55360
Author: takeshi at macports.org
Date: 2009-08-09 15:49:08 -0700 (Sun, 09 Aug 2009)
Log Message:
-----------
nco: made netcdf4 a variant
Modified Paths:
--------------
trunk/dports/science/nco/Portfile
Modified: trunk/dports/science/nco/Portfile
===================================================================
--- trunk/dports/science/nco/Portfile 2009-08-09 22:48:27 UTC (rev 55359)
+++ trunk/dports/science/nco/Portfile 2009-08-09 22:49:08 UTC (rev 55360)
@@ -6,6 +6,7 @@
name nco
version 3.9.9
platforms darwin
+revision 1
maintainers takeshi
categories science
description The netCDF Operators
@@ -29,8 +30,6 @@
port:libiconv \
port:libxml2 \
port:netcdf \
- port:hdf5-18 \
- port:szip \
port:openssl \
port:udunits \
port:zlib \
@@ -40,17 +39,15 @@
port:m4
depends_run port:wget
-configure.env HAVE_ANTLR=yes ANTLR_ROOT=${prefix} \
- NETCDF4_ROOT=${prefix}
-configure.cppflags-append -I/usr/include/malloc -DHAVE_NETCDF4_H
+configure.env HAVE_ANTLR=yes ANTLR_ROOT=${prefix}
+configure.cppflags-append -I/usr/include/malloc
configure.args --disable-dependency-tracking \
--mandir=${prefix}/share/man \
--enable-udunits --disable-udunits2 \
- --enable-dap-netcdf \
- --disable-dap-opendap \
- --enable-netcdf4
+ --disable-dap-netcdf \
+ --enable-dap-opendap \
+ --disable-netcdf4
-
post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
foreach f {ANNOUNCE ChangeLog LICENSE NEWS README TODO VERSION *.txt *.pdf} {
@@ -76,6 +73,19 @@
configure.args-append --disable-udunits --enable-udunits2
}
+variant netcdf4 description {enable netcdf4} {
+ depends_lib-append port:hdf5-18 \
+ port:szip
+ configure.env-append NETCDF4_ROOT=${prefix}
+ configure.cppflags-append -DHAVE_NETCDF4_H
+ configure.args-delete --disable-dap-netcdf \
+ --enable-dap-opendap \
+ --disable-netcdf4
+ configure.args-append --enable-dap-netcdf \
+ --disable-dap-opendap \
+ --enable-netcdf4
+}
+
livecheck.check regex
livecheck.url ${homepage}
livecheck.regex {Current NCO version is ([0-9]+\.[0-9]+\.[0-9]+)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090809/2f9818a2/attachment.html>
More information about the macports-changes
mailing list