summaryrefslogtreecommitdiff
path: root/comms/gmfsk
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2004-09-23 16:25:26 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2004-09-23 16:25:26 +0000
commite981dc41dd1eee4e335ff0176922b0fe950a0d8c (patch)
treeea9204cf3d859defcb854f47991d21e0ffb77985 /comms/gmfsk
parentDocument vulnerabilities in lha. (diff)
Unbreak the build.
Reported by: kris Approved by: portmgr (marcus), fjoe (mentor, implicit), maintainer
Notes
Notes: svn path=/head/; revision=118358
Diffstat (limited to 'comms/gmfsk')
-rw-r--r--comms/gmfsk/Makefile8
-rw-r--r--comms/gmfsk/files/patch-src_mt63_dsp.h22
2 files changed, 23 insertions, 7 deletions
diff --git a/comms/gmfsk/Makefile b/comms/gmfsk/Makefile
index 355617fe187c..cc76b4ddefe7 100644
--- a/comms/gmfsk/Makefile
+++ b/comms/gmfsk/Makefile
@@ -26,13 +26,7 @@ USE_GMAKE= yes
USE_AUTOCONF_VER= 253
USE_GNOME= libgnomeui
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502126
-BROKEN= "Does not compile on FreeBSD >= 5.x"
-.endif
-
post-install:
@${CAT} pkg-message
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/comms/gmfsk/files/patch-src_mt63_dsp.h b/comms/gmfsk/files/patch-src_mt63_dsp.h
new file mode 100644
index 000000000000..b5c4459cd6de
--- /dev/null
+++ b/comms/gmfsk/files/patch-src_mt63_dsp.h
@@ -0,0 +1,22 @@
+--- src/mt63/dsp.h.orig Thu Sep 23 16:05:14 2004
++++ src/mt63/dsp.h Thu Sep 23 16:09:10 2004
+@@ -846,7 +846,7 @@
+ Sum = Elem.Mid + Elem.Out;
+ Diff = Elem.Mid - Elem.Out;
+ Elem.Mid += W2 * Inp - W1 * Sum;
+- Out += W5 * Diff;
++ Elem.Out += W5 * Diff;
+ }
+
+ template < class typeInp >
+@@ -856,8 +856,8 @@
+ double Sum, Diff;
+ Sum = Elem.Mid + Elem.Out;
+ Diff = Elem.Mid - Elem.Out;
+- Elem.Mid += Weight.W2 * Inp - Weigth.W1 * Sum;
+- Out += Weight.W5 * Diff;
++ Elem.Mid += Weight.W2 * Inp - Weight.W1 * Sum;
++ Elem.Out += Weight.W5 * Diff;
+ }
+
+ /*