[91821] trunk/dports/science
takeshi at macports.org
takeshi at macports.org
Wed Apr 11 06:07:34 PDT 2012
Revision: 91821
https://trac.macports.org/changeset/91821
Author: takeshi at macports.org
Date: 2012-04-11 06:07:32 -0700 (Wed, 11 Apr 2012)
Log Message:
-----------
netcdf-cxx, netcdf-cxx4: netcdf-cxx port was initially created \
for the newer interface NetCDF-C++4 \
but changed to for the legacy NetCDF-3 C++ interface to maintain \
the backward compatibility. \
netcdf-cxx4 port was created for NetCDF-C++4 interface.
Modified Paths:
--------------
trunk/dports/science/netcdf-cxx/Portfile
Added Paths:
-----------
trunk/dports/science/netcdf-cxx4/
trunk/dports/science/netcdf-cxx4/Portfile
Modified: trunk/dports/science/netcdf-cxx/Portfile
===================================================================
--- trunk/dports/science/netcdf-cxx/Portfile 2012-04-11 12:09:06 UTC (rev 91820)
+++ trunk/dports/science/netcdf-cxx/Portfile 2012-04-11 13:07:32 UTC (rev 91821)
@@ -5,7 +5,8 @@
name netcdf-cxx
version 4.2
-distname ${name}4-${version}
+epoch 1
+distname ${name}-${version}
maintainers takeshi openmaintainer
platforms darwin
categories science
@@ -22,10 +23,12 @@
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 md5 d019853802092cf686254aaba165fc81 \
- sha1 59628c9f06c211a47517fc00d8b068da159ffa9d \
- rmd160 776927fe4869b5c4b9b4ee8f8b2a6e5643f002fd
+checksums md5 d32b20c00f144ae6565d9e98d9f6204c \
+ sha1 bab9b2d873acdddbdbf07ab35481cd0267a3363b \
+ rmd160 69e9348ced7da8b6ddf08dad4c3a92c4f18d0648
+
+
depends_lib port:netcdf
pre-configure {
Added: trunk/dports/science/netcdf-cxx4/Portfile
===================================================================
--- trunk/dports/science/netcdf-cxx4/Portfile (rev 0)
+++ trunk/dports/science/netcdf-cxx4/Portfile 2012-04-11 13:07:32 UTC (rev 91821)
@@ -0,0 +1,65 @@
+# -*- 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 89987 2012-02-18 15:28:00Z takeshi at macports.org $
+
+PortSystem 1.0
+
+name netcdf-cxx4
+version 4.2
+distname ${name}-${version}
+maintainers takeshi openmaintainer
+platforms darwin
+categories science
+license Permissive
+
+description libraries for array-oriented scientific data
+long_description \
+ NetCDF (network Common Data Form) is a set of software libraries \
+ and machine-independent data formats that support the creation, \
+ access, and sharing of array-oriented scientific data.
+
+notes \
+ netcdf-cxx4 port was renamed from netcdf-cxx. \
+ netcdf-cxx is now a port of the legacy NetCDF-3 C++ interface.
+
+
+homepage http://www.unidata.ucar.edu/packages/netcdf/
+
+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 md5 d019853802092cf686254aaba165fc81 \
+ sha1 59628c9f06c211a47517fc00d8b068da159ffa9d \
+ rmd160 776927fe4869b5c4b9b4ee8f8b2a6e5643f002fd
+
+depends_lib port:netcdf
+
+pre-configure {
+ if {[variant_isset openmpi]} {
+ set hdf5cc [exec grep "C Compiler" ${prefix}/lib/libhdf5.settings | awk {BEGIN{FS="/"}{print $NF}}]
+ if {${hdf5cc}!="openmpicc"} {
+ ui_error "Install hdf5-18 +openmpi"
+ return -code error "hdf5-18 +openmpi not installed"
+ }
+ }
+}
+
+configure.cppflags-append -DNDEBUG
+configure.cxxflags-append -fno-common
+configure.cflags-append -fno-common
+
+test.run yes
+test.target check
+
+destroot.destdir prefix=${destroot}${prefix}
+
+variant openmpi conflicts mpich2 description {compile with openmpi} {
+ depends_lib-append port:openmpi
+ configure.cc openmpicc
+ configure.cxx openmpicxx
+}
+
+variant mpich2 conflicts openmpi description {compile with mpich2} {
+ depends_lib-append port:mpich2
+ configure.cc mpicc
+ configure.cxx mpicxx
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120411/dd98b674/attachment-0001.html>
More information about the macports-changes
mailing list