1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/science/eccodes/Makefile
2020-03-28 12:46:34 +00:00

59 lines
1.4 KiB
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= eccodes
PORTVERSION= 2.17.0
DISTVERSIONSUFFIX= -Source
CATEGORIES= science
MASTER_SITES= https://confluence.ecmwf.int/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
CONFLICTS_INSTALL= grib_api
OPTIONS_DEFINE= AEC
OPTIONS_SINGLE= JPEG
OPTIONS_SINGLE_JPEG= JASPER OPENJPEG
OPTIONS_DEFAULT=OPENJPEG
AEC_DESC= Adaptive Entropy Coding support
PORTSCOUT= site:https://confluence.ecmwf.int/display/ECC/Releases
USES= cmake perl5 shebangfix
CMAKE_ARGS= -DBUILD_SHARED_LIBS=BOTH
CMAKE_OFF= ENABLE_ALIGN_MEMORY \
ENABLE_ECCODES_OMP_THREADS \
ENABLE_EXTRA_TESTS \
ENABLE_FORTRAN \
ENABLE_GRIB_TIMER \
ENABLE_MEMFS \
ENABLE_MEMORY_MANAGEMENT \
ENABLE_PYTHON
CMAKE_ON= ECCODES_INSTALL_EXTRA_TOOLS \
ENABLE_ECCODES_THREADS \
ENABLE_EXAMPLES \
ENABLE_INSTALL_ECCODES_DEFINITIONS \
ENABLE_NETCDF \
ENABLE_PNG
USE_CSTD= c99
USE_LDCONFIG= yes
SHEBANG_FILES= tools/bufr_compare_dir
AEC_CMAKE_BOOL= ENABLE_AEC
AEC_LIB_DEPENDS= libaec.so:science/libaec
JASPER_CMAKE_BOOL= ENABLE_JPG
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
OPENJPEG_LIB_DEPENDS= libopenjp2.so:graphics/openjpeg
.include <bsd.port.mk>