diff options
author | lwhsu <lwhsu@FreeBSD.org> | 2007-04-10 11:09:55 +0800 |
---|---|---|
committer | lwhsu <lwhsu@FreeBSD.org> | 2007-04-10 11:09:55 +0800 |
commit | c59b817325ed239dbd4b0937302bb8e58517efec (patch) | |
tree | b04548ae167f087e28a027154cb1db7dddb905a0 /science/cdo | |
parent | 610212316137c208ffd9b26080fc421de324fd59 (diff) | |
download | freebsd-ports-gnome-c59b817325ed239dbd4b0937302bb8e58517efec.tar.gz freebsd-ports-gnome-c59b817325ed239dbd4b0937302bb8e58517efec.tar.zst freebsd-ports-gnome-c59b817325ed239dbd4b0937302bb8e58517efec.zip |
- Update to 1.0.7
PR: 111346
Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet AT sunpoet.net> (maintainer)
Approved by: clsung (mentor)
Diffstat (limited to 'science/cdo')
-rw-r--r-- | science/cdo/Makefile | 12 | ||||
-rw-r--r-- | science/cdo/distinfo | 6 | ||||
-rw-r--r-- | science/cdo/files/patch-src-cdo_pthread.c | 6 | ||||
-rw-r--r-- | science/cdo/files/patch-src-config.h.in | 17 | ||||
-rw-r--r-- | science/cdo/files/patch-src-pthread_debug.c | 4 | ||||
-rw-r--r-- | science/cdo/files/patch-src-pthread_debug.h | 4 | ||||
-rw-r--r-- | science/cdo/pkg-message | 2 |
7 files changed, 28 insertions, 23 deletions
diff --git a/science/cdo/Makefile b/science/cdo/Makefile index b1460d8cffb8..4ad4f7db0c2d 100644 --- a/science/cdo/Makefile +++ b/science/cdo/Makefile @@ -7,7 +7,7 @@ # PORTNAME= cdo -PORTVERSION= 1.0.6 +PORTVERSION= 1.0.7 CATEGORIES= science MASTER_SITES= http://www.mpimet.mpg.de/fileadmin/software/cdo/ \ http://sunpoet.net/distfiles/ @@ -28,6 +28,12 @@ PLIST_FILES= bin/cdo bin/cdotest OPTIONS= HDF5 "HDF5 support" off \ NETCDF "NETCDF support" off +.include <bsd.port.pre.mk> + +.if (${OSVERSION} > 700000) || (${ARCH} != "sparc64" && ${OSVERSION} > 600000) +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -DPTHREAD_MUTEXATTR_CONDATTR" +.endif + .if defined(WITH_HDF5) CONFIGURE_ARGS+= --with-hdf5=${LOCALBASE} LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5 @@ -35,10 +41,10 @@ LIB_DEPENDS+= hdf5.0:${PORTSDIR}/science/hdf5 .if defined(WITH_NETCDF) CONFIGURE_ARGS+= --with-netcdf=${LOCALBASE} -LIB_DEPENDS+= netcdf.1:${PORTSDIR}/science/netcdf +LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf .endif post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/science/cdo/distinfo b/science/cdo/distinfo index 3e8a8cf11b48..933c52e1da39 100644 --- a/science/cdo/distinfo +++ b/science/cdo/distinfo @@ -1,3 +1,3 @@ -MD5 (cdo-1.0.6.tar.gz) = 4d27edf8c576cab34eacf358073456d1 -SHA256 (cdo-1.0.6.tar.gz) = aaf22308a446942bac9158f631ca749cd91d33e4985cca4f6e7c6cf37b474ec5 -SIZE (cdo-1.0.6.tar.gz) = 2279653 +MD5 (cdo-1.0.7.tar.gz) = ee087cbd434f3bacc7b4154300f2cffe +SHA256 (cdo-1.0.7.tar.gz) = 9aee78fcd0fc500b64e527bee10dea9b9bb607832e0bf40db50685f370ab9d58 +SIZE (cdo-1.0.7.tar.gz) = 2315855 diff --git a/science/cdo/files/patch-src-cdo_pthread.c b/science/cdo/files/patch-src-cdo_pthread.c index 34cddbdf3abe..1a5c03102069 100644 --- a/science/cdo/files/patch-src-cdo_pthread.c +++ b/science/cdo/files/patch-src-cdo_pthread.c @@ -1,10 +1,10 @@ --- src/cdo_pthread.c.orig Wed Mar 22 22:04:18 2006 -+++ src/cdo_pthread.c Mon Dec 18 10:01:00 2006 ++++ src/cdo_pthread.c Sat Apr 7 01:07:02 2007 @@ -32,8 +32,10 @@ { #if defined (HAVE_LIBPTHREAD) pthread_attr_t attr; -+#if __FreeBSD_version >= 600000 ++#if defined (PTHREAD_MUTEXATTR_CONDATTR) pthread_mutexattr_t m_attr; pthread_condattr_t c_attr; +#endif @@ -15,7 +15,7 @@ print_pthread_attr("Default pthread attr", &attr); pthread_attr_destroy(&attr); -+#if __FreeBSD_version >= 600000 ++#if defined (PTHREAD_MUTEXATTR_CONDATTR) pthread_mutexattr_init(&m_attr); print_pthread_mutexattr("Default pthread mutexattr", &m_attr); pthread_mutexattr_destroy(&m_attr); diff --git a/science/cdo/files/patch-src-config.h.in b/science/cdo/files/patch-src-config.h.in index 792cca69a62d..b4787e08098e 100644 --- a/science/cdo/files/patch-src-config.h.in +++ b/science/cdo/files/patch-src-config.h.in @@ -1,11 +1,10 @@ ---- src/config.h.in.orig Wed Dec 13 21:30:19 2006 -+++ src/config.h.in Mon Dec 18 10:41:13 2006 -@@ -1,5 +1,8 @@ - /* src/config.h.in. Generated from configure.ac by autoheader. */ +--- src/config.h.in.orig Tue Dec 19 19:07:07 2006 ++++ src/config.h.in Sat Apr 7 04:00:39 2007 +@@ -107,3 +107,7 @@ -+#include <unistd.h> -+#include <sys/param.h> + /* Define for large files, on AIX-style hosts. */ + #undef _LARGE_FILES + - /* Compiler */ - #undef COMPILER - ++#if defined (HAVE_UNISTD_H) ++#include <unistd.h> ++#endif diff --git a/science/cdo/files/patch-src-pthread_debug.c b/science/cdo/files/patch-src-pthread_debug.c index accba3d44423..9aa0ad43b02f 100644 --- a/science/cdo/files/patch-src-pthread_debug.c +++ b/science/cdo/files/patch-src-pthread_debug.c @@ -1,10 +1,10 @@ --- src/pthread_debug.c.orig Mon Dec 4 16:11:40 2006 -+++ src/pthread_debug.c Mon Dec 18 10:01:00 2006 ++++ src/pthread_debug.c Sat Apr 7 01:12:05 2007 @@ -77,6 +77,7 @@ } -+#if __FreeBSD_version >= 600000 ++#if defined (PTHREAD_MUTEXATTR_CONDATTR) void print_pthread_mutexattr(const char *caller, pthread_mutexattr_t *m_attr) { int protocol, kind, pshared; diff --git a/science/cdo/files/patch-src-pthread_debug.h b/science/cdo/files/patch-src-pthread_debug.h index ac134fe9be35..c94e750bcc1f 100644 --- a/science/cdo/files/patch-src-pthread_debug.h +++ b/science/cdo/files/patch-src-pthread_debug.h @@ -1,10 +1,10 @@ --- src/pthread_debug.h.orig Wed Feb 15 21:22:38 2006 -+++ src/pthread_debug.h Mon Dec 18 10:01:00 2006 ++++ src/pthread_debug.h Sat Apr 7 01:13:25 2007 @@ -15,8 +15,10 @@ void Pthread_cond_wait(const char *caller, pthread_cond_t *cond, pthread_mutex_t *mutex); void print_pthread_attr(const char *caller, pthread_attr_t *attr); -+#if __FreeBSD_version >= 600000 ++#if defined (PTHREAD_MUTEXATTR_CONDATTR) void print_pthread_mutexattr(const char *caller, pthread_mutexattr_t *m_attr); void print_pthread_condattr(const char *caller, pthread_condattr_t *c_attr); +#endif diff --git a/science/cdo/pkg-message b/science/cdo/pkg-message index d44d786408ce..3b9ecf0c250f 100644 --- a/science/cdo/pkg-message +++ b/science/cdo/pkg-message @@ -1,4 +1,4 @@ -In CDO version 1.0.6, three new environment variables were introduced: +Since CDO version 1.0.6, three new environment variables were introduced: - CDO_DISABLE_HISTORY: If set to 1, the netCDF history attribute of input datasets is not used. - CDO_DISABLE_FILESUFFIX: |