summaryrefslogtreecommitdiffstats
path: root/accessibility/gnomespeech
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-05-12 12:02:57 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2003-05-12 12:02:57 +0800
commit9c05c4f69822fe41e9fe5f17c277a2872009c542 (patch)
tree474c3010441cf5ad2d29fbaea6dd86a30a069bf3 /accessibility/gnomespeech
parent6ec0a661259ed1075af3c5f312b0c618b974ee61 (diff)
downloadmarcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.tar
marcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.tar.gz
marcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.tar.bz2
marcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.tar.lz
marcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.tar.xz
marcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.tar.zst
marcuscom-ports-9c05c4f69822fe41e9fe5f17c277a2872009c542.zip
Add gnomespeech. Note, this is still very much in development. You will
need to either run a NAS server, or create a ~/.festivalrc file with (Parameter.set 'Audio_Method 'esdaudio) To get this to work. Also, be sure to install one or more of the audio/festvox ports or you'll get a lot of zombies. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@750 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'accessibility/gnomespeech')
-rw-r--r--accessibility/gnomespeech/Makefile35
-rw-r--r--accessibility/gnomespeech/distinfo1
-rw-r--r--accessibility/gnomespeech/files/patch-configure11
-rw-r--r--accessibility/gnomespeech/files/patch-gnome-speech_Makefile.in16
-rw-r--r--accessibility/gnomespeech/files/patch-ltmain.sh51
-rw-r--r--accessibility/gnomespeech/pkg-descr1
-rw-r--r--accessibility/gnomespeech/pkg-plist19
7 files changed, 134 insertions, 0 deletions
diff --git a/accessibility/gnomespeech/Makefile b/accessibility/gnomespeech/Makefile
new file mode 100644
index 000000000..7193361c1
--- /dev/null
+++ b/accessibility/gnomespeech/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: gnomespeech
+# Date created: 11 May 2003
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gnomespeech
+PORTVERSION= 0.2.1
+CATEGORIES= audio gnome
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/gnome_speech/0.2
+DISTNAME= gnome_speech-${PORTVERSION}
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= GNOME text-to-speech API
+
+RUN_DEPENDS= festival:${PORTSDIR}/audio/festival
+
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gnomeprefix libbonobo
+USE_REINPLACE= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+CONFIGURE_ARGS= --enable-static
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+ s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/accessibility/gnomespeech/distinfo b/accessibility/gnomespeech/distinfo
new file mode 100644
index 000000000..bd6a5208c
--- /dev/null
+++ b/accessibility/gnomespeech/distinfo
@@ -0,0 +1 @@
+MD5 (gnome2/gnome_speech-0.2.1.tar.gz) = 0d1ff17ef1db26971ac44bcc1ec96882
diff --git a/accessibility/gnomespeech/files/patch-configure b/accessibility/gnomespeech/files/patch-configure
new file mode 100644
index 000000000..096c60c64
--- /dev/null
+++ b/accessibility/gnomespeech/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Sun May 11 19:07:44 2003
++++ configure Sun May 11 19:07:22 2003
+@@ -1748,7 +1748,7 @@
+ LT_RELEASE=$GNOME_SPEECH_MAJOR_VERSION.$AT_SPI_MINOR_VERSION
+ LT_CURRENT=`expr $GNOME_SPEECH_MICRO_VERSION - $GNOME_SPEECH_INTERFACE_AGE`
+ LT_REVISION=$GNOME_SPEECH_INTERFACE_AGE
+-LT_AGE=`expr $AGNOME_SPEECH_BINARY_AGE - $GNOME_SPEECH_INTERFACE_AGE`
++LT_AGE=`expr $GNOME_SPEECH_BINARY_AGE - $GNOME_SPEECH_INTERFACE_AGE`
+ LT_VERSION_INFO='-version-info ${LT_CURRENT}:${LT_REVISION}:${LT_AGE}'
+
+
diff --git a/accessibility/gnomespeech/files/patch-gnome-speech_Makefile.in b/accessibility/gnomespeech/files/patch-gnome-speech_Makefile.in
new file mode 100644
index 000000000..c266a9006
--- /dev/null
+++ b/accessibility/gnomespeech/files/patch-gnome-speech_Makefile.in
@@ -0,0 +1,16 @@
+--- gnome-speech/Makefile.in.orig Sun May 11 19:44:13 2003
++++ gnome-speech/Makefile.in Sun May 11 22:31:41 2003
+@@ -146,11 +146,11 @@
+ --add-imodule
+
+
+-orbittypelibdir = $(libdir)/orbit
++orbittypelibdir = $(libdir)/orbit-2.0
+ orbittypelib_LTLIBRARIES = GNOME_Speech_SynthesisDriver_module.la
+
+ GNOME_Speech_SynthesisDriver_module_la_LDFLAGS = \
+- -export-dynamic -module
++ -export-dynamic -module -avoid-version
+
+
+ GNOME_Speech_SynthesisDriver_module_la_SOURCES = \
diff --git a/accessibility/gnomespeech/files/patch-ltmain.sh b/accessibility/gnomespeech/files/patch-ltmain.sh
new file mode 100644
index 000000000..8afc42e39
--- /dev/null
+++ b/accessibility/gnomespeech/files/patch-ltmain.sh
@@ -0,0 +1,51 @@
+--- ltmain.sh.orig Fri Apr 25 15:18:44 2003
++++ ltmain.sh Sun May 11 02:27:13 2003
+@@ -1061,7 +1061,7 @@
+ esac
+ elif test "X$arg" = "X-lc_r"; then
+ case $host in
+- *-*-openbsd* | *-*-freebsd*)
++ *-*-openbsd* | *-*-freebsd4*)
+ # Do not include libc_r directly, use -pthread flag.
+ continue
+ ;;
+@@ -1071,8 +1071,16 @@
+ continue
+ ;;
+
++ -pthread)
++ compile_command="$compile_command -pthread"
++ finalize_command="$finalize_command -pthread"
++ compiler_flags="$compiler_flags -pthread"
++ continue
++ ;;
++
+ -module)
+ module=yes
++ build_old_libs=no
+ continue
+ ;;
+
+@@ -2471,6 +2479,9 @@
+ *-*-openbsd* | *-*-freebsd*)
+ # Do not include libc due to us having libc/libc_r.
+ ;;
++ *-*-freebsd*)
++ # FreeBSD doesn't need this...
++ ;;
+ *)
+ # Add libc to deplibs on all other systems if necessary.
+ if test $build_libtool_need_lc = "yes"; then
+@@ -4280,10 +4291,12 @@
+ fi
+
+ # Install the pseudo-library for information purposes.
++ if /usr/bin/false; then
+ name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
+ instname="$dir/$name"i
+ $show "$install_prog $instname $destdir/$name"
+ $run eval "$install_prog $instname $destdir/$name" || exit $?
++ fi
+
+ # Maybe install the static library, too.
+ test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
diff --git a/accessibility/gnomespeech/pkg-descr b/accessibility/gnomespeech/pkg-descr
new file mode 100644
index 000000000..bab24f601
--- /dev/null
+++ b/accessibility/gnomespeech/pkg-descr
@@ -0,0 +1 @@
+GNOME Speech is a simple general API for producing text-to-speech output.
diff --git a/accessibility/gnomespeech/pkg-plist b/accessibility/gnomespeech/pkg-plist
new file mode 100644
index 000000000..5411a829a
--- /dev/null
+++ b/accessibility/gnomespeech/pkg-plist
@@ -0,0 +1,19 @@
+bin/festival-synthesis-driver
+bin/test-speech
+include/gnome-speech-1.0/gnome-speech/GNOME_Speech_SynthesisDriver.h
+include/gnome-speech-1.0/gnome-speech/gnome-speech.h
+include/gnome-speech-1.0/gnome-speech/speaker.h
+lib/libgnomespeech.a
+lib/libgnomespeech.so
+lib/libgnomespeech.so.0
+lib/orbit-2.0/GNOME_Speech_SynthesisDriver_module.so
+libdata/bonobo/servers/GNOME_Speech_SynthesisDriver_Dectalk.server
+libdata/bonobo/servers/GNOME_Speech_SynthesisDriver_Festival.server
+libdata/pkgconfig/gnome-speech-1.0.pc
+share/gnome/idl/gnome-speech-1.0/GNOME_Speech_Speaker.idl
+share/gnome/idl/gnome-speech-1.0/GNOME_Speech_SpeechCallback.idl
+share/gnome/idl/gnome-speech-1.0/GNOME_Speech_SynthesisDriver.idl
+@dirrm share/gnome/idl/gnome-speech-1.0
+@dirrm include/gnome-speech-1.0/gnome-speech
+@dirrm include/gnome-speech-1.0
+@unexec /bin/rmdir %D/lib/orbit-2.0 2>/dev/null || /usr/bin/true