freebsd-ports/science/cgribex/Makefile
Sunpoet Po-Chuan Hsieh 75271ac67b Update to 1.9.4
- Use CONFIGURE_WITH helper


1.9.4:
- added interface function gribDateTimeX()

1.9.3:
- encodeBDS: check range of reference value zref

1.9.2:
- grib_decode: print warning about inconsistent message length only if llarge=false

1.9.1:
- changed type of date to int64_t
- Added include <ppu_intrinsics.h> [patch from Alastair McKinstry]
- grib2PrintALL: print GRIB2 parameter triplet
2020-05-16 10:51:49 +00:00

40 lines
1019 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= cgribex
PORTVERSION= 1.9.4
CATEGORIES= science
MASTER_SITES= https://code.mpimet.mpg.de/attachments/download/21178/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Lightweight GRIBEX in C with portable Fortran interface
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool
CPPFLAGS+= -DgFortran
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= GRIB_API JASPER SZIP
OPTIONS_DEFAULT=JASPER SZIP
GRIB_API_CONFIGURE_WITH=grib_api=${LOCALBASE}
GRIB_API_LIB_DEPENDS= libgrib_api.so:science/grib_api
JASPER_CONFIGURE_WITH= jasper=${LOCALBASE}
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
SZIP_CONFIGURE_WITH= szlib=${LOCALBASE}
SZIP_LIB_DEPENDS= libsz.so:science/szip
post-configure:
@${REINPLACE_CMD} -e 's|-Ino/include||g; s|-Lno/lib||g' ${WRKSRC}/Makefile ${WRKSRC}/*/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgribex.so.0.0.0
.include <bsd.port.mk>