aboutsummaryrefslogtreecommitdiffstats
path: root/science/cdo/Makefile
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2010-05-05 20:40:59 +0800
committerlwhsu <lwhsu@FreeBSD.org>2010-05-05 20:40:59 +0800
commit633892301c3da03ba0dd641f1218d1225ce9bb24 (patch)
tree6f610213ea01647587dc59429b90ed14a99c0b4b /science/cdo/Makefile
parentf497d5742dea8cb9f8b9cdbf294c7a49d967fd02 (diff)
downloadfreebsd-ports-gnome-633892301c3da03ba0dd641f1218d1225ce9bb24.tar.gz
freebsd-ports-gnome-633892301c3da03ba0dd641f1218d1225ce9bb24.tar.zst
freebsd-ports-gnome-633892301c3da03ba0dd641f1218d1225ce9bb24.zip
- Update to 1.4.3
- Update MASTER_SITES, WWW PR: ports/146326 Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet AT sunpoet.net> (maintainer)
Diffstat (limited to 'science/cdo/Makefile')
-rw-r--r--science/cdo/Makefile27
1 files changed, 17 insertions, 10 deletions
diff --git a/science/cdo/Makefile b/science/cdo/Makefile
index f9d7f3a26783..97de722285f6 100644
--- a/science/cdo/Makefile
+++ b/science/cdo/Makefile
@@ -7,9 +7,9 @@
#
PORTNAME= cdo
-PORTVERSION= 1.4.1
+PORTVERSION= 1.4.3
CATEGORIES= science
-MASTER_SITES= http://www.mpimet.mpg.de/fileadmin/software/cdo/ \
+MASTER_SITES= https://code.zmaw.de/attachments/download/76/ \
http://sunpoet.net/distfiles/
MAINTAINER= sunpoet@sunpoet.net
@@ -28,9 +28,10 @@ NETCDF_VER?= 4
HDF5_VER?= 18
OPTIONS= HDF5 "HDF5 support" on \
- JASPER "Japser support" on \
+ JASPER "Japser support" off \
NETCDF "NetCDF support" on \
- PROJ "PROJ support" on
+ PROJ "PROJ support" on \
+ SZIP "SZIP support" on
.include <bsd.port.pre.mk>
@@ -38,17 +39,18 @@ OPTIONS= HDF5 "HDF5 support" on \
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -DPTHREAD_MUTEXATTR_CONDATTR"
.endif
-.if (defined(WITH_NETCDF) && defined(WITH_HDF5) && (${NETCDF_VER} == 4) && (${HDF5_VER} == 16))
+.if (!defined(WITHOUT_NETCDF) && !defined(WITHOUT_HDF5) && (${NETCDF_VER} == 4) && (${HDF5_VER} == 16))
IGNORE=netCDF 4 requires HDF5 1.8.
.endif
-.if defined(WITH_NETCDF) && (${NETCDF_VER} == 4)
+.if !defined(WITHOUT_NETCDF) && (${NETCDF_VER} == 4)
HDF5_VER= 18
WITH_HDF5= yes
.endif
-.if defined(WITH_HDF5)
+.if !defined(WITHOUT_HDF5)
CONFIGURE_ARGS+= --with-hdf5=${LOCALBASE} --with-zlib=/usr
+WITH_SZIP= yes
.if (${HDF5_VER} == 18)
LIB_DEPENDS+= hdf5.6:${PORTSDIR}/science/hdf5-18
.else
@@ -63,7 +65,7 @@ PLIST_SUB+= JPEG2000=""
.else
.endif
-.if defined(WITH_NETCDF)
+.if !defined(WITHOUT_NETCDF)
CONFIGURE_ARGS+= --with-netcdf=${LOCALBASE}
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-Makefile.in
.if (${NETCDF_VER} == 4)
@@ -74,13 +76,18 @@ LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
PLIST_FILES+= bin/cdotest
.endif
-.if defined(WITH_PROJ)
+.if !defined(WITHOUT_PROJ)
CONFIGURE_ARGS+= --with-proj=${LOCALBASE}
LIB_DEPENDS+= proj.6:${PORTSDIR}/graphics/proj
.endif
+.if !defined(WITHOUT_SZIP)
+CONFIGURE_ARGS+= --with-szlib=${LOCALBASE}
+LIB_DEPENDS+= sz.2:${PORTSDIR}/science/szip
+.endif
+
post-build:
-.if defined(WITH_NETCDF)
+.if !defined(WITHOUT_NETCDF)
@cd "${WRKSRC}/src" && ${SETENV} CDO_PATH="${WRKSRC}/src/cdo" "${WRKSRC}/src/cdotest"
.endif