Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2008 17:45:56 GMT
From:      Richard Neese <r.neese@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/121609: New Port
Message-ID:  <200803111745.m2BHjuu4009779@www.freebsd.org>
Resent-Message-ID: <200803111750.m2BHo0Hd047717@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         121609
>Category:       ports
>Synopsis:       New Port
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 11 17:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Richard Neese
>Release:        6.3-Stable
>Organization:
>Environment:
FreeBSD laptop.boldlygoingnowhere.net 6.3-STABLE FreeBSD 6.3-STABLE #1: Wed Mar  5 22:04:18 PST 2008     root@laptop.boldlygoingnowhere.net:/usr/src/sys/i386/compile/LAPTOP  i386
>Description:
New Port

This is a update to the Flite 1.2 port to update it to Flite 1.3. Festival Lite Text to Speech engine.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	flite13
#	flite13/files
#	flite13/files/patch-lang::cmulex::make_cmulex
#	flite13/files/patch-configure
#	flite13/files/patch-include::cst_sts.h
#	flite13/files/patch-Makefile
#	flite13/files/patch-configure.in
#	flite13/files/patch-scr::audio::au_sun.c
#	flite13/files/patch-tools::huff_table
#	flite13/files/patch-tools::funds_sts_main.c
#	flite13/files/patch-config::common_make_rules
#	flite13/Makefile
#	flite13/distinfo
#	flite13/pkg-descr
#	flite13/pkg-plist
#
echo c - flite13
mkdir -p flite13 > /dev/null 2>&1
echo c - flite13/files
mkdir -p flite13/files > /dev/null 2>&1
echo x - flite13/files/patch-lang::cmulex::make_cmulex
sed 's/^X//' >flite13/files/patch-lang::cmulex::make_cmulex << 'END-of-flite13/files/patch-lang::cmulex::make_cmulex'
X
X$FreeBSD$
X
X--- lang/cmulex/make_cmulex.orig
X+++ lang/cmulex/make_cmulex
X@@ -36,7 +36,7 @@
X ##                                                                       ##
X ###########################################################################
X 
X-if [ "x$FLITEDIR" == "x" ]
X+if [ "x$FLITEDIR" = "x" ]
X then
X    FLITEDIR=`pwd`/../..
X fi
END-of-flite13/files/patch-lang::cmulex::make_cmulex
echo x - flite13/files/patch-configure
sed 's/^X//' >flite13/files/patch-configure << 'END-of-flite13/files/patch-configure'
X
X$FreeBSD$
X
X--- configure.orig
X+++ configure
X@@ -2772,7 +2772,7 @@
X OTHERLIBS=
X if test "$shared" = true; then
X    case "$target_os" in
X-	linux*)
X+	linux*|*bsd*)
X 		SHFLAGS="-fPIC"
X         ;;
X 	solaris*)
X@@ -3989,7 +3989,7 @@
X 	    AUDIODEFS=-DCST_AUDIO_ALSA
X             AUDIOLIBS=-lasound
X 	    ;;
X-	*bsd)
X+	*bsd*)
X 	    AUDIODRIVER=oss
X 	    AUDIODEFS=-DCST_AUDIO_FREEBSD
X 	    ;;
X
X
END-of-flite13/files/patch-configure
echo x - flite13/files/patch-include::cst_sts.h
sed 's/^X//' >flite13/files/patch-include::cst_sts.h << 'END-of-flite13/files/patch-include::cst_sts.h'
X
X$FreeBSD$
X
X--- include/cst_sts.h
X+++ include/cst_sts.h
X@@ -47,9 +47,9 @@
X /* else where, this information plus the indexes in the Unit relation */
X /* allow reconstruction of the signal itself                          */
X struct cst_sts_struct {
X-    const unsigned short *frame;  
X-    const int size;      /* in samples */
X-    const unsigned char *residual;
X+    unsigned short *frame;  
X+    int size;      /* in samples */
X+    unsigned char *residual;
X };
X typedef struct cst_sts_struct cst_sts;
X 
END-of-flite13/files/patch-include::cst_sts.h
echo x - flite13/files/patch-Makefile
sed 's/^X//' >flite13/files/patch-Makefile << 'END-of-flite13/files/patch-Makefile'
X$FreeBSD$
X
X--- Makefile.orig
X+++ Makefile
X@@ -48,6 +48,7 @@ CONFIG=configure configure.in config.sub
X FILES = Makefile README ACKNOWLEDGEMENTS COPYING $(CONFIG)
X DIST_CLEAN = config.cache config.log config.status \
X 		config/config config/system.mak FileList
X+DOCDIR=	$(PREFIX)/share/doc/flite
X 
X HOST_ONLY_DIRS = tools main
X ALL = $(BUILD_DIRS)
X@@ -105,13 +106,15 @@ tags:
X 
X install:
X 	@echo Installing 
X-	mkdir -p $(INSTALLBINDIR)
X-	mkdir -p $(INSTALLLIBDIR)
X-	mkdir -p $(INSTALLINCDIR)
X-	$(INSTALL) -m 644 include/*.h $(INSTALLINCDIR)
X-	@ $(MAKE) -C lib --no-print-directory install
X-	$(INSTALL) -m 755 bin/flite $(INSTALLBINDIR)
X-	$(INSTALL) -m 755 bin/flite_time $(INSTALLBINDIR)
X+	mkdir -p $(INSTALLBINDIR)
X+	mkdir -p $(INSTALLLIBDIR)
X+	mkdir -p $(INSTALLINCDIR)
X+	mkdir -p $(DOCDIR)
X+	$(INSTALL) -m 644 include/*.h $(INSTALLINCDIR)
X+	$(INSTALL) -m 644 $(LIBDIR)/libflite* $(INSTALLLIBDIR)
X+	$(INSTALL) -m 755 bin/flite $(INSTALLBINDIR)
X+	$(INSTALL) -m 755 bin/flite_time $(INSTALLBINDIR)
X+	$(INSTALL) -m 644 README $(DOCDIR) 
X
X time-stamp :
X 	@ echo $(PROJECT_NAME) >.time-stamp
END-of-flite13/files/patch-Makefile
echo x - flite13/files/patch-configure.in
sed 's/^X//' >flite13/files/patch-configure.in << 'END-of-flite13/files/patch-configure.in'
X
X$FreeBSD$
X
X--- configure.in.orig
X+++ configure.in
X@@ -118,7 +118,7 @@
X OTHERLIBS=
X if test "$shared" = true; then
X    case "$target_os" in
X-	linux*)
X+	linux*|*bsd*)
X 		SHFLAGS="-fPIC"
X         ;;
X 	solaris*)
X@@ -233,7 +233,7 @@
X 	    AUDIODEFS=-DCST_AUDIO_ALSA
X             AUDIOLIBS=-lasound
X 	    ;;
X-	*bsd)
X+	*bsd*)
X 	    AUDIODRIVER=oss
X 	    AUDIODEFS=-DCST_AUDIO_FREEBSD
X 	    ;;
END-of-flite13/files/patch-configure.in
echo x - flite13/files/patch-scr::audio::au_sun.c
sed 's/^X//' >flite13/files/patch-scr::audio::au_sun.c << 'END-of-flite13/files/patch-scr::audio::au_sun.c'
X
X$FreeBSD$
X
X--- src/audio/au_sun.c.orig
X+++ src/audio/au_sun.c
X@@ -45,6 +45,7 @@
X #include <sys/stat.h>
X #include <fcntl.h>
X #include <errno.h>
X+#include <sys/ioctl.h>
X #include <sys/filio.h>
X #include <sys/audioio.h>
X #include "cst_string.h"
X@@ -76,7 +77,11 @@ cst_audiodev *audio_open_sun(int sps, in
X 	    cst_error();
X 	}
X     }
X+#ifdef __OpenBSD__
X+    AUDIO_INITINFO(&ainfo);
X+#else
X     ioctl(fd,AUDIO_GETINFO,&ainfo);
X+#endif
X 
X     switch (fmt)
X     {
END-of-flite13/files/patch-scr::audio::au_sun.c
echo x - flite13/files/patch-tools::huff_table
sed 's/^X//' >flite13/files/patch-tools::huff_table << 'END-of-flite13/files/patch-tools::huff_table'
X
X$FreeBSD$
X
X--- tools/huff_table.orig
X+++ tools/huff_table
X@@ -62,7 +62,7 @@ export LANG
X ## 0 is reserved, 1 is reserved too
X ALPHABET_SIZE=254
X 
X-if [ $1 == "entries" ]
X+if [ $1 = "entries" ]
X then 
X    infile=$2
X    outfile=$3
X@@ -74,7 +74,7 @@ then 
X          printf("\n");}' >huff.tmp.corpus
X fi
X 
X-if [ $1 == "phones" ]
X+if [ $1 = "phones" ]
X then 
X    infile=$2
X    outfile=$3
X@@ -83,7 +83,7 @@ then 
X    sed 's/\\/ /g' >huff.tmp.corpus
X fi
X 
X-if [ $1 == "residual" ]
X+if [ $1 = "residual" ]
X then 
X    # This really doesn't work: just some tests to see what's worthwhile
X    infile=$2
X@@ -110,7 +110,7 @@ then 
X    sed 's/,//g;s/};//' >huff.tmp.corpus
X fi
X 
X-if [ $1 == "other" ]
X+if [ $1 = "other" ]
X then
X    infile=$2
X    outfile=$3
X@@ -242,7 +242,7 @@ awk 'BEGIN {'"$maptable"'}
X         printf("\n");
X      }' > huff.tmp.corpus.uncompressed
X 
X-if [ $1 == "phones" ]
X+if [ $1 = "phones" ]
X then
X    cat huff.tmp.corpus.best |
X    sed 's/+/\\/g' |
X@@ -259,7 +259,7 @@ then
X    mv huff.tmp.corpus.compressed huff.phones.compressed
X fi
X 
X-if [ $1 == "entries" ]
X+if [ $1 = "entries" ]
X then
X    cat huff.tmp.corpus.best |
X    sed 's/+//g' |
END-of-flite13/files/patch-tools::huff_table
echo x - flite13/files/patch-tools::funds_sts_main.c
sed 's/^X//' >flite13/files/patch-tools::funds_sts_main.c << 'END-of-flite13/files/patch-tools::funds_sts_main.c'
X
X$FreeBSD$
X
XTags: for-upstream
X
XThe standard headers must be included before the behavior gets undefined
Xby the following macro definition.
X
X--- tools/find_sts_main.c.orig	2005-01-01 15:04:43.000000000 +0100
X+++ tools/find_sts_main.c	2007-01-21 04:36:17.750982588 +0100
X@@ -40,6 +40,8 @@
X #include <stdio.h>
X #include <math.h>
X #include <string.h>
X+#include <stdlib.h>
X+#include <unistd.h>
X 
X /* To allow some normally const fields to manipulated during building */
X #define const
END-of-flite13/files/patch-tools::funds_sts_main.c
echo x - flite13/files/patch-config::common_make_rules
sed 's/^X//' >flite13/files/patch-config::common_make_rules << 'END-of-flite13/files/patch-config::common_make_rules'
X
X$FreeBSD$
X
X--- config/common_make_rules
X+++ config/common_make_rules
X@@ -126,8 +126,7 @@
X 	@ rm -rf shared_os && mkdir shared_os
X 	@ rm -f $@ $(LIBDIR)/$@.${PROJECT_VERSION} $(LIBDIR)/$@.${PROJECT_SHLIB_VERSION} 
X 	@ (cd shared_os && ar x ../$<)
X-	@ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_VERSION} *.os)
X-	@ ln -s $(LIBDIR)/$@.${PROJECT_VERSION} $(LIBDIR)/$@.${PROJECT_SHLIB_VERSION}
X+	@ (cd shared_os && $(CC) -shared -Wl,-soname,$@.${PROJECT_SHLIB_VERSION} -o ../$@.${PROJECT_SHLIB_VERSION} *.os)
X 	@ ln -s $(LIBDIR)/$@.${PROJECT_SHLIB_VERSION} $(LIBDIR)/$@
X 	@ rm -rf shared_os
X 
END-of-flite13/files/patch-config::common_make_rules
echo x - flite13/Makefile
sed 's/^X//' >flite13/Makefile << 'END-of-flite13/Makefile'
X# New ports collection makefile for:	flite
X# Date created:				19 January 2008
X#
X# $FreeBSD$
X#
X
XPORTNAME=	flite
XPORTVERSION=	1.3
XPORTREVISION=	1
XCATEGORIES=	audio
XMASTER_SITES=	http://www.speech.cs.cmu.edu/flite/packed/${PORTNAME}-${PORTVERSION}/
XDISTNAME=	${PORTNAME}-${PORTVERSION}-release
X
XMAINTAINER=	sobomax@FreeBSD.org
XCOMMENT=	A small run-time speech synthesis engine
X
XUSE_GMAKE=	yes
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--enable-shared=yes
XUSE_LDCONFIG=	yes
X
X.include <bsd.port.pre.mk>
X
XCFLAGS:=	${CFLAGS:N-O:N-O[0123456789]} -O0
X
X.include <bsd.port.post.mk>
END-of-flite13/Makefile
echo x - flite13/distinfo
sed 's/^X//' >flite13/distinfo << 'END-of-flite13/distinfo'
XMD5 (flite-1.3-release.tar.gz) = ae0aca1cb7b4801f4372f3a75a9e52b5
XSHA256 (flite-1.3-release.tar.gz) = 922225f7001e57a0fbace8833b0a48790a68f6c7b491f2d47c78ad537ab78a8b
XSIZE (flite-1.3-release.tar.gz) = 10663835
END-of-flite13/distinfo
echo x - flite13/pkg-descr
sed 's/^X//' >flite13/pkg-descr << 'END-of-flite13/pkg-descr'
XFlite is a small fast run-time speech synthesis engine.  It is the
Xlatest addition to the suite of free software synthesis tools
Xincluding University of Edinburgh's Festival Speech Synthesis System
Xand Carnegie Mellon University's FestVox project, tools, scripts and
Xdocumentation for building synthetic voices.  However, flite itself
Xdoes not require either of these systems to compile and run.
X
XFlite is the answer to the complaint that Festival is too big, too slow,
Xand not portable enough.
X
XWWW: http://cmuflite.org
END-of-flite13/pkg-descr
echo x - flite13/pkg-plist
sed 's/^X//' >flite13/pkg-plist << 'END-of-flite13/pkg-plist'
Xbin/flite
Xbin/flite_time
Xinclude/flite/cst_alloc.h
Xinclude/flite/cst_args.h
Xinclude/flite/cst_audio.h
Xinclude/flite/cst_cart.h
Xinclude/flite/cst_clunits.h
Xinclude/flite/cst_diphone.h
Xinclude/flite/cst_endian.h
Xinclude/flite/cst_error.h
Xinclude/flite/cst_features.h
Xinclude/flite/cst_file.h
Xinclude/flite/cst_hrg.h
Xinclude/flite/cst_item.h
Xinclude/flite/cst_lexicon.h
Xinclude/flite/cst_lts.h
Xinclude/flite/cst_lts_rewrites.h
Xinclude/flite/cst_math.h
Xinclude/flite/cst_phoneset.h
Xinclude/flite/cst_regex.h
Xinclude/flite/cst_relation.h
Xinclude/flite/cst_sigpr.h
Xinclude/flite/cst_socket.h
Xinclude/flite/cst_ss.h
Xinclude/flite/cst_string.h
Xinclude/flite/cst_sts.h
Xinclude/flite/cst_synth.h
Xinclude/flite/cst_tokenstream.h
Xinclude/flite/cst_track.h
Xinclude/flite/cst_units.h
Xinclude/flite/cst_utt_utils.h
Xinclude/flite/cst_utterance.h
Xinclude/flite/cst_val.h
Xinclude/flite/cst_val_const.h
Xinclude/flite/cst_val_defs.h
Xinclude/flite/cst_viterbi.h
Xinclude/flite/cst_voice.h
Xinclude/flite/cst_wave.h
Xinclude/flite/flite.h
Xinclude/flite/flite_version.h
Xlib/libflite.a
Xlib/libflite.shared.a
Xlib/libflite_cmu_time_awb.a
Xlib/libflite_cmu_time_awb.shared.a
Xlib/libflite_cmu_us_kal.a
Xlib/libflite_cmu_us_kal.shared.a
Xlib/libflite_cmu_us_kal16.a
Xlib/libflite_cmu_us_kal16.shared.a
Xlib/libflite_cmulex.a
Xlib/libflite_cmulex.shared.a
Xlib/libflite_usenglish.a
Xlib/libflite_usenglish.shared.a
X%%PORTDOCS%%%%DOCSDIR%%/README
X@dirrm share/pixmaps
X@dirrm share/locale/zh_TW/LC_MESSAGES
X@dirrm share/locale/zh_TW
X@dirrm share/locale/zh_CN/LC_MESSAGES
X@dirrm share/locale/zh_CN
X@dirrm share/locale/uz/LC_MESSAGES
X@dirrm share/locale/uz
X@dirrm share/locale/uk/LC_MESSAGES
X@dirrm share/locale/uk
X@dirrm share/locale/tk/LC_MESSAGES
X@dirrm share/locale/tk
X@dirrm share/locale/tg/LC_MESSAGES
X@dirrm share/locale/tg
X@dirrm share/locale/sr/LC_MESSAGES
X@dirrm share/locale/sr
X@dirrm share/locale/sl/LC_MESSAGES
X@dirrm share/locale/sl
X@dirrm share/locale/sk/LC_MESSAGES
X@dirrm share/locale/sk
X@dirrm share/locale/ro/LC_MESSAGES
X@dirrm share/locale/ro
X@dirrm share/locale/pt/LC_MESSAGES
X@dirrm share/locale/pt
X@dirrm share/locale/pl/LC_MESSAGES
X@dirrm share/locale/pl
X@dirrm share/locale/no/LC_MESSAGES
X@dirrm share/locale/no
X@dirrm share/locale/nn/LC_MESSAGES
X@dirrm share/locale/nn
X@dirrm share/locale/ne/LC_MESSAGES
X@dirrm share/locale/ne
X@dirrm share/locale/li/LC_MESSAGES
X@dirrm share/locale/li
X@dirrm share/locale/ko/LC_MESSAGES
X@dirrm share/locale/ko
X@dirrm share/locale/gl/LC_MESSAGES
X@dirrm share/locale/gl
X@dirrm share/locale/fr_FR/LC_MESSAGES
X@dirrm share/locale/fr_FR
X@dirrm share/locale/fi/LC_MESSAGES
X@dirrm share/locale/fi
X@dirrm share/locale/fa_IR/LC_MESSAGES
X@dirrm share/locale/fa_IR
X@dirrm share/locale/en_AU/LC_MESSAGES
X@dirrm share/locale/en_AU
X@dirrm share/locale/el/LC_MESSAGES
X@dirrm share/locale/el
X@dirrm share/locale/de_AT/LC_MESSAGES
X@dirrm share/locale/de_AT
X@dirrm share/locale/cs/LC_MESSAGES
X@dirrm share/locale/cs
X@dirrm share/locale/ca/LC_MESSAGES
X@dirrm share/locale/ca
X@dirrm share/locale/be/LC_MESSAGES
X@dirrm share/locale/be
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrm lib/X11/fonts/local
X@dirrm lib/X11/fonts
X@dirrm lib/X11/app-defaults
X@dirrm lib/X11
X@dirrm include/flite
X@dirrm include/X11
X@exec mkdir -p %D/share/pixmaps
X@exec mkdir -p %D/share/locale/zh_TW/LC_MESSAGES
X@exec mkdir -p %D/share/locale/zh_CN/LC_MESSAGES
X@exec mkdir -p %D/share/locale/uz/LC_MESSAGES
X@exec mkdir -p %D/share/locale/uk/LC_MESSAGES
X@exec mkdir -p %D/share/locale/tk/LC_MESSAGES
X@exec mkdir -p %D/share/locale/tg/LC_MESSAGES
X@exec mkdir -p %D/share/locale/sr/LC_MESSAGES
X@exec mkdir -p %D/share/locale/sl/LC_MESSAGES
X@exec mkdir -p %D/share/locale/sk/LC_MESSAGES
X@exec mkdir -p %D/share/locale/ro/LC_MESSAGES
X@exec mkdir -p %D/share/locale/pt/LC_MESSAGES
X@exec mkdir -p %D/share/locale/pl/LC_MESSAGES
X@exec mkdir -p %D/share/locale/no/LC_MESSAGES
X@exec mkdir -p %D/share/locale/nn/LC_MESSAGES
X@exec mkdir -p %D/share/locale/ne/LC_MESSAGES
X@exec mkdir -p %D/share/locale/li/LC_MESSAGES
X@exec mkdir -p %D/share/locale/ko/LC_MESSAGES
X@exec mkdir -p %D/share/locale/gl/LC_MESSAGES
X@exec mkdir -p %D/share/locale/fr_FR/LC_MESSAGES
X@exec mkdir -p %D/share/locale/fi/LC_MESSAGES
X@exec mkdir -p %D/share/locale/fa_IR/LC_MESSAGES
X@exec mkdir -p %D/share/locale/en_AU/LC_MESSAGES
X@exec mkdir -p %D/share/locale/el/LC_MESSAGES
X@exec mkdir -p %D/share/locale/de_AT/LC_MESSAGES
X@exec mkdir -p %D/share/locale/cs/LC_MESSAGES
X@exec mkdir -p %D/share/locale/ca/LC_MESSAGES
X@exec mkdir -p %D/share/locale/be/LC_MESSAGES
X@exec mkdir -p %D/lib/X11/fonts/local
X@exec mkdir -p %D/lib/X11/app-defaults
X@exec mkdir -p %D/include/X11
END-of-flite13/pkg-plist
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803111745.m2BHjuu4009779>