Skip to content

Commit

Permalink
science/cdo: Update to 2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Aug 31, 2022
1 parent 5b7d75e commit cd8920f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 16 deletions.
9 changes: 4 additions & 5 deletions science/cdo/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PORTNAME= cdo
PORTVERSION= 2.0.5
PORTREVISION= 2
PORTVERSION= 2.0.6
CATEGORIES= science
MASTER_SITES= https://code.mpimet.mpg.de/attachments/download/26823/ \
MASTER_SITES= https://code.mpimet.mpg.de/attachments/download/27276/ \
LOCAL/sunpoet

MAINTAINER= sunpoet@FreeBSD.org
Expand All @@ -22,7 +21,7 @@ UUID_DESC= UUID support

PORTSCOUT= site:https://code.mpimet.mpg.de/projects/cdo/files

USES= compiler:c++14-lang gmake libtool localbase pathfix
USES= compiler:c++17-lang gmake libtool localbase pathfix

CONFIGURE_ARGS= --disable-data \
--disable-extra \
Expand All @@ -37,7 +36,7 @@ GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
MAKE_JOBS_UNSAFE= yes
TEST_TARGET= check
USE_CXXSTD= c++14
USE_CXXSTD= c++17
USE_LDCONFIG= yes

CGRIBEX_CONFIGURE_WITH= cgribex
Expand Down
6 changes: 3 additions & 3 deletions science/cdo/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1652122573
SHA256 (cdo-2.0.5.tar.gz) = edeebbf1c3b1a1f0c642dae6bc8c7624e0c54babe461064dc5c7daca4a5b0dce
SIZE (cdo-2.0.5.tar.gz) = 11791780
TIMESTAMP = 1661599147
SHA256 (cdo-2.0.6.tar.gz) = ef120dea9032b1be80a4cfa201958c3b910107205beb6674195675f1ee8ed402
SIZE (cdo-2.0.6.tar.gz) = 11981469
16 changes: 8 additions & 8 deletions science/cdo/files/patch-libcdi_src_cgribexlib.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--- libcdi/src/cgribexlib.c.orig 2022-01-28 10:46:29 UTC
--- libcdi/src/cgribexlib.c.orig 2022-05-25 13:46:13 UTC
+++ libcdi/src/cgribexlib.c
@@ -12,7 +12,7 @@
#pragma GCC diagnostic warning "-Wstrict-overflow"
Expand All @@ -9,20 +9,20 @@
#pragma options nostrict
#include <ppu_intrinsics.h>
#endif
@@ -745,8 +745,8 @@ void pwr6_minmax_val_double_unrolled6(const double *re
size_t i, j;
@@ -737,8 +737,8 @@ void pwr6_minmax_val_double_unrolled6(const double *re
{
size_t residual = datasize % __UNROLL_DEPTH_1;
size_t ofs = datasize - residual;
- double register dmin[__UNROLL_DEPTH_1];
- double register dmax[__UNROLL_DEPTH_1];
+ double dmin[__UNROLL_DEPTH_1];
+ double dmax[__UNROLL_DEPTH_1];

for ( j = 0; j < __UNROLL_DEPTH_1; j++)
for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j)
{
@@ -758,21 +758,21 @@ void pwr6_minmax_val_double_unrolled6(const double *re
@@ -750,21 +750,21 @@ void pwr6_minmax_val_double_unrolled6(const double *re
{
for (j = 0; j < __UNROLL_DEPTH_1; j++)
for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j)
{
- dmin[j] = __fsel(dmin[j] - data[i+j], data[i+j], dmin[j]);
- dmax[j] = __fsel(data[i+j] - dmax[j], data[i+j], dmax[j]);
Expand All @@ -31,15 +31,15 @@
}
}

for (j = 0; j < residual; j++)
for (size_t j = 0; j < residual; ++j)
{
- dmin[j] = __fsel(dmin[j] - data[ofs+j], data[ofs+j], dmin[j]);
- dmax[j] = __fsel(data[ofs+j] - dmax[j], data[ofs+j], dmax[j]);
+ dmin[j] = __builtin_ppc_fsel(dmin[j] - data[ofs+j], data[ofs+j], dmin[j]);
+ dmax[j] = __builtin_ppc_fsel(data[ofs+j] - dmax[j], data[ofs+j], dmax[j]);
}

for ( j = 0; j < __UNROLL_DEPTH_1; j++)
for (size_t j = 0; j < __UNROLL_DEPTH_1; ++j)
{
- *fmin = __fsel(*fmin - dmin[j], dmin[j], *fmin);
- *fmax = __fsel(dmax[j] - *fmax, dmax[j], *fmax);
Expand Down
3 changes: 3 additions & 0 deletions science/cdo/pkg-plist
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
bin/cdi
bin/cdo
include/calendar.h
include/cdi.h
include/cdi.inc
include/cdi_datetime.h
include/julian_date.h
lib/cmake/libcdi/cdi-config-version.cmake
lib/cmake/libcdi/cdi-config.cmake
lib/libcdi.a
Expand Down

0 comments on commit cd8920f

Please sign in to comment.