aboutsummaryrefslogtreecommitdiff
path: root/science/grib_api/Makefile
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-08-29 17:31:42 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-08-29 17:31:42 +0000
commitd5a68cc00b12dc63f8f72739f7ac55a961c95d33 (patch)
tree72861944a28b9509b513e252ee897a96d09f9ee0 /science/grib_api/Makefile
parent8bf6fc38b1d6b3ea466271507ab4df82d967aec8 (diff)
Notes
Diffstat (limited to 'science/grib_api/Makefile')
-rw-r--r--science/grib_api/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/science/grib_api/Makefile b/science/grib_api/Makefile
new file mode 100644
index 000000000000..eb4f18e03809
--- /dev/null
+++ b/science/grib_api/Makefile
@@ -0,0 +1,34 @@
+# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= grib_api
+PORTVERSION= 1.12.3
+CATEGORIES= science
+MASTER_SITES= https://software.ecmwf.int/wiki/download/attachments/3473437/
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= ECMWF API for WMO FM-92 GRIB messages
+
+LICENSE= APACHE20
+
+LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf \
+ libpng.so:${PORTSDIR}/graphics/png
+
+OPTIONS_SINGLE= JPEG
+OPTIONS_SINGLE_JPEG= JASPER OPENJPEG
+OPTIONS_DEFAULT=OPENJPEG
+
+CONFIGURE_ARGS= --enable-pthread --with-netcdf=${LOCALBASE} --with-png-support
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
+USES= libtool pathfix
+
+JASPER_CONFIGURE_ON= --with-jasper=${LOCALBASE}
+JASPER_LIB_DEPENDS= libjasper.so:${PORTSDIR}/graphics/jasper
+OPENJPEG_CONFIGURE_ON= --with-openjpeg=${LOCALBASE}
+OPENJPEG_LIB_DEPENDS= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg15
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/tools/grib1to2 ${STAGEDIR}${PREFIX}/bin/grib1to2
+
+.include <bsd.port.mk>