Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 May 2006 23:47:32 +0800 (CST)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/98099: New port: science/cdo A command-line tool to manipulate and analyze climate model data 
Message-ID:  <20060529154732.2D5FA1701D@sunpoet.net>
Resent-Message-ID: <200605291550.k4TFoJUO057945@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         98099
>Category:       ports
>Synopsis:       New port: science/cdo A command-line tool to manipulate and analyze climate model data
>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 May 29 15:50:19 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 6.1-RC i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 6.1-RC FreeBSD 6.1-RC #3: Tue Apr 11 22:24:01 CST 2006 sunpoet@IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386

	
>Description:

CDO is a collection of command line Operators to manipulate and analyse Climate
model Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
There are more than 250 operators available. The following table gives a short
overview about the main categories.

	
>How-To-Repeat:
	
>Fix:

# 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:
#
#	.
#	./Makefile
#	./distinfo
#	./pkg-descr
#	./files
#	./files/patch-src::cdilib.c
#	./pkg-plist
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# ex:ts=8
X# New ports collection makefile for:	CDO
X# Date created:			29 May 2006
X# Whom:				Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cdo
XPORTVERSION=	0.9.13
XCATEGORIES=	science
XMASTER_SITES=	http://www.mpimet.mpg.de/fileadmin/software/cdo/ \
X		http://sunpoet.net/distfiles/
X
XMAINTAINER=	sunpoet@sunpoet.net
XCOMMENT=	Climate Data Operators
X
XGNU_CONFIGURE=	yes
X
XCONFIGURE_ARGS+=	--program-transform-name=""
XCONFIGURE_ENV+=	CC="${CC}" \
X		CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
X		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
X
XOPTIONS=	HDF5	"HDF5 support" off \
X		NETCDF	"NETCDF" off
X
X.if defined(WITH_HDF5)
XCONFIGURE_ARGS+=	--with-hdf5=${LOCALBASE}/include
XLIB_DEPENDS+=		hdf5.0:${PORTSDIR}/science/hdf5
X.endif
X
X.if defined(WITH_NETCDF)
XCONFIGURE_ARGS+=	--with-netcdf=${LOCALBASE}/include
XLIB_DEPENDS+=		netcdf.1:${PORTSDIR}/science/netcdf
X.endif
X
X.include <bsd.port.mk>
END-of-./Makefile
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
XMD5 (cdo-0.9.13.tar.gz) = dc93ea5130c02fa6c1d56c0296df623b
XSHA256 (cdo-0.9.13.tar.gz) = d78d24761c451f6aaae0e631b4dec8c341acb593806a0f95d0dd4ac634ece87a
XSIZE (cdo-0.9.13.tar.gz) = 594776
END-of-./distinfo
echo x - ./pkg-descr
sed 's/^X//' >./pkg-descr << 'END-of-./pkg-descr'
XCDO is a collection of command line Operators to manipulate and analyse Climate
Xmodel Data. Supported file formats are GRIB, netCDF, SERVICE, EXTRA and IEG.
XThere are more than 250 operators available. The following table gives a short
Xoverview about the main categories.
X
X* File information (info, sinfo, diff, ...)
X* File operations (copy, cat, merge, split*, ...)
X* Selection (selcode, selvar, sellevel, seltimestep, ...)
X* Missing values (setctomiss, setmisstoc, setrtomiss)
X* Arithmetic (add, sub, mul, div, ...)
X* Mathematical functions (sqrt, exp, log, sin, cos, ...)
X* Comparision (eq, ne, le, lt, ge, gt, ...)
X* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
X* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
X* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
X* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
X* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
X* Regression (detrend)
X* Field interpolation (remapbil, remapcon, remapdis, ...)
X* Vertical interpolation (ml2pl, ml2hl)
X* Time interpolation (inttime, intyear)
X
XWWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
END-of-./pkg-descr
echo c - ./files
mkdir -p ./files > /dev/null 2>&1
echo x - ./files/patch-src::cdilib.c
sed 's/^X//' >./files/patch-src::cdilib.c << 'END-of-./files/patch-src::cdilib.c'
X--- src/cdilib.c.orig	Mon Mar  6 17:08:36 2006
X+++ src/cdilib.c	Mon May 29 22:28:01 2006
X@@ -3948,7 +3948,6 @@
X 
X #if ! defined (HAVE_MALLOC_H)
X #  if defined (__sun) || defined (__i386) || defined (__ia64) || defined (SX)
X-#    define  HAVE_MALLOC_H
X #  endif
X #endif
X 
END-of-./files/patch-src::cdilib.c
echo x - ./pkg-plist
sed 's/^X//' >./pkg-plist << 'END-of-./pkg-plist'
Xbin/cdo
END-of-./pkg-plist
exit

	
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060529154732.2D5FA1701D>