- Update octave-forge-signal to 1.4.0.
- Unbreak octave-forge-signal. - Bump portrevision for octave-forge. - Note: renamed truncate to truncate2 in a patch file because of a conflict with sys/types.h.
This commit is contained in:
parent
c33f72ca5b
commit
4c832cf932
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469289
3 changed files with 24 additions and 6 deletions
|
@ -2,8 +2,7 @@
|
|||
# $FreeBSD$
|
||||
|
||||
PORTNAME= octave-forge-signal
|
||||
PORTVERSION= 1.3.2
|
||||
PORTREVISION= 6
|
||||
PORTVERSION= 1.4.0
|
||||
CATEGORIES= math
|
||||
|
||||
MAINTAINER= stephen@FreeBSD.org
|
||||
|
@ -12,8 +11,6 @@ COMMENT= Octave-forge package ${OCTAVE_PKGNAME}
|
|||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKDIR}/${OCTSRC}/COPYING
|
||||
|
||||
BROKEN= does not build with octave 4.4.0
|
||||
|
||||
# OCTSRC is the name of the directory of the package.
|
||||
# It is usually ${OCTAVE_PKGNAME} or ${DISTNAME}.
|
||||
OCTSRC= ${DISTNAME}
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
SHA256 (octave-forge/signal-1.3.2.tar.gz) = a277f12e9f47cc66a8c56ab26284ac4839b223f32de13e35e710401fd0539b60
|
||||
SIZE (octave-forge/signal-1.3.2.tar.gz) = 190376
|
||||
TIMESTAMP = 1525701509
|
||||
SHA256 (octave-forge/signal-1.4.0.tar.gz) = 95d7053409aa2f5815bf55eb3b9a5dced2118dabe56ad1492f973108924cf5e7
|
||||
SIZE (octave-forge/signal-1.4.0.tar.gz) = 200823
|
||||
|
|
20
math/octave-forge-signal/files/patch-medfilt1.cc
Normal file
20
math/octave-forge-signal/files/patch-medfilt1.cc
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- medfilt1.cc.orig 2018-05-07 14:01:24 UTC
|
||||
+++ medfilt1.cc
|
||||
@@ -37,7 +37,7 @@ Created: 2015-12-13
|
||||
#include "ov.h"
|
||||
|
||||
enum nan_handling { include_nan, omit_nan };
|
||||
-enum pad_type { zero_pad, truncate };
|
||||
+enum pad_type { zero_pad, truncate2 };
|
||||
|
||||
// Keep a sorted sliding window of values.
|
||||
// There is no error checking, to keep things fast.
|
||||
@@ -323,7 +323,7 @@ to bring them up to size @var{n}.\n\
|
||||
if (! strcasecmp (s.c_str (), "omitnan"))
|
||||
nan_flag = omit_nan;
|
||||
else if (! strcasecmp (s.c_str (), "truncate"))
|
||||
- padding = truncate;
|
||||
+ padding = truncate2;
|
||||
else if (strcasecmp (s.c_str (), "includenan")
|
||||
&& strcasecmp (s.c_str (), "zeropad")) // the defaults
|
||||
error ("medfilt1: Invalid NAN_FLAG or PADDING value '%s'", s.c_str ());
|
Loading…
Reference in a new issue