[64252] trunk/dports/science/netcdf/Portfile
takeshi at macports.org
takeshi at macports.org
Sat Feb 27 01:36:41 PST 2010
Revision: 64252
http://trac.macports.org/changeset/64252
Author: takeshi at macports.org
Date: 2010-02-27 01:36:37 -0800 (Sat, 27 Feb 2010)
Log Message:
-----------
netcdf: fixes problem building +dap. Dap is enabled in netcdf4. improved description of netcdf4 variant
Modified Paths:
--------------
trunk/dports/science/netcdf/Portfile
Modified: trunk/dports/science/netcdf/Portfile
===================================================================
--- trunk/dports/science/netcdf/Portfile 2010-02-27 08:54:09 UTC (rev 64251)
+++ trunk/dports/science/netcdf/Portfile 2010-02-27 09:36:37 UTC (rev 64252)
@@ -5,6 +5,7 @@
name netcdf
version 4.1
+revision 1
maintainers takeshi openmaintainer
platforms darwin
categories science
@@ -25,6 +26,10 @@
sha1 8a33030e0cd37c4b6519402803aa9ed2c0585530 \
rmd160 90ecae0ff5b101dec59a48591f87cfda2dcc8ff1
+patch {
+ reinplace {/^AM_CPPFLAGS/s/\(\$(am__append_5)\) \(\$(am__append_7)\)/\2 \1/} ${worksrcpath}/ncdump/Makefile.in
+}
+
configure.cppflags-append -DNDEBUG
configure.cxxflags-append -fno-common
configure.cflags-append -fno-common
@@ -82,18 +87,21 @@
configure.args-append --enable-dap
}
-variant netcdf4 description {compile with hdf5} {
+variant netcdf4 description {enables netcdf-4 features. may break some ports} {
configure.env-append LDFLAGS=-L${prefix}/lib LIBS="-lhdf5 -lhdf5_hl"
configure.args-delete --disable-netcdf-4 \
- --without-libcf
+ --without-libcf \
+ --disable-dap
configure.args-append --enable-netcdf-4 \
--with-hdf5=${prefix} \
--with-szlib=${prefix} \
--with-hdf4=${prefix} \
- --with-libcf
+ --with-libcf \
+ --enable-dap
depends_lib-append port:szip \
port:hdf5-18 \
- port:hdf4
+ port:hdf4 \
+ port:curl
}
variant static description {build static libraries} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100227/129cc326/attachment.html>
More information about the macports-changes
mailing list