pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/audio/flite



Module Name:    pkgsrc
Committed By:   nia
Date:           Sat Sep  7 11:42:49 UTC 2019

Modified Files:
        pkgsrc/audio/flite: DESCR Makefile PLIST distinfo
        pkgsrc/audio/flite/patches: patch-config_common__make__rules
Added Files:
        pkgsrc/audio/flite/patches: patch-CVE-2014-0027
Removed Files:
        pkgsrc/audio/flite/patches: patch-aa patch-ab patch-ac

Log Message:
flite: Update to 2.1

* Indic language support
* Patch CVE-2014-0027 locally


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/audio/flite/DESCR
cvs rdiff -u -r1.9 -r1.10 pkgsrc/audio/flite/Makefile \
    pkgsrc/audio/flite/distinfo
cvs rdiff -u -r1.3 -r1.4 pkgsrc/audio/flite/PLIST
cvs rdiff -u -r0 -r1.1 pkgsrc/audio/flite/patches/patch-CVE-2014-0027
cvs rdiff -u -r1.3 -r0 pkgsrc/audio/flite/patches/patch-aa
cvs rdiff -u -r1.1 -r0 pkgsrc/audio/flite/patches/patch-ab \
    pkgsrc/audio/flite/patches/patch-ac
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/audio/flite/patches/patch-config_common__make__rules

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/audio/flite/DESCR
diff -u pkgsrc/audio/flite/DESCR:1.1.1.1 pkgsrc/audio/flite/DESCR:1.2
--- pkgsrc/audio/flite/DESCR:1.1.1.1    Mon Jan 16 14:18:42 2006
+++ pkgsrc/audio/flite/DESCR    Sat Sep  7 11:42:49 2019
@@ -1,4 +1,5 @@
-Flite (festival-lite) is a small, fast run-time synthesis engine developed
-at CMU and primarily designed for small embedded machines and/or large
-servers. Flite is designed as an alternative synthesis engine to Festival
-for voices built using the FestVox suite of voice building tools.
+CMU Flite (festival-lite) is a small, fast run-time open source text to
+speech synthesis engine developed at CMU and primarily designed for small
+embedded machines and/or large servers. Flite is designed as an alternative
+text to speech synthesis engine to Festival for voices built using the
+FestVox suite of voice building tools.

Index: pkgsrc/audio/flite/Makefile
diff -u pkgsrc/audio/flite/Makefile:1.9 pkgsrc/audio/flite/Makefile:1.10
--- pkgsrc/audio/flite/Makefile:1.9     Mon Jan  6 22:11:01 2014
+++ pkgsrc/audio/flite/Makefile Sat Sep  7 11:42:49 2019
@@ -1,22 +1,31 @@
-# $NetBSD: Makefile,v 1.9 2014/01/06 22:11:01 joerg Exp $
+# $NetBSD: Makefile,v 1.10 2019/09/07 11:42:49 nia Exp $
 #
 
-DISTNAME=      flite-1.3-release
+DISTNAME=      flite-2.1-release
 PKGNAME=       ${DISTNAME:S/-release//}
-PKGREVISION=   3
 CATEGORIES=    audio
-MASTER_SITES=  http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/
+MASTER_SITES=  http://www.festvox.org/flite/packed/flite-2.1/
+EXTRACT_SUFX=  .tar.bz2
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://www.speech.cs.cmu.edu/flite/
-COMMENT=       Small and fast run-time synthesis engine
+HOMEPAGE=      http://www.festvox.org/flite/
+COMMENT=       Lightweight text to speech synthesis engine
 
 # Error opening output file '[...]/cmu_us_kal_diphone.o': No such file or directory
 MAKE_JOBS_SAFE=        no
 
-USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            gmake pkg-config
-GNU_CONFIGURE=         yes
+USE_TOOLS+=    gmake
+GNU_CONFIGURE= yes
+
+INSTALLATION_DIRS+=    bin include/flite lib share/doc/flite
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/bin/flite ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/bin/flite_cmu* ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_PROGRAM} ${WRKSRC}/bin/flite_time ${DESTDIR}${PREFIX}/bin
+       ${INSTALL_LIB} ${WRKSRC}/build/platform/lib/libflite* ${DESTDIR}${PREFIX}/lib
+       ${INSTALL_DATA} ${WRKSRC}/include/*.h ${DESTDIR}${PREFIX}/include/flite
+       ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/flite
 
 .include "../../mk/oss.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/audio/flite/distinfo
diff -u pkgsrc/audio/flite/distinfo:1.9 pkgsrc/audio/flite/distinfo:1.10
--- pkgsrc/audio/flite/distinfo:1.9     Tue Nov  3 01:12:31 2015
+++ pkgsrc/audio/flite/distinfo Sat Sep  7 11:42:49 2019
@@ -1,12 +1,10 @@
-$NetBSD: distinfo,v 1.9 2015/11/03 01:12:31 agc Exp $
+$NetBSD: distinfo,v 1.10 2019/09/07 11:42:49 nia Exp $
 
-SHA1 (flite-1.3-release.tar.gz) = 233144a772de72741ae1aa2292f672c30224afb3
-RMD160 (flite-1.3-release.tar.gz) = a908acfd196754783ee4665ac84ea860d54bcf80
-SHA512 (flite-1.3-release.tar.gz) = f528dcd103a4c000b62059c4e94dd3673737be92e4cf93474e95b1bbbc596fe487c973cce2ef91a71181ba9a84e9580311ce40bac96bc9ba3544b17074d78d25
-Size (flite-1.3-release.tar.gz) = 10663835 bytes
-SHA1 (patch-aa) = 274aa3dcb0ccce85064da9cdb9bb56b8aa68dfbc
-SHA1 (patch-ab) = 253876a3edc65b60a5891375b2a90a4fcc01da24
-SHA1 (patch-ac) = 9e533a22ed3a59cb6d99b6bbd6eacdfaa1695285
+SHA1 (flite-2.1-release.tar.bz2) = ed8f1ae3c44dafc2bcc70df4ebf618330f7edec9
+RMD160 (flite-2.1-release.tar.bz2) = ebd73639e65043467dffe5d9e7700f6ced5bfe1b
+SHA512 (flite-2.1-release.tar.bz2) = e9ef9ca4b6920178634d94bbe6e21a8b0ec471b010b07e6cc961ed2d120acb944c8e1d268fe26188f7dfe43fb7bd4bdff7fa53b2d2f12029d37e08d0316620d2
+Size (flite-2.1-release.tar.bz2) = 14816327 bytes
+SHA1 (patch-CVE-2014-0027) = aae5a7e965cfe41af05c3917f6574f223185aeff
 SHA1 (patch-ad) = e75da7826581a1d93d4f5efe75f257cc749358a7
 SHA1 (patch-ae) = c1bd0e1baea7464d3ef0d35481714f92af3da4d8
-SHA1 (patch-config_common__make__rules) = b7ac878a2d4008a796e3d53ac355b9ede6ff8249
+SHA1 (patch-config_common__make__rules) = 949ec45c35872fd39c44864b484423ab28467898

Index: pkgsrc/audio/flite/PLIST
diff -u pkgsrc/audio/flite/PLIST:1.3 pkgsrc/audio/flite/PLIST:1.4
--- pkgsrc/audio/flite/PLIST:1.3        Sun Jun 14 17:32:08 2009
+++ pkgsrc/audio/flite/PLIST    Sat Sep  7 11:42:49 2019
@@ -1,15 +1,23 @@
-@comment $NetBSD: PLIST,v 1.3 2009/06/14 17:32:08 joerg Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/09/07 11:42:49 nia Exp $
 bin/flite
+bin/flite_cmu_time_awb
+bin/flite_cmu_us_awb
+bin/flite_cmu_us_kal
+bin/flite_cmu_us_kal16
+bin/flite_cmu_us_rms
+bin/flite_cmu_us_slt
 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_cg.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_ffeatures.h
 include/flite/cst_file.h
 include/flite/cst_hrg.h
 include/flite/cst_item.h
@@ -37,12 +45,20 @@ include/flite/cst_val_defs.h
 include/flite/cst_viterbi.h
 include/flite/cst_voice.h
 include/flite/cst_wave.h
+include/flite/cst_wchar.h
 include/flite/flite.h
 include/flite/flite_version.h
 lib/libflite.a
+lib/libflite_cmu_grapheme_lang.a
+lib/libflite_cmu_grapheme_lex.a
+lib/libflite_cmu_indic_lang.a
+lib/libflite_cmu_indic_lex.a
 lib/libflite_cmu_time_awb.a
+lib/libflite_cmu_us_awb.a
 lib/libflite_cmu_us_kal.a
 lib/libflite_cmu_us_kal16.a
+lib/libflite_cmu_us_rms.a
+lib/libflite_cmu_us_slt.a
 lib/libflite_cmulex.a
 lib/libflite_usenglish.a
-share/doc/flite/README
+share/doc/flite/README.md

Index: pkgsrc/audio/flite/patches/patch-config_common__make__rules
diff -u pkgsrc/audio/flite/patches/patch-config_common__make__rules:1.2 pkgsrc/audio/flite/patches/patch-config_common__make__rules:1.3
--- pkgsrc/audio/flite/patches/patch-config_common__make__rules:1.2     Mon Nov 18 02:22:30 2013
+++ pkgsrc/audio/flite/patches/patch-config_common__make__rules Sat Sep  7 11:42:49 2019
@@ -1,4 +1,11 @@
-$NetBSD: patch-config_common__make__rules,v 1.2 2013/11/18 02:22:30 dholland Exp $
+$NetBSD: patch-config_common__make__rules,v 1.3 2019/09/07 11:42:49 nia Exp $
+
+hunk 1:
+
+Don't use a platform-specific build directory to make installation
+easier.
+
+hunk 2:
 
 Work around PR 48385, a tmpfs bug that combined with this package's
 build system causes gmake 4.0 to loop forever making depend.
@@ -11,14 +18,24 @@ It is, in any event, almost never a good
 in makefiles. The workaround is to not do that and explicitly run a
 sub-make to create the object directory.
 
---- config/common_make_rules.orig      2004-12-19 22:20:43.000000000 +0000
+--- config/common_make_rules.orig      2017-10-21 14:01:07.000000000 +0000
 +++ config/common_make_rules
-@@ -188,7 +188,10 @@ ifdef ALL_DIRS
+@@ -55,7 +55,7 @@ CFLAGS += $(EXTRA_CC_FLAGS) $(OPT) $(DBG
+ TARGET_PLATFORM=$(TARGET_CPU)-$(TARGET_OS)
+ HOST_PLATFORM=$(HOST_CPU)-$(HOST_OS)
+ ifndef BUILDDIR
+-BUILDDIR=$(TOP)/build/$(TARGET_PLATFORM)
++BUILDDIR=$(TOP)/build/platform
+ endif
+ OBJDIR=$(BUILDDIR)/obj/$(DIRNAME)
+ BINDIR=$(BUILDDIR)/bin
+@@ -172,8 +172,11 @@ ifdef ALL_DIRS
        done
  endif
  
 -$(DEPEND): $(SRCS) $(OBJDIR)
 +$(DEPEND): $(SRCS)
+ ifdef BUILD_DIRS
 +      @ echo Doing implicit make depend.
 +      @ touch $(DEPEND)
 +      @ $(MAKE) $(OBJDIR)

Added files:

Index: pkgsrc/audio/flite/patches/patch-CVE-2014-0027
diff -u /dev/null pkgsrc/audio/flite/patches/patch-CVE-2014-0027:1.1
--- /dev/null   Sat Sep  7 11:42:49 2019
+++ pkgsrc/audio/flite/patches/patch-CVE-2014-0027      Sat Sep  7 11:42:49 2019
@@ -0,0 +1,42 @@
+$NetBSD: patch-CVE-2014-0027,v 1.1 2019/09/07 11:42:49 nia Exp $
+
+Only write audio data to a file in debug builds.
+
+This isn't useful in regular builds and is actually a security concern.
+
+https://github.com/festvox/flite/pull/3
+
+--- src/audio/auserver.c.orig  2017-10-21 14:01:07.000000000 +0000
++++ src/audio/auserver.c
+@@ -67,9 +67,11 @@ static int play_wave_from_socket(snd_hea
+     int q,i,n,r;
+     unsigned char bytes[CST_AUDIOBUFFSIZE];
+     short shorts[CST_AUDIOBUFFSIZE];
++#ifdef DEBUG
+     cst_file fff;
+ 
+     fff = cst_fopen("/tmp/awb.wav",CST_OPEN_WRITE|CST_OPEN_BINARY);
++#endif
+ 
+     if ((audio_device = audio_open(header->sample_rate,1,
+                                  (header->encoding == CST_SND_SHORT) ?
+@@ -116,7 +118,9 @@ static int play_wave_from_socket(snd_hea
+       for (q=r; q > 0; q-=n)
+       {
+           n = audio_write(audio_device,shorts,q);
++#ifdef DEBUG
+           cst_fwrite(fff,shorts,2,q);
++#endif
+           if (n <= 0)
+           {
+               audio_close(audio_device);
+@@ -125,7 +129,9 @@ static int play_wave_from_socket(snd_hea
+       }
+     }
+     audio_close(audio_device);
++#ifdef DEBUG
+     cst_fclose(fff);
++#endif
+ 
+     return CST_OK_FORMAT;
+ 



Home | Main Index | Thread Index | Old Index