diff --git a/audio/flite/Makefile b/audio/flite/Makefile new file mode 100644 index 00000000000..41c786de106 --- /dev/null +++ b/audio/flite/Makefile @@ -0,0 +1,28 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ + +COMMENT= "text to speech utility" + +VERSION= 1.2 +DISTNAME= flite-${VERSION}-release +PKGNAME= flite-${VERSION} +DISTNAME= ${PKGNAME}-release +CATEGORIES= audio + +HOMEPAGE= http://www.cmuflite.org/ + +MAINTAINER= Jason L. Wright + +PERMIT_PACKAGE_CDROM= No, mods have to be clearly marked +PERMIT_PACKAGE_FTP= No, mods have to be clearly marked +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://www.speech.cs.cmu.edu/flite/packed/flite-${VERSION}/ + +CONFIGURE_STYLE= gnu dest +CONFIGURE_ARGS= ${CONFIGURE_SHARED} + +USE_GMAKE= Yes +NO_REGRESS= Yes + +.include diff --git a/audio/flite/distinfo b/audio/flite/distinfo new file mode 100644 index 00000000000..4763c629434 --- /dev/null +++ b/audio/flite/distinfo @@ -0,0 +1,3 @@ +MD5 (flite-1.2-release.tar.gz) = 359e6a36c1b4789c099a23c731c27ca9 +RMD160 (flite-1.2-release.tar.gz) = 923b7e2781d086b1ed9cf660074157dddd6f4f56 +SHA1 (flite-1.2-release.tar.gz) = 64f85b5c4e77034fdfe41e11231c34171db7c3a0 diff --git a/audio/flite/patches/patch-configure b/audio/flite/patches/patch-configure new file mode 100644 index 00000000000..ee6a2a51dd5 --- /dev/null +++ b/audio/flite/patches/patch-configure @@ -0,0 +1,13 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ +--- configure.orig Sun Apr 20 23:05:35 2003 ++++ configure Sun Apr 20 23:04:27 2003 +@@ -1120,6 +1120,9 @@ if test "$shared" = true; then + SHFLAGS="-fPIC" + OTHERLIBS="-lsocket -ldl" + ;; ++ openbsd*) ++ SHFLAGS="-shared -fPIC" ++ ;; + *) + ;; + esac diff --git a/audio/flite/patches/patch-configure_in b/audio/flite/patches/patch-configure_in new file mode 100644 index 00000000000..cba73429b9e --- /dev/null +++ b/audio/flite/patches/patch-configure_in @@ -0,0 +1,13 @@ +$OpenBSD: patch-configure_in,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ +--- configure.in.orig Sun Apr 20 23:05:32 2003 ++++ configure.in Sun Apr 20 23:04:58 2003 +@@ -68,6 +68,9 @@ if test "$shared" = true; then + SHFLAGS="-fPIC" + OTHERLIBS="-lsocket -ldl" + ;; ++ openbsd*) ++ SHFLAGS="-shared -fPIC" ++ ;; + *) + ;; + esac diff --git a/audio/flite/patches/patch-lib_Makefile b/audio/flite/patches/patch-lib_Makefile new file mode 100644 index 00000000000..ec18d26529e --- /dev/null +++ b/audio/flite/patches/patch-lib_Makefile @@ -0,0 +1,17 @@ +$OpenBSD: patch-lib_Makefile,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ +--- lib/Makefile.orig Sun Apr 20 23:36:07 2003 ++++ lib/Makefile Sun Apr 20 23:55:23 2003 +@@ -47,6 +47,7 @@ SHAREDLIBS = $(LIBNAMES:%=lib%.so) + VERSIONSHAREDLIBS = $(SHAREDLIBS:%=%.${PROJECT_VERSION}) \ + $(SHAREDLIBS:%=%.${PROJECT_SHLIB_VERSION}) + ALL_LIBS = $(STATICLIBS) $(SHAREDLIBS) $(VERSIONSHAREDLIBS) ++INSTLIBS = $(STATICLIBS) $(SHAREDLIBS:%=%.${PROJECT_VERSION}) + + ALL = shared_libs + +@@ -61,4 +62,4 @@ shared_libs: nothing + endif + + install: +- @ tar cvf - $(ALL_LIBS) | ( cd $(INSTALLLIBDIR) && tar xf -) ++ @ tar cvf - $(INSTLIBS) | ( cd $(INSTALLLIBDIR) && tar xf -) diff --git a/audio/flite/patches/patch-src_audio_au_sun_c b/audio/flite/patches/patch-src_audio_au_sun_c new file mode 100644 index 00000000000..4a5eff0b6a8 --- /dev/null +++ b/audio/flite/patches/patch-src_audio_au_sun_c @@ -0,0 +1,23 @@ +$OpenBSD: patch-src_audio_au_sun_c,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ +--- src/audio/au_sun.c.orig Mon Jan 7 18:25:52 2002 ++++ src/audio/au_sun.c Sun Apr 20 18:12:34 2003 +@@ -45,6 +45,7 @@ + #include + #include + #include ++#include + #include + #include + #include "cst_string.h" +@@ -76,7 +77,11 @@ cst_audiodev *audio_open_sun(int sps, in + cst_error(); + } + } ++#ifdef __OpenBSD__ ++ AUDIO_INITINFO(&ainfo); ++#else + ioctl(fd,AUDIO_GETINFO,&ainfo); ++#endif + + switch (fmt) + { diff --git a/audio/flite/pkg/DESCR b/audio/flite/pkg/DESCR new file mode 100644 index 00000000000..c938aa1d337 --- /dev/null +++ b/audio/flite/pkg/DESCR @@ -0,0 +1,8 @@ +Flite is a small fast run-time speech synthesis engine. It is the +latest addition to the suite of free software synthesis tools +including University of Edinburgh's Festival Speech Synthesis System +and Carnegie Mellon University's FestVox project, tools, scripts and +documentation for building synthetic voices. However, flite itself +does not require either of these systems to compile and run. + +WWW: ${HOMEPAGE} diff --git a/audio/flite/pkg/PFRAG.shared b/audio/flite/pkg/PFRAG.shared new file mode 100644 index 00000000000..64e98ed2a1e --- /dev/null +++ b/audio/flite/pkg/PFRAG.shared @@ -0,0 +1,8 @@ +@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ +lib/libflite.so.1.2 +lib/libflite_cmu_time_awb.so.1.2 +lib/libflite_cmu_us_kal.so.1.2 +lib/libflite_cmu_us_kal16.so.1.2 +lib/libflite_cmulex.so.1.2 +lib/libflite_usenglish.so.1.2 +DYNLIBDIR(%B) diff --git a/audio/flite/pkg/PLIST b/audio/flite/pkg/PLIST new file mode 100644 index 00000000000..bc80109b7d8 --- /dev/null +++ b/audio/flite/pkg/PLIST @@ -0,0 +1,48 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2003/04/23 05:33:19 jason Exp $ +bin/flite +bin/flite_time +include/flite/cst_alloc.h +include/flite/cst_args.h +include/flite/cst_audio.h +include/flite/cst_cart.h +include/flite/cst_clunits.h +include/flite/cst_diphone.h +include/flite/cst_endian.h +include/flite/cst_error.h +include/flite/cst_features.h +include/flite/cst_file.h +include/flite/cst_hrg.h +include/flite/cst_item.h +include/flite/cst_lexicon.h +include/flite/cst_lts.h +include/flite/cst_lts_rewrites.h +include/flite/cst_phoneset.h +include/flite/cst_regex.h +include/flite/cst_relation.h +include/flite/cst_sigpr.h +include/flite/cst_socket.h +include/flite/cst_ss.h +include/flite/cst_string.h +include/flite/cst_sts.h +include/flite/cst_synth.h +include/flite/cst_tokenstream.h +include/flite/cst_track.h +include/flite/cst_units.h +include/flite/cst_utt_utils.h +include/flite/cst_utterance.h +include/flite/cst_val.h +include/flite/cst_val_const.h +include/flite/cst_val_defs.h +include/flite/cst_viterbi.h +include/flite/cst_voice.h +include/flite/cst_wave.h +include/flite/flite.h +include/flite/flite_version.h +lib/libflite.a +lib/libflite_cmu_time_awb.a +lib/libflite_cmu_us_kal.a +lib/libflite_cmu_us_kal16.a +lib/libflite_cmulex.a +lib/libflite_usenglish.a +%%SHARED%% +@dirrm include/flite