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
|
2019-11-14 00:25:29 +01:00
|
|
|
PORTVERSION= 1.9.8
|
2019-12-27 14:43:00 +01:00
|
|
|
PORTREVISION= 1
|
2011-04-12 17:17:01 +02:00
|
|
|
CATEGORIES= science
|
2019-11-14 00:25:29 +01:00
|
|
|
MASTER_SITES= https://code.mpimet.mpg.de/attachments/download/20826/ \
|
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
|
2015-11-09 19:43:29 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2014-04-06 07:46:46 +02:00
|
|
|
|
2019-02-10 00:27:28 +01:00
|
|
|
OPTIONS_DEFINE= CGRIBEX ECCODES HDF5 JASPER NETCDF PROJ SZIP UDUNITS UUID
|
|
|
|
OPTIONS_DEFAULT=CGRIBEX ECCODES HDF5 JASPER NETCDF PROJ SZIP UDUNITS UUID
|
2014-04-06 07:46:46 +02:00
|
|
|
OPTIONS_SUB= yes
|
2016-12-03 17:32:29 +01:00
|
|
|
CGRIBEX_DESC= Use CGRIBEX library for GRIB1 files
|
2019-02-10 00:27:28 +01:00
|
|
|
ECCODES_DESC= Use ecCodes for GRIB files
|
2015-08-19 03:38:20 +02:00
|
|
|
HDF5_IMPLIES= SZIP
|
|
|
|
NETCDF_IMPLIES= HDF5
|
2016-12-17 13:57:36 +01:00
|
|
|
UUID_DESC= UUID support
|
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
|
|
|
|
2019-02-05 14:48:20 +01:00
|
|
|
PORTSCOUT= site:https://code.mpimet.mpg.de/projects/cdo/files
|
|
|
|
|
2019-02-10 00:27:28 +01:00
|
|
|
USES= compiler:c++11-lang gmake libtool localbase pathfix
|
2015-06-13 15:50:54 +02:00
|
|
|
|
2016-11-19 18:04:47 +01:00
|
|
|
CONFIGURE_ARGS= --disable-data \
|
2014-05-03 05:43:18 +02:00
|
|
|
--disable-extra \
|
2019-02-10 00:27:28 +01:00
|
|
|
--disable-fortran \
|
2014-05-03 05:43:18 +02:00
|
|
|
--disable-ieg \
|
2015-11-11 17:51:31 +01:00
|
|
|
--disable-openmp \
|
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
|
2014-12-28 14:14:31 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
2017-09-08 23:51:46 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2015-10-01 17:56:00 +02:00
|
|
|
TEST_TARGET= check
|
2017-09-08 23:51:46 +02:00
|
|
|
USE_CXXSTD= c++11
|
2011-07-16 08:12:30 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-05-03 05:43:18 +02:00
|
|
|
|
2016-04-23 08:46:51 +02:00
|
|
|
CGRIBEX_CONFIGURE_WITH= cgribex
|
2016-04-01 16:25:16 +02:00
|
|
|
CGRIBEX_LIB_DEPENDS= libcgribex.so:science/cgribex
|
2019-02-10 00:27:28 +01:00
|
|
|
ECCODES_CONFIGURE_WITH= eccodes
|
|
|
|
ECCODES_LIB_DEPENDS= libeccodes.so:science/eccodes
|
2016-04-23 08:46:51 +02:00
|
|
|
HDF5_CONFIGURE_WITH= hdf5
|
2016-04-01 16:25:16 +02:00
|
|
|
HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5
|
2016-04-23 08:46:51 +02:00
|
|
|
JASPER_CONFIGURE_WITH= jasper
|
2016-04-01 16:25:16 +02:00
|
|
|
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
|
2016-04-23 08:46:51 +02:00
|
|
|
NETCDF_CONFIGURE_WITH= netcdf
|
2016-04-01 16:25:16 +02:00
|
|
|
NETCDF_LIB_DEPENDS= libnetcdf.so:science/netcdf
|
2016-04-23 08:46:51 +02:00
|
|
|
PROJ_CONFIGURE_WITH= proj
|
2016-04-01 16:25:16 +02:00
|
|
|
PROJ_LIB_DEPENDS= libproj.so:graphics/proj
|
2016-04-23 08:46:51 +02:00
|
|
|
SZIP_CONFIGURE_WITH= szlib
|
2016-04-01 16:25:16 +02:00
|
|
|
SZIP_LIB_DEPENDS= libsz.so:science/szip
|
2016-04-23 08:46:51 +02:00
|
|
|
UDUNITS_CONFIGURE_WITH= udunits2
|
2016-04-01 16:25:16 +02:00
|
|
|
UDUNITS_LIB_DEPENDS= libudunits2.so:science/udunits
|
2016-12-17 13:57:36 +01:00
|
|
|
UUID_CONFIGURE_OFF= ac_cv_func_uuid_create=no ac_cv_have_decl_uuid_create=no ac_cv_have_decl_uuid_generate=no ac_cv_lib_uuid_uuid_generate=no
|
|
|
|
UUID_LIB_DEPENDS= libuuid.so:misc/e2fsprogs-libuuid
|
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:
|
2016-12-12 21:57:51 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| contrib||' ${WRKSRC}/Makefile.in
|
2014-05-03 05:43:18 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$(libdir)/\($$$$pkgconfigfile\)|${PREFIX}/libdata/\1|' ${WRKSRC}/libcdi/src/Makefile.in
|
2015-04-04 14:52:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|unsigned32 |uint32_t |' ${WRKSRC}/libcdi/src/cdilib.c ${WRKSRC}/libcdi/src/util.c
|
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
|
|
|
|
2018-08-18 22:41:01 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/libcdi/src/cdi.inc ${STAGEDIR}${PREFIX}/include/cdi.inc
|
|
|
|
|
2015-10-01 17:56:00 +02:00
|
|
|
test-NETCDF-on:
|
2014-05-03 05:43:18 +02:00
|
|
|
@cd ${WRKSRC}/ && ${SETENV} CDO_PATH=src/cdo src/cdotest
|
2008-08-18 08:51:34 +02:00
|
|
|
|
2007-04-10 05:09:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|