summaryrefslogtreecommitdiff
path: root/science/pnetcdf
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-04-30 13:44:51 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-04-30 13:44:51 +0000
commitfc02715436012f842d75ed81f549b98fd19ca28e (patch)
tree3497f6177a0630ed25f6b3323310cd5eaccc272e /science/pnetcdf
parent- Update to 0.9 (diff)
Parallel-NetCDF is a library providing high-performance I/O while still
maintaining file-format compatibility with Unidata's NetCDF. NetCDF gives scientific programmers a space-efficient and portable means for storing data. However, it does so in a serial manner, making it difficult to achieve high I/O performance. By making some small changes to the API specified by NetCDF, we can use MPI-IO and its collective operations. WWW: http://trac.mcs.anl.gov/projects/parallel-netcdf PR: ports/112265 Submitted by: Chao Shin <quakelee at cn.FreeBSD.org>
Notes
Notes: svn path=/head/; revision=191206
Diffstat (limited to 'science/pnetcdf')
-rw-r--r--science/pnetcdf/Makefile53
-rw-r--r--science/pnetcdf/distinfo3
-rw-r--r--science/pnetcdf/files/patch-aclocal.m411
-rw-r--r--science/pnetcdf/files/patch-configure11
-rw-r--r--science/pnetcdf/files/patch-macros.make.def11
-rw-r--r--science/pnetcdf/pkg-descr8
-rw-r--r--science/pnetcdf/pkg-plist10
7 files changed, 107 insertions, 0 deletions
diff --git a/science/pnetcdf/Makefile b/science/pnetcdf/Makefile
new file mode 100644
index 000000000000..995d4d61fb21
--- /dev/null
+++ b/science/pnetcdf/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: pnetcdf
+# Date created: April 30 2007
+# Whom: Chao Shin <quakelee@cn.FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= pnetcdf
+PORTVERSION= 1.0.1
+CATEGORIES= science parallel
+MASTER_SITES= http://www-unix.mcs.anl.gov/parallel-netcdf/
+DISTNAME= parallel-netcdf-${PORTVERSION}
+
+MAINTAINER= quakelee@cn.FreeBSD.org
+COMMENT= A library providing high-performance I/O
+
+CONFLICTS= hdf-4.*
+
+USE_BZIP2= YES
+
+OPTIONS= OPENMPI "Use openmpi instead of mpich2" off
+
+GNU_CONFIGURE= yes
+USE_LDCONFIG= yes
+USE_GMAKE= yes
+
+MAN1= ncmpigen.1 ncmpidump.1
+MAN3= pnetcdf.3
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_OPENMPI)
+BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
+CONFIGURE_ARGS= --enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpi/openmpi
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
+.else
+BUILD_DEPENDS+= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2
+RUN_DEPENDS+= ${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2
+CONFIGURE_ARGS= --enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpich2
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
+.endif
+
+post-install:
+ @${STRIP_CMD} ${PREFIX}/bin/ncmpidump ${PREFIX}/bin/ncmpigen ${PREFIX}/bin/ncvalid
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in COPYRIGHT INSTALL README
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/science/pnetcdf/distinfo b/science/pnetcdf/distinfo
new file mode 100644
index 000000000000..ace6d8c5be16
--- /dev/null
+++ b/science/pnetcdf/distinfo
@@ -0,0 +1,3 @@
+MD5 (parallel-netcdf-1.0.1.tar.bz2) = e906d2ee7dddaf85b06b51fc5946eb9e
+SHA256 (parallel-netcdf-1.0.1.tar.bz2) = 3327d653fa65eed404dfdf0681b055d359fd48c4e33abe8f47bec335f4a3b480
+SIZE (parallel-netcdf-1.0.1.tar.bz2) = 3434372
diff --git a/science/pnetcdf/files/patch-aclocal.m4 b/science/pnetcdf/files/patch-aclocal.m4
new file mode 100644
index 000000000000..fbdf4d1aa5a1
--- /dev/null
+++ b/science/pnetcdf/files/patch-aclocal.m4
@@ -0,0 +1,11 @@
+--- aclocal.m4.orig Thu Dec 1 08:02:22 2005
++++ aclocal.m4 Mon Apr 30 11:35:44 2007
+@@ -19,7 +19,7 @@
+ esac
+ AC_MSG_CHECKING(m4 flags)
+ case "${M4FLAGS-unset}" in
+- unset) M4FLAGS=-B10000 ;;
++ unset) M4FLAGS= ;;
+ esac
+ AC_MSG_RESULT($M4FLAGS)
+ AC_SUBST(M4FLAGS)
diff --git a/science/pnetcdf/files/patch-configure b/science/pnetcdf/files/patch-configure
new file mode 100644
index 000000000000..0b851157a30e
--- /dev/null
+++ b/science/pnetcdf/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Wed Dec 7 07:47:45 2005
++++ configure Mon Apr 30 11:35:44 2007
+@@ -2769,7 +2769,7 @@
+ echo "$as_me:$LINENO: checking m4 flags" >&5
+ echo $ECHO_N "checking m4 flags... $ECHO_C" >&6
+ case "${M4FLAGS-unset}" in
+- unset) M4FLAGS=-B10000 ;;
++ unset) M4FLAGS= ;;
+ esac
+ echo "$as_me:$LINENO: result: $M4FLAGS" >&5
+ echo "${ECHO_T}$M4FLAGS" >&6
diff --git a/science/pnetcdf/files/patch-macros.make.def b/science/pnetcdf/files/patch-macros.make.def
new file mode 100644
index 000000000000..b700e544a9a3
--- /dev/null
+++ b/science/pnetcdf/files/patch-macros.make.def
@@ -0,0 +1,11 @@
+--- macros.make.def.orig Thu Feb 6 00:46:08 2003
++++ macros.make.def Mon Apr 30 11:35:44 2007
+@@ -19,7 +19,7 @@
+
+ # Preprocessing:
+ M4 = m4
+-M4FLAGS = -B10000
++M4FLAGS =
+ CPP = c89 -E
+ CPPFLAGS = $(INCLUDES) $(DEFINES) @CPPFLAGS@
+ FPP =
diff --git a/science/pnetcdf/pkg-descr b/science/pnetcdf/pkg-descr
new file mode 100644
index 000000000000..1bc495ec8dfb
--- /dev/null
+++ b/science/pnetcdf/pkg-descr
@@ -0,0 +1,8 @@
+Parallel-NetCDF is a library providing high-performance I/O while still
+maintaining file-format compatibility with Unidata's NetCDF. NetCDF gives
+scientific programmers a space-efficient and portable means for storing data.
+However, it does so in a serial manner, making it difficult to achieve high
+I/O performance. By making some small changes to the API specified by NetCDF,
+we can use MPI-IO and its collective operations.
+
+WWW: http://trac.mcs.anl.gov/projects/parallel-netcdf
diff --git a/science/pnetcdf/pkg-plist b/science/pnetcdf/pkg-plist
new file mode 100644
index 000000000000..2e616da0bbe0
--- /dev/null
+++ b/science/pnetcdf/pkg-plist
@@ -0,0 +1,10 @@
+bin/ncvalid
+bin/ncmpigen
+bin/ncmpidump
+include/pnetcdf.h
+include/pnetcdf.inc
+lib/libpnetcdf.a
+%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%@dirrm %%DOCSDIR%%