diff --git a/math/octave-forge-biosig/Makefile b/math/octave-forge-biosig/Makefile index cbf43cab3791..25dce241def1 100644 --- a/math/octave-forge-biosig/Makefile +++ b/math/octave-forge-biosig/Makefile @@ -1,31 +1,31 @@ PORTNAME= octave-forge-biosig -DISTVERSION= 2.4.3 +DISTVERSION= 3.0.1 CATEGORIES= math MASTER_SITES= https://pub.ist.ac.at/~schloegl/biosig/prereleases/ DISTNAME= biosig4octave-${DISTVERSION}.src MAINTAINER= stephen@FreeBSD.org COMMENT= Octave-forge package ${OCTAVE_PKGNAME} WWW= http://octave.sourceforge.net/ LICENSE= GPLv3 LICENSE_FILE= ${WRKDIR}/${OCTSRC}/COPYING LIB_DEPENDS+= libbiosig.so:biology/biosig ALL_TARGET= # nada # OCTSRC is the name of the directory of the package. # It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}. OCTSRC= ${DISTNAME:R} WRKSRC= ${WRKDIR}/${OCTSRC}/src .include "${.CURDIR}/../../Mk/bsd.octave.mk" post-build: ${RM} ${WRKSRC}/Makefile ${WRKSRC}/configure cd ${WRKDIR} && ${TAR} cfz ${OCTAVE_DISTNAME}.tar.gz ${OCTSRC} .include diff --git a/math/octave-forge-biosig/distinfo b/math/octave-forge-biosig/distinfo index 3a007f3e6057..48b9252ea6f3 100644 --- a/math/octave-forge-biosig/distinfo +++ b/math/octave-forge-biosig/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1666806158 -SHA256 (octave-forge/biosig4octave-2.4.3.src.tar.gz) = 4d415c6548dc600c525663f977e54d78207087406910091767903d91473b5fec -SIZE (octave-forge/biosig4octave-2.4.3.src.tar.gz) = 1551350 +TIMESTAMP = 1666992049 +SHA256 (octave-forge/biosig4octave-3.0.1.src.tar.gz) = 0ad89f03fa7e63e1ee9449322c247b03b48a951e64e8c5df13f372e1afb8c8d9 +SIZE (octave-forge/biosig4octave-3.0.1.src.tar.gz) = 1403188 diff --git a/math/octave-forge-biosig/files/patch-mexSSAVE.cpp b/math/octave-forge-biosig/files/patch-mexSSAVE.cpp new file mode 100644 index 000000000000..b7e987b7bb31 --- /dev/null +++ b/math/octave-forge-biosig/files/patch-mexSSAVE.cpp @@ -0,0 +1,11 @@ +--- mexSSAVE.cpp.orig 2022-10-28 21:23:00 UTC ++++ mexSSAVE.cpp +@@ -202,7 +202,7 @@ void mexFunction( + if ( (p = mxGetField(prhs[0], 0, "tzmin") ) != NULL ) + hdr->tzmin = (int16_t)getDouble(p, 0); + else +- hdr->tzmin = -timezone/60; ++ hdr->tzmin = -localtime(0)->tm_gmtoff/60; + if ( (p = mxGetField(prhs[0], 0, "FileName") ) != NULL ) FileName = mxArrayToString(p); + if ( (p = mxGetField(prhs[0], 0, "SampleRate") ) != NULL ) hdr->SampleRate = getDouble(p, 0); + if ( (p = mxGetField(prhs[0], 0, "NS") ) != NULL ) hdr->NS = getDouble(p, 0);