ports/112265: [NEW PORT] science/pnetcdf
CHAO Shin
quakelee at cn.FreeBSD.org
Mon Apr 30 07:40:08 UTC 2007
>Number: 112265
>Category: ports
>Synopsis: [NEW PORT] science/pnetcdf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Apr 30 07:40:07 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: CHAO Shin
>Release: FreeBSD 7.0-current i386
>Organization:
The FreeBSD Simplified Chinese Project
>Environment:
System: FreeBSD portyard.sysdept.sina.com.cn 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Feb 1 19:02:06 CST 2007 root at portyard.sysdept.sina.com.cn:/usr/obj/usr/src/sys/GX270 i386
>Description:
Add a new port, descriptions as below:
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.
>How-To-Repeat:
>Fix:
--- pnetcdf.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# pnetcdf
# pnetcdf/pkg-plist
# pnetcdf/pkg-descr
# pnetcdf/distinfo
# pnetcdf/Makefile
# pnetcdf/files
# pnetcdf/files/patch-aclocal.m4
# pnetcdf/files/patch-configure
# pnetcdf/files/patch-macros.make.def
#
echo c - pnetcdf
mkdir -p pnetcdf > /dev/null 2>&1
echo x - pnetcdf/pkg-plist
sed 's/^X//' >pnetcdf/pkg-plist << 'END-of-pnetcdf/pkg-plist'
Xbin/ncvalid
Xbin/ncmpigen
Xbin/ncmpidump
Xinclude/pnetcdf.h
Xinclude/pnetcdf.inc
Xlib/libpnetcdf.a
X%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-pnetcdf/pkg-plist
echo x - pnetcdf/pkg-descr
sed 's/^X//' >pnetcdf/pkg-descr << 'END-of-pnetcdf/pkg-descr'
XParallel-NetCDF is a library providing high-performance I/O
Xwhile still maintaining file-format compatibility with
XUnidata's NetCDF.
XNetCDF gives scientific programmers a space-efficient and
Xportable means for storing data. However, it does so in a
Xserial manner, making it difficult to achieve high I/O
Xperformance. By making some small changes to the API
Xspecified by NetCDF, we can use MPI-IO and its collective
Xoperations.
X
XWWW: http://trac.mcs.anl.gov/projects/parallel-netcdf
END-of-pnetcdf/pkg-descr
echo x - pnetcdf/distinfo
sed 's/^X//' >pnetcdf/distinfo << 'END-of-pnetcdf/distinfo'
XMD5 (parallel-netcdf-1.0.1.tar.bz2) = e906d2ee7dddaf85b06b51fc5946eb9e
XSHA256 (parallel-netcdf-1.0.1.tar.bz2) = 3327d653fa65eed404dfdf0681b055d359fd48c4e33abe8f47bec335f4a3b480
XSIZE (parallel-netcdf-1.0.1.tar.bz2) = 3434372
END-of-pnetcdf/distinfo
echo x - pnetcdf/Makefile
sed 's/^X//' >pnetcdf/Makefile << 'END-of-pnetcdf/Makefile'
X# New ports collection makefile for: parallel-netcdf
X# Date created: April 30 2007
X# Whom: Chao Shin <quakelee at cn.FreeBSD.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= pnetcdf
XPORTVERSION= 1.0.1
XCATEGORIES= science
XMASTER_SITES= http://www-unix.mcs.anl.gov/parallel-netcdf/
XDISTNAME= parallel-netcdf-${PORTVERSION}
X
XMAINTAINER= quakelee at cn.FreeBSD.org
XCOMMENT= A library providing high-performance I/O
X
XCONFLICTS= hdf-4.*
X
XUSE_BZIP2= YES
X
XOPTIONS= OPENMPI "Use openmpi instead of mpich2" off
X
XGNU_CONFIGURE= yes
XUSE_LDCONFIG= yes
XUSE_GMAKE= yes
X
XMAN1= ncmpigen.1 ncmpidump.1
XMAN3= pnetcdf.3
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_OPENMPI)
XBUILD_DEPENDS= ${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
XRUN_DEPENDS= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
XCONFIGURE_ARGS= --enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpi/openmpi
XCONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
X.else
XBUILD_DEPENDS= ${LOCALBASE}/mpich2/bin/mpicc:${PORTSDIR}/net/mpich2
XRUN_DEPENDS= ${LOCALBASE}/mpich2/lib/libmpich.so:${PORTSDIR}/net/mpich2
XCONFIGURE_ARGS= --enable-shared --mandir=${PREFIX}/man --disable-f77 --with-mpi=${PREFIX}/mpich2
XCONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -fPIC -DPIC -Df2cFortran"
X.endif
X
Xpost-install:
X @${STRIP_CMD} ${PREFIX}/bin/ncmpidump ${PREFIX}/bin/ncmpigen ${PREFIX}/bin/ncvalid
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for file in COPYRIGHT INSTALL README
X ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-pnetcdf/Makefile
echo c - pnetcdf/files
mkdir -p pnetcdf/files > /dev/null 2>&1
echo x - pnetcdf/files/patch-aclocal.m4
sed 's/^X//' >pnetcdf/files/patch-aclocal.m4 << 'END-of-pnetcdf/files/patch-aclocal.m4'
X--- aclocal.m4.orig Thu Dec 1 08:02:22 2005
X+++ aclocal.m4 Mon Apr 30 11:35:44 2007
X@@ -19,7 +19,7 @@
X esac
X AC_MSG_CHECKING(m4 flags)
X case "${M4FLAGS-unset}" in
X- unset) M4FLAGS=-B10000 ;;
X+ unset) M4FLAGS= ;;
X esac
X AC_MSG_RESULT($M4FLAGS)
X AC_SUBST(M4FLAGS)
END-of-pnetcdf/files/patch-aclocal.m4
echo x - pnetcdf/files/patch-configure
sed 's/^X//' >pnetcdf/files/patch-configure << 'END-of-pnetcdf/files/patch-configure'
X--- configure.orig Wed Dec 7 07:47:45 2005
X+++ configure Mon Apr 30 11:35:44 2007
X@@ -2769,7 +2769,7 @@
X echo "$as_me:$LINENO: checking m4 flags" >&5
X echo $ECHO_N "checking m4 flags... $ECHO_C" >&6
X case "${M4FLAGS-unset}" in
X- unset) M4FLAGS=-B10000 ;;
X+ unset) M4FLAGS= ;;
X esac
X echo "$as_me:$LINENO: result: $M4FLAGS" >&5
X echo "${ECHO_T}$M4FLAGS" >&6
END-of-pnetcdf/files/patch-configure
echo x - pnetcdf/files/patch-macros.make.def
sed 's/^X//' >pnetcdf/files/patch-macros.make.def << 'END-of-pnetcdf/files/patch-macros.make.def'
X--- macros.make.def.orig Thu Feb 6 00:46:08 2003
X+++ macros.make.def Mon Apr 30 11:35:44 2007
X@@ -19,7 +19,7 @@
X
X # Preprocessing:
X M4 = m4
X-M4FLAGS = -B10000
X+M4FLAGS =
X CPP = c89 -E
X CPPFLAGS = $(INCLUDES) $(DEFINES) @CPPFLAGS@
X FPP =
END-of-pnetcdf/files/patch-macros.make.def
exit
--- pnetcdf.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list