ports/130720: [MAINTAINER] science/cdo: update to 1.3.0
Sunpoet Po-Chuan Hsieh
sunpoet at sunpoet.net
Sun Jan 18 23:10:02 UTC 2009
>Number: 130720
>Category: ports
>Synopsis: [MAINTAINER] science/cdo: update to 1.3.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Jan 18 23:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Sunpoet Po-Chuan Hsieh
>Release: FreeBSD 7.1-STABLE amd64
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD bonjour.sunpoet.net 7.1-STABLE FreeBSD 7.1-STABLE #0: Thu Jan 15 02:48:34 CST 2009
>Description:
- Update to 1.3.0
- Enable HDF5 1.8, netCDF 4 and proj by default
- Reformat Makefile
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- cdo-1.3.0.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/science/cdo/Makefile /usr/ports/sunpoet/cdo/Makefile
--- /usr/ports/science/cdo/Makefile 2009-01-07 12:50:40.400294565 +0800
+++ /usr/ports/sunpoet/cdo/Makefile 2009-01-19 07:01:35.294998493 +0800
@@ -6,26 +6,31 @@
# $FreeBSD: ports/science/cdo/Makefile,v 1.17 2009/01/06 17:59:17 pav Exp $
#
-PORTNAME= cdo
-PORTVERSION= 1.2.1
-CATEGORIES= science
-MASTER_SITES= http://www.mpimet.mpg.de/fileadmin/software/cdo/ \
- http://sunpoet.net/distfiles/
-
-MAINTAINER= sunpoet at sunpoet.net
-COMMENT= Climate Data Operators
-
-GNU_CONFIGURE= yes
-
-CONFIGURE_ARGS= --program-transform-name=""
-CONFIGURE_ENV= CC="${CC}" \
- CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
- CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
-
-PLIST_FILES= bin/cdo
-
-OPTIONS= NETCDF "NETCDF support" off
+PORTNAME= cdo
+PORTVERSION= 1.3.0
+CATEGORIES= science
+MASTER_SITES= http://www.mpimet.mpg.de/fileadmin/software/cdo/ \
+ http://sunpoet.net/distfiles/
+
+MAINTAINER= sunpoet at sunpoet.net
+COMMENT= Climate Data Operators
+
+GNU_CONFIGURE= yes
+
+CONFIGURE_ARGS= --program-transform-name=""
+CONFIGURE_ENV= CC="${CC}" \
+ CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
+ LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
+
+PLIST_FILES= bin/cdo
+
+NETCDF_VER?= 4
+HDF5_VER?= 18
+
+OPTIONS= HDF5 "HDF5 support" on \
+ NETCDF "NetCDF support" on \
+ PROJ "PROJ support" on
.include <bsd.port.pre.mk>
@@ -33,13 +38,37 @@
CONFIGURE_ENV+= CFLAGS="${CFLAGS} -DPTHREAD_MUTEXATTR_CONDATTR"
.endif
+.if (defined(WITH_NETCDF) && defined(WITH_HDF5) && (${NETCDF_VER} == 4) && (${HDF5_VER} == 16))
+IGNORE=netCDF 4 requires HDF5 1.8.
+.endif
+
.if defined(WITH_NETCDF)
CONFIGURE_ARGS+= --with-netcdf=${LOCALBASE}
-LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-Makefile.in
+.if (${NETCDF_VER} == 4)
+HDF5_VER= 18
+WITH_HDF5= yes
+LIB_DEPENDS+= netcdf.5:${PORTSDIR}/science/netcdf4
+.else
+LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
+.endif
PLIST_FILES+= bin/cdotest
.endif
+.if defined(WITH_HDF5)
+CONFIGURE_ARGS+= --with-hdf5=${LOCALBASE} --with-zlib=/usr
+.if (${HDF5_VER} == 18)
+LIB_DEPENDS+= hdf5.6:${PORTSDIR}/science/hdf5-18
+.else
+LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5
+.endif
+.endif
+
+.if defined(WITH_PROJ)
+CONFIGURE_ARGS+= --with-proj=${LOCALBASE}
+LIB_DEPENDS+= proj.5:${PORTSDIR}/graphics/proj
+.endif
+
post-build:
.if defined(WITH_NETCDF)
@cd "${WRKSRC}/src" && ${SETENV} CDO_PATH="${WRKSRC}/src/cdo" "${WRKSRC}/src/cdotest"
diff -ruN --exclude=CVS /usr/ports/science/cdo/distinfo /usr/ports/sunpoet/cdo/distinfo
--- /usr/ports/science/cdo/distinfo 2008-11-26 22:55:34.340312543 +0800
+++ /usr/ports/sunpoet/cdo/distinfo 2009-01-19 06:18:34.958170488 +0800
@@ -1,3 +1,3 @@
-MD5 (cdo-1.2.1.tar.gz) = ea7e16cb2ba099bccf5a01cac859e846
-SHA256 (cdo-1.2.1.tar.gz) = 975362906d593ce2ec216b87a8d7add12f5b7714de342119e0a8afc8153654a0
-SIZE (cdo-1.2.1.tar.gz) = 2535719
+MD5 (cdo-1.3.0.tar.gz) = a024826bc5a88ba21701af62b5e0655c
+SHA256 (cdo-1.3.0.tar.gz) = bfa25e2302a6320a2919d1ecfb1e5df82be50cd231dd40f1f2dc50cbff24a89e
+SIZE (cdo-1.3.0.tar.gz) = 2566084
--- cdo-1.3.0.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list