diff options
author | miwi <miwi@FreeBSD.org> | 2007-04-30 21:44:51 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-04-30 21:44:51 +0800 |
commit | 7a16e15fb907317af4585fb763d0345b5a80992a (patch) | |
tree | 2cca0132fe75028256c32da48f27a9b1965031b2 /science | |
parent | f72d14f96475df8eac7129da08ee1eb13c32e9b0 (diff) | |
download | freebsd-ports-gnome-7a16e15fb907317af4585fb763d0345b5a80992a.tar.gz freebsd-ports-gnome-7a16e15fb907317af4585fb763d0345b5a80992a.tar.zst freebsd-ports-gnome-7a16e15fb907317af4585fb763d0345b5a80992a.zip |
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>
Diffstat (limited to 'science')
-rw-r--r-- | science/Makefile | 1 | ||||
-rw-r--r-- | science/pnetcdf/Makefile | 53 | ||||
-rw-r--r-- | science/pnetcdf/distinfo | 3 | ||||
-rw-r--r-- | science/pnetcdf/files/patch-aclocal.m4 | 11 | ||||
-rw-r--r-- | science/pnetcdf/files/patch-configure | 11 | ||||
-rw-r--r-- | science/pnetcdf/files/patch-macros.make.def | 11 | ||||
-rw-r--r-- | science/pnetcdf/pkg-descr | 8 | ||||
-rw-r--r-- | science/pnetcdf/pkg-plist | 10 |
8 files changed, 108 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile index 6f698f843b9b..de4f98de28c5 100644 --- a/science/Makefile +++ b/science/Makefile @@ -85,6 +85,7 @@ SUBDIR += paje SUBDIR += paraview SUBDIR += pcp + SUBDIR += pnetcdf SUBDIR += psi3 SUBDIR += py-paida SUBDIR += py-scipy 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%% |