pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/festival Add DragonFly support. Use CONFIGURE_SC...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7a1e4883c3e4
branches:  trunk
changeset: 504027:7a1e4883c3e4
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Dec 03 04:14:05 2005 +0000

description:
Add DragonFly support. Use CONFIGURE_SCRIPT instead of manual
do-configure rule. Allow GCC 3.4 build, there doesn't seem to
be a good reason to disallow it.

diffstat:

 audio/festival/Makefile                    |   8 ++++----
 audio/festival/distinfo                    |   4 +++-
 audio/festival/files/unknown_DragonFly.mak |  27 +++++++++++++++++++++++++++
 audio/festival/patches/patch-ad            |  12 ++++++++++++
 audio/festival/patches/patch-ae            |  16 ++++++++++++++++
 5 files changed, 62 insertions(+), 5 deletions(-)

diffs (118 lines):

diff -r 05d0336566a7 -r 7a1e4883c3e4 audio/festival/Makefile
--- a/audio/festival/Makefile   Sat Dec 03 04:00:18 2005 +0000
+++ b/audio/festival/Makefile   Sat Dec 03 04:14:05 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2005/10/30 04:55:59 minskim Exp $
+# $NetBSD: Makefile,v 1.46 2005/12/03 04:14:05 joerg Exp $
 
 DISTNAME=      festival-1.95-beta
 PKGNAME=       festival-1.95beta
@@ -20,6 +20,8 @@
 
 FHOME=         ${PREFIX}/share/festival
 
+GNU_CONFIGURE=         yes
+CONFIGURE_SCRIPT=      ${SPEECHTOOLS}/configure
 CONFIG_GUESS_OVERRIDE= ${SPEECHTOOLS}/config.guess ${FESTIVAL}/config.guess
 CONFIG_SUB_OVERRIDE=   ${SPEECHTOOLS}/config.sub ${FESTIVAL}/config.sub
 
@@ -34,6 +36,7 @@
                        gcc-2.8.*)      ${ECHO} gcc28;;                 \
                        gcc-2.95.*)     ${ECHO} gcc295;;                \
                        gcc-3.3.*)      ${ECHO} gcc32;;                 \
+                       gcc-3.4.*)      ${ECHO} gcc32;;                 \
                        egcs*)          ${ECHO} egcs;;                  \
                        *)              ${ECHO} ;;                      \
                        esac
@@ -73,9 +76,6 @@
        @${CP} ${FILESDIR}/unknown_${OPSYS}.mak ${FESTIVAL}/config/systems/unknown_${OPSYS}.mak
 .endif
 
-do-configure:
-       cd ${SPEECHTOOLS} && ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
-
 do-install:
        ${INSTALL_DATA_DIR} ${FHOME}
        ${CHMOD} -R u+w,a+r,og-w ${FESTIVAL}/lib
diff -r 05d0336566a7 -r 7a1e4883c3e4 audio/festival/distinfo
--- a/audio/festival/distinfo   Sat Dec 03 04:00:18 2005 +0000
+++ b/audio/festival/distinfo   Sat Dec 03 04:14:05 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2005/03/07 11:32:08 agc Exp $
+$NetBSD: distinfo,v 1.13 2005/12/03 04:14:05 joerg Exp $
 
 SHA1 (festival-1.95-beta.tar.gz) = 7bbf841b07a09cfe1ab17db23c2ebc12ea3d854b
 RMD160 (festival-1.95-beta.tar.gz) = 7f7cce6ab170ab1e83911ed92408576fff32cbd6
@@ -9,3 +9,5 @@
 SHA1 (patch-aa) = 016faac0fbd2291f349b3710aefdc4df736af0d8
 SHA1 (patch-ab) = 23e55253b22df5b8d2bc44b08f6757c90c1f13a8
 SHA1 (patch-ac) = c0a3fbd4e98ef941ef78c1ae800ef33a5153e8f9
+SHA1 (patch-ad) = b035df9c711d0f7ee1a31b663bc44c94bd904304
+SHA1 (patch-ae) = b957601a9038dc614fdec2a720da4b30909cab1b
diff -r 05d0336566a7 -r 7a1e4883c3e4 audio/festival/files/unknown_DragonFly.mak
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/files/unknown_DragonFly.mak        Sat Dec 03 04:14:05 2005 +0000
@@ -0,0 +1,27 @@
+ ###########################################################################
+ ##                                                                       ##
+ ##                 Author: Alistair Crooks (agc%netbsd.org@localhost)              ##
+ ##                   Date: Wed Oct 27 2004                               ##
+ ## --------------------------------------------------------------------  ##
+ ## Settings for DragonFly.                                               ##
+ ##                                                                       ##
+ ###########################################################################
+
+include $(EST)/config/systems/default.mak
+
+## the native audio module for this type of system
+NATIVE_AUDIO_MODULE = freebsd16
+
+## echo -n doesn't work (well only sometimes ?)
+ECHO_N = /usr/bin/printf "%s"
+
+NAWK=awk
+
+# GCC_MAKE_SHARED_LIB = ld -Bshareable -x -o XXX
+
+DEFAULT_JAVA_HOME=${PREFIX}/java
+
+JAVA=$(JAVA_HOME)/bin/java
+JAVAC=$(JAVA_HOME)/bin/javac
+JAVAH=$(JAVA_HOME)/bin/javah -jni
+JAR=$(JAVA_HOME)/bin/jar cf0v 
diff -r 05d0336566a7 -r 7a1e4883c3e4 audio/festival/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/patches/patch-ad   Sat Dec 03 04:14:05 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-ad,v 1.5 2005/12/03 04:14:05 joerg Exp $
+
+--- speech_tools/audio/voxware.cc.orig 2005-12-03 02:59:39.000000000 +0000
++++ speech_tools/audio/voxware.cc
+@@ -66,6 +66,7 @@
+ int freebsd16_supported = TRUE;
+ int linux16_supported = FALSE;
+ static char *aud_sys_name = "FreeBSD";
++static int stereo_only = 0;
+ #endif
+ 
+ #ifdef SUPPORT_LINUX16
diff -r 05d0336566a7 -r 7a1e4883c3e4 audio/festival/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/festival/patches/patch-ae   Sat Dec 03 04:14:05 2005 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-ae,v 1.4 2005/12/03 04:14:05 joerg 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" {
+ #define isnanf(X) isnan(X)
+ #endif
+ 
++/* If isnan is a macro, assume it is C99 type-variadic. */
++#if defined(__DragonFly__) && defined(isnan)
++#define isnanf(X) 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