1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00
freebsd-ports/audio/festival/files/patch-voxware
Mikhail Teterin 9795f213f8 Update from 1.96 to 2.1. Despite being newer, the upstream release
remains uncompileable by modern compilers and substantial patches --
obtained from both Debian and NetBSD ports of the same software were
necessary.

Among the patches is a functionality-improving one, which allows the
new version to continue using voices created for 1.9x

Tested by:		bapt
2013-09-06 15:24:58 +00:00

50 lines
1.4 KiB
Plaintext

--- speech_tools/config/modules/freebsd16_audio.mak 2001-04-04 09:11:27.000000000 -0400
+++ speech_tools/config/modules/freebsd16_audio.mak 2013-05-27 13:29:03.000000000 -0400
@@ -43,5 +43,5 @@
MOD_DESC_FREEBSD16_AUDIO=Native audio module for FreeBSD systems
-AUDIO_DEFINES += -DSUPPORT_FREEBSD16
+AUDIO_DEFINES += -DSUPPORT_FREEBSD16 -DSUPPORT_VOXWARE
#ifdef INCLUDE_JAVA_CPP
--- speech_tools/audio/linux_sound.cc 2009-04-29 13:06:36.000000000 -0400
+++ speech_tools/audio/linux_sound.cc 2013-05-27 13:31:00.000000000 -0400
@@ -66,7 +66,13 @@
int freebsd16_supported = TRUE;
int linux16_supported = FALSE;
-static char *aud_sys_name = "FreeBSD";
+static const char *aud_sys_name = "FreeBSD";
#endif /*SUPPORT_FREEBSD16 */
+#ifdef SUPPORT_LINUX16
+int linux16_supported = TRUE;
+int freebsd16_supported = FALSE;
+static const char *aud_sys_name = "Linux";
+#endif
+
#ifdef SUPPORT_VOXWARE
@@ -76,7 +82,5 @@
#include <sys/stat.h>
#include <fcntl.h>
-int linux16_supported = TRUE;
-int freebsd16_supported = FALSE;
-static char *aud_sys_name = "Linux";
+
static int stereo_only = 0;
@@ -152,5 +156,5 @@
int audio,actual_fmt;
int i,r,n;
- char *audiodevice;
+ const char *audiodevice;
if (al.present("-audiodevice"))
@@ -279,5 +283,5 @@
int audio=-1,actual_fmt;
int i,r,n;
- char *audiodevice;
+ const char *audiodevice;
if (al.present("-audiodevice"))