Add eccodes 2.8.0

ecCodes is a package developed by ECMWF which provides an application
programming interface and a set of tools for decoding and encoding messages in
the following formats:
- WMO FM-92 GRIB edition 1 and edition 2
- WMO FM-94 BUFR edition 3 and edition 4
- WMO GTS abbreviated header (only decoding).

A useful set of command line tools provide quick access to the messages. C,
Fortran 90 and Python interfaces provide access to the main ecCodes
functionality.

ecCodes is an evolution of GRIB-API. It is designed to provide the user with a
simple set of functions to access data from several formats with a key/value
approach.

For GRIB encoding and decoding, the GRIB-API functionality is provided fully in
ecCodes with only minor interface and behaviour changes. Interfaces for C,
Fortran 90 and Python are all maintained as in GRIB-API. However, the GRIB-API
Fortran 77 interface is no longer available.

WWW: https://software.ecmwf.int/wiki/display/ECC
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2018-06-28 21:18:03 +00:00
parent b3ea15eb6e
commit a61692dd4c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473515
5 changed files with 15319 additions and 0 deletions

View file

@ -52,6 +52,7 @@
SUBDIR += dkh
SUBDIR += dlib-cpp
SUBDIR += dlpoly-classic
SUBDIR += eccodes
SUBDIR += ecs
SUBDIR += epte
SUBDIR += erd

55
science/eccodes/Makefile Normal file
View file

@ -0,0 +1,55 @@
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= eccodes
PORTVERSION= 2.8.0
DISTVERSIONSUFFIX= -Source
CATEGORIES= science
MASTER_SITES= https://software.ecmwf.int/wiki/download/attachments/45757960/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= ECMWF API for WMO FM-92 GRIB and FM-94 BUFR messages
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libnetcdf.so:science/netcdf \
libpng.so:graphics/png
OPTIONS_DEFINE= AEC
OPTIONS_SINGLE= JPEG
OPTIONS_SINGLE_JPEG= JASPER OPENJPEG
OPTIONS_DEFAULT=OPENJPEG
AEC_DESC= Adaptive Entropy Coding support
PORTSCOUT= site:https://software.ecmwf.int/wiki/display/ECC/Releases
CMAKE_ARGS= -DBUILD_SHARED_LIBS=BOTH
CMAKE_OFF= ENABLE_ECCODES_OMP_THREADS ENABLE_FORTRAN ENABLE_MEMFS ENABLE_PYTHON
CMAKE_ON= ENABLE_ECCODES_THREADS ENABLE_NETCDF ENABLE_PNG
USE_LDCONFIG= yes
USES= cmake:outsource shebangfix #pathfix perl5
#CONFIGURE_ARGS= --enable-pthread --with-netcdf=${LOCALBASE} --with-png-support
#GNU_CONFIGURE= yes
#INSTALL_TARGET= install-strip
#USES= autoreconf libtool pathfix perl5
SHEBANG_FILES= tools/bufr_compare_dir
SHEBANG_LANG= ksh
AEC_CMAKE_BOOL= ENABLE_AEC
AEC_LIB_DEPENDS= libaec.so:science/libaec
#JASPER_CONFIGURE_ON= --with-jasper=${LOCALBASE}
JASPER_CMAKE_BOOL= ENABLE_JPG
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
#OPENJPEG_CONFIGURE_ON= --with-openjpeg=${LOCALBASE}
OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg
x-post-patch:
@${REINPLACE_CMD} -e '/default_perl_install/ s|$${prefix}|${LOCALBASE}/bin|; /rpms\//d' ${WRKSRC}/configure.ac
x-post-install:
${INSTALL_SCRIPT} ${WRKSRC}/tools/grib1to2 ${STAGEDIR}${PREFIX}/bin/grib1to2
.include <bsd.port.mk>

3
science/eccodes/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1530123306
SHA256 (eccodes-2.8.0-Source.tar.gz) = e0ba24c27cdd8133670fa3ea32be951d54030f2b880cacc9a9d87d9dbf372e1b
SIZE (eccodes-2.8.0-Source.tar.gz) = 10107452

21
science/eccodes/pkg-descr Normal file
View file

@ -0,0 +1,21 @@
ecCodes is a package developed by ECMWF which provides an application
programming interface and a set of tools for decoding and encoding messages in
the following formats:
- WMO FM-92 GRIB edition 1 and edition 2
- WMO FM-94 BUFR edition 3 and edition 4
- WMO GTS abbreviated header (only decoding).
A useful set of command line tools provide quick access to the messages. C,
Fortran 90 and Python interfaces provide access to the main ecCodes
functionality.
ecCodes is an evolution of GRIB-API. It is designed to provide the user with a
simple set of functions to access data from several formats with a key/value
approach.
For GRIB encoding and decoding, the GRIB-API functionality is provided fully in
ecCodes with only minor interface and behaviour changes. Interfaces for C,
Fortran 90 and Python are all maintained as in GRIB-API. However, the GRIB-API
Fortran 77 interface is no longer available.
WWW: https://software.ecmwf.int/wiki/display/ECC

15239
science/eccodes/pkg-plist Normal file

File diff suppressed because it is too large Load diff