pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/festival Fixed building with g++-3.3.6 on NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92bc3aef3fd6
branches:  trunk
changeset: 532748:92bc3aef3fd6
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Aug 30 09:15:52 2007 +0000

description:
Fixed building with g++-3.3.6 on NetBSD.

diffstat:

 audio/festival/distinfo         |   4 ++--
 audio/festival/patches/patch-ae |  21 +++++++++++++++++----
 2 files changed, 19 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r baaa1f750e93 -r 92bc3aef3fd6 audio/festival/distinfo
--- a/audio/festival/distinfo   Thu Aug 30 08:05:44 2007 +0000
+++ b/audio/festival/distinfo   Thu Aug 30 09:15:52 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2005/12/03 04:14:05 joerg Exp $
+$NetBSD: distinfo,v 1.14 2007/08/30 09:15:52 rillig Exp $
 
 SHA1 (festival-1.95-beta.tar.gz) = 7bbf841b07a09cfe1ab17db23c2ebc12ea3d854b
 RMD160 (festival-1.95-beta.tar.gz) = 7f7cce6ab170ab1e83911ed92408576fff32cbd6
@@ -10,4 +10,4 @@
 SHA1 (patch-ab) = 23e55253b22df5b8d2bc44b08f6757c90c1f13a8
 SHA1 (patch-ac) = c0a3fbd4e98ef941ef78c1ae800ef33a5153e8f9
 SHA1 (patch-ad) = b035df9c711d0f7ee1a31b663bc44c94bd904304
-SHA1 (patch-ae) = b957601a9038dc614fdec2a720da4b30909cab1b
+SHA1 (patch-ae) = 2a0449f50e9a339767c02cc92045dd5467927ed3
diff -r baaa1f750e93 -r 92bc3aef3fd6 audio/festival/patches/patch-ae
--- a/audio/festival/patches/patch-ae   Thu Aug 30 08:05:44 2007 +0000
+++ b/audio/festival/patches/patch-ae   Thu Aug 30 09:15:52 2007 +0000
@@ -1,8 +1,16 @@
-$NetBSD: patch-ae,v 1.4 2005/12/03 04:14:05 joerg Exp $
+$NetBSD: patch-ae,v 1.5 2007/08/30 09:15:53 rillig Exp $
 
---- speech_tools/include/EST_math.h.orig       2005-12-03 03:17:51.000000000 +0000
-+++ speech_tools/include/EST_math.h
-@@ -94,6 +94,11 @@ extern "C" {
+--- speech_tools/include/EST_math.h.orig       2004-04-30 18:56:49.000000000 +0200
++++ speech_tools/include/EST_math.h    2007-08-30 10:51:43.000000000 +0200
+@@ -46,6 +46,7 @@
+ extern "C" int isnan(double);
+ #endif
+ 
++#include <cmath>
+ #include <math.h>
+ #include <limits.h>
+ #include <float.h>
+@@ -94,6 +95,16 @@ extern "C" {
  #define isnanf(X) isnan(X)
  #endif
  
@@ -11,6 +19,11 @@
 +#define isnanf(X) isnan(X)
 +#endif
 +
++/* The g++-3.3.6 <cmath> header undefines the macro isnan, but shouldn't. */
++#if !defined(isnan) && defined(__fpmacro_unary_floating)
++#define isnan(X) __fpmacro_unary_floating(isnan, (X))
++#endif
++
  /* FreeBSD *and other 4.4 based systems require anything, isnanf is defined */
  #if defined(__FreeBSD__)
  



Home | Main Index | Thread Index | Old Index