blob: 7d4be0176d6479aefa67efbe220e25b63f3c0c8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
PORTNAME= cgribex
PORTVERSION= 1.9.4
PORTREVISION= 2
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
WWW= https://code.mpimet.mpg.de/projects/cgribex
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/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>
|