1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/science/cgribex/Makefile
Po-Chuan Hsieh 8873734cb1
science/cgribex: Remove GRIB_API option after grib_api deprecation
- Bump PORTREVISION for dependency change

PR:		281652
2024-10-21 17:17:27 +08:00

38 lines
940 B
Makefile

PORTNAME= cgribex
PORTVERSION= 2.0.0
PORTREVISION= 1
CATEGORIES= science
MASTER_SITES= https://code.mpimet.mpg.de/attachments/download/26325/ \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Lightweight GRIBEX in C with portable Fortran interface
WWW= https://code.mpimet.mpg.de/projects/cgribex
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool
CONFIGURE_ARGS= --without-grpb_api
CPPFLAGS+= -DgFortran
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
OPTIONS_DEFINE= JASPER SZIP
OPTIONS_DEFAULT=JASPER SZIP
JASPER_CONFIGURE_WITH= jasper=${LOCALBASE}
JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper
SZIP_CONFIGURE_WITH= szlib=${LOCALBASE}
SZIP_LIB_DEPENDS= libsz.so:science/libaec
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
.include <bsd.port.mk>