From 9c05c4f69822fe41e9fe5f17c277a2872009c542 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 12 May 2003 04:02:57 +0000 Subject: 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 --- accessibility/gnomespeech/Makefile | 35 +++++++++++++++ accessibility/gnomespeech/distinfo | 1 + accessibility/gnomespeech/files/patch-configure | 11 +++++ .../files/patch-gnome-speech_Makefile.in | 16 +++++++ accessibility/gnomespeech/files/patch-ltmain.sh | 51 ++++++++++++++++++++++ accessibility/gnomespeech/pkg-descr | 1 + accessibility/gnomespeech/pkg-plist | 19 ++++++++ 7 files changed, 134 insertions(+) create mode 100644 accessibility/gnomespeech/Makefile create mode 100644 accessibility/gnomespeech/distinfo create mode 100644 accessibility/gnomespeech/files/patch-configure create mode 100644 accessibility/gnomespeech/files/patch-gnome-speech_Makefile.in create mode 100644 accessibility/gnomespeech/files/patch-ltmain.sh create mode 100644 accessibility/gnomespeech/pkg-descr create mode 100644 accessibility/gnomespeech/pkg-plist (limited to 'accessibility/gnomespeech') 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 +# +# $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 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 -- cgit v1.2.3