2013-06-08 23:49:40 +02:00
|
|
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
|
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.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2011-04-12 17:17:01 +02:00
|
|
|
PORTNAME= cdo
|
2014-07-04 04:49:34 +02:00
|
|
|
PORTVERSION= 1.6.4
|
2011-04-12 17:17:01 +02:00
|
|
|
CATEGORIES= science
|
2014-07-04 04:49:34 +02:00
|
|
|
MASTER_SITES= https://code.zmaw.de/attachments/download/8376/ \
|
2011-04-12 17:17:01 +02:00
|
|
|
LOCAL/sunpoet
|
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.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2011-04-12 17:17:01 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
|
|
COMMENT= Climate Data Operators
|
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.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2014-04-06 07:46:46 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2014-05-03 05:43:18 +02:00
|
|
|
OPTIONS_DEFINE= CGRIBEX HDF5 JASPER NETCDF PROJ SZIP UDUNITS
|
|
|
|
OPTIONS_DEFAULT=CGRIBEX HDF5 JASPER NETCDF PROJ SZIP UDUNITS
|
2014-04-06 07:46:46 +02:00
|
|
|
OPTIONS_SUB= yes
|
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.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2011-09-01 14:50:41 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2014-05-03 05:43:18 +02:00
|
|
|
CONFIGURE_ARGS= --disable-cgribex \
|
|
|
|
--disable-data \
|
|
|
|
--disable-extra \
|
|
|
|
--disable-grib \
|
|
|
|
--disable-ieg \
|
2014-05-03 09:59:46 +02:00
|
|
|
--disable-service \
|
2014-05-03 05:43:18 +02:00
|
|
|
--enable-cdi-lib \
|
|
|
|
--program-transform-name="" \
|
|
|
|
--with-zlib=/usr
|
2011-07-16 08:12:30 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-08-29 20:35:35 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -pthread
|
2011-07-16 08:12:30 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-05-03 05:43:18 +02:00
|
|
|
USES= gmake libtool pathfix
|
|
|
|
|
|
|
|
CGRIBEX_CONFIGURE_OFF= --without-cgribex
|
|
|
|
CGRIBEX_CONFIGURE_ON= --with-cgribex=${LOCALBASE}
|
|
|
|
CGRIBEX_LIB_DEPENDS= libcgribex.so:${PORTSDIR}/science/cgribex
|
|
|
|
HDF5_CONFIGURE_OFF= --without-hdf5
|
|
|
|
HDF5_CONFIGURE_ON= --with-hdf5=${LOCALBASE}
|
|
|
|
HDF5_LIB_DEPENDS= libhdf5.so:${PORTSDIR}/science/hdf5
|
|
|
|
JASPER_CONFIGURE_OFF= --without-jasper
|
|
|
|
JASPER_CONFIGURE_ON= --with-jasper=${LOCALBASE}
|
2014-04-06 07:46:46 +02:00
|
|
|
JASPER_LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper
|
2014-05-03 05:43:18 +02:00
|
|
|
NETCDF_CONFIGURE_OFF= --without-netcdf
|
|
|
|
NETCDF_CONFIGURE_ON= --with-netcdf=${LOCALBASE}
|
|
|
|
NETCDF_LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
|
|
|
|
PROJ_CONFIGURE_OFF= --without-proj
|
|
|
|
PROJ_CONFIGURE_ON= --with-proj=${LOCALBASE}
|
2014-04-06 07:46:46 +02:00
|
|
|
PROJ_LIB_DEPENDS= libproj.so:${PORTSDIR}/graphics/proj
|
2014-05-03 05:43:18 +02:00
|
|
|
SZIP_CONFIGURE_OFF= --without-szlib
|
|
|
|
SZIP_CONFIGURE_ON= --with-szlib=${LOCALBASE}
|
2014-04-06 07:46:46 +02:00
|
|
|
SZIP_LIB_DEPENDS= libsz.so:${PORTSDIR}/science/szip
|
2014-05-03 05:43:18 +02:00
|
|
|
UDUNITS_CONFIGURE_OFF= --without-udunits2
|
|
|
|
UDUNITS_CONFIGURE_ON= --with-udunits2=${LOCALBASE}
|
|
|
|
UDUNITS_LIB_DEPENDS= libudunits2.so:${PORTSDIR}/science/udunits
|
2011-07-16 08:12:30 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2007-04-10 05:09:55 +02:00
|
|
|
|
2014-04-06 07:46:46 +02:00
|
|
|
.if ${PORT_OPTIONS:MHDF5} && !${PORT_OPTIONS:MSZIP}
|
|
|
|
IGNORE= HDF5 option requires SZIP option
|
2009-02-01 10:54:29 +01:00
|
|
|
.endif
|
|
|
|
|
2014-04-06 07:46:46 +02:00
|
|
|
.if ${PORT_OPTIONS:MNETCDF} && !${PORT_OPTIONS:MHDF5}
|
|
|
|
IGNORE= NETCDF option requires HDF5 option
|
2010-05-05 14:40:59 +02:00
|
|
|
.endif
|
|
|
|
|
2011-07-16 08:12:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} != "sparc64"
|
|
|
|
CFLAGS+= -DPTHREAD_MUTEXATTR_CONDATTR
|
|
|
|
.endif
|
|
|
|
|
2011-03-01 03:44:32 +01:00
|
|
|
post-patch:
|
2014-05-03 05:43:18 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/\($$$$pkgconfigfile\)|${PREFIX}/libdata/\1|' ${WRKSRC}/libcdi/src/Makefile.in
|
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.
* File information (info, sinfo, diff, ...)
* File operations (copy, cat, merge, split*, ...)
* Selection (selcode, selvar, sellevel, seltimestep, ...)
* Missing values (setctomiss, setmisstoc, setrtomiss)
* Arithmetic (add, sub, mul, div, ...)
* Mathematical functions (sqrt, exp, log, sin, cos, ...)
* Comparision (eq, ne, le, lt, ge, gt, ...)
* Conditions (ifthen, ifnotthen, ifthenc, ifnotthenc)
* Field statistic (fldsum, fldavg, fldstd, fldmin, fldmax, ...)
* Vertical statistic (vertsum, vertavg, vertstd, vertmin, ...)
* Time range statistic (timavg, yearavg, monavg, dayavg, ...)
* Ensemble statistic (enssum, ensavg, ensstd, ensmin, ...)
* Regression (detrend)
* Field interpolation (remapbil, remapcon, remapdis, ...)
* Vertical interpolation (ml2pl, ml2hl)
* Time interpolation (inttime, intyear)
WWW: http://www.mpimet.mpg.de/fileadmin/software/cdo/
PR: ports/98099
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
2006-06-11 10:41:34 +02:00
|
|
|
|
2014-04-06 07:46:46 +02:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcdi.so.0
|
|
|
|
|
2013-06-08 23:49:40 +02:00
|
|
|
regression-test test: build
|
2014-05-03 05:43:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MNETCDF}
|
|
|
|
@cd ${WRKSRC}/ && ${SETENV} CDO_PATH=src/cdo src/cdotest
|
|
|
|
.endif
|
|
|
|
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
|
2008-08-18 08:51:34 +02:00
|
|
|
|
2007-04-10 05:09:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|