pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/festival If isnan is a macro, assume it is type-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1e4549bc799f
branches:  trunk
changeset: 532834:1e4549bc799f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Sep 02 11:02:57 2007 +0000

description:
If isnan is a macro, assume it is type-variadic or can handle float as
well. This fixes the build on DragonFly and other platforms without
isnanf.

diffstat:

 audio/festival/distinfo         |   4 +++-
 audio/festival/patches/patch-af |  16 ++++++++++++++++
 audio/festival/patches/patch-ag |  16 ++++++++++++++++
 3 files changed, 35 insertions(+), 1 deletions(-)

diffs (55 lines):

diff -r c77884450a34 -r 1e4549bc799f audio/festival/distinfo
--- a/audio/festival/distinfo   Sun Sep 02 10:50:42 2007 +0000
+++ b/audio/festival/distinfo   Sun Sep 02 11:02:57 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2007/08/30 09:15:52 rillig Exp $
+$NetBSD: distinfo,v 1.15 2007/09/02 11:02:57 joerg Exp $
 
 SHA1 (festival-1.95-beta.tar.gz) = 7bbf841b07a09cfe1ab17db23c2ebc12ea3d854b
 RMD160 (festival-1.95-beta.tar.gz) = 7f7cce6ab170ab1e83911ed92408576fff32cbd6
@@ -11,3 +11,5 @@
 SHA1 (patch-ac) = c0a3fbd4e98ef941ef78c1ae800ef33a5153e8f9
 SHA1 (patch-ad) = b035df9c711d0f7ee1a31b663bc44c94bd904304
 SHA1 (patch-ae) = 2a0449f50e9a339767c02cc92045dd5467927ed3
+SHA1 (patch-af) = 372b65486dd9078058433461a18c6bcc8b019df8
+SHA1 (patch-ag) = baa40149e3a7213175739e9075faa97691e33b6f
diff -r c77884450a34 -r 1e4549bc799f audio/festival/patches/patch-af
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/patches/patch-af   Sun Sep 02 11:02:57 2007 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-af,v 1.3 2007/09/02 11:02:59 joerg Exp $
+
+--- speech_tools/sigpr/pda/smooth_pda.cc.orig  2007-09-02 09:36:35.000000000 +0000
++++ speech_tools/sigpr/pda/smooth_pda.cc
+@@ -112,7 +112,11 @@ void smooth_portion(EST_Track &c, EST_Fe
+ 
+     for (i = 0; i < c.num_frames(); ++i)
+     {   // occasionally NaNs result...
++#if defined(isnan)
++      if (isnan(a[i]))
++#else
+       if (isnanf(a[i]))
++#endif
+       {
+           c.set_break(i);
+           c.a(i) = 0.0;
diff -r c77884450a34 -r 1e4549bc799f audio/festival/patches/patch-ag
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/patches/patch-ag   Sun Sep 02 11:02:57 2007 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ag,v 1.4 2007/09/02 11:03:03 joerg Exp $
+
+--- speech_tools/stats/confusion.cc.orig       2007-09-02 09:59:39.000000000 +0000
++++ speech_tools/stats/confusion.cc
+@@ -138,7 +138,11 @@ void print_confusion(const EST_FMatrix &
+       cout.precision(3);
+       cout.setf(ios::right);
+ //    cout.setf(ios::fixed, ios::floatfield);
++#ifdef isnan
++      if (isnan(correct(i)))
++#else
+       if (isnanf(correct(i)))
++#endif
+           cout << endl;
+       else
+           cout << correct(i) << endl;



Home | Main Index | Thread Index | Old Index