espeak: new package
PATCH v10 1/1 espeak: new package
---
Changes v9 -> v10:
- update Signed-off mail address
Changes v8 -> v9:
- use VERSION_MAJOR
Changes v7 -> v8:
- convert package name to lowercase
- fix comments following new policy
Changes v6 -> v7:
- remove comment fromm v5 again
Changes v5 -> v6:
- fix indent
- rename patch
- fix licence to GPLv3+
Changes v4 -> v5:
- remove useless comment line
Changes v3 -> v4:
- remove extre new lines
- remove useless help
- remove -source from ESPEAK_VERSION
- update extract command to remove -source
--- package/Config.in | 1 + package/espeak/Config.in | 41 ++++++++++++++++++++ .../espeak-01-do-not-compil-when-install.patch | 15 ++++++++ package/espeak/espeak.mk | 44 ++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 package/espeak/Config.in create mode 100644 package/espeak/espeak-01-do-not-compil-when-install.patch create mode 100644 package/espeak/espeak.mk
package/Config.in +1 -0
@@ -6,6 +6,7 @@ menu "Audio and video applications" source "package/alsa-utils/Config.in" source "package/aumix/Config.in" source "package/bellagio/Config.in" +source "package/espeak/Config.in" source "package/faad2/Config.in" source "package/ffmpeg/Config.in" source "package/flac/Config.in"
package/espeak/Config.in new file +41 -0
41 lines not on this page · raw message
package/espeak/espeak-01-do-not-compil-when-install.patch new file +15 -0
@@ -0,0 +1,15 @@ +Makefile: do not execute the rule "all" when executing "install" + +signed-off-by: Arnaud Aujon <[email protected]> +=================================================================== +--- espeak-1.47.11-source.orig/src/Makefile ++++ espeak-1.47.11-source/src/Makefile +@@ -131,7 +131,7 @@ + rm -f $(BIN2_NAME) + rm -f $(LIB_NAME)* + +-install: all ++install: + # Create directories + rm -rf $(DESTDIR)$(DATADIR) + $(MKDIR) $(DESTDIR)$(BINDIR)
package/espeak/espeak.mk new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
1.9.0
PATCH v10 1/1 espeak: new package
Hi all,
I've tested this patch on BeagleBone Black and works like a charm.
Good Job Arnaud!!!.
Regards,
Marcelo
2014-04-30 11:21 GMT-03:00 <[email protected]>:
Quoted 2 lines
Signed-off-by Arnaud Aujon <[email protected]>
Quoted 168 lines
---
Changes v9 -> v10:
- update Signed-off mail address
Changes v8 -> v9:
- useVERSION_MAJOR
Changes v7 -> v8:
- convert package name to lowercase
- fix comments following new policy
Changes v6 -> v7:
- remove comment fromm v5 again
Changes v5 -> v6:
- fix indent
- rename patch
- fix licence to GPLv3+
Changes v4 -> v5:
- remove useless comment line
Changes v3 -> v4:
- remove extre new lines
- remove useless help
- remove -source fromESPEAK_VERSION
- update extract command to remove -source--- package/Config.in | 1 + package/espeak/Config.in | 41 ++++++++++++++++++++ .../espeak-01-do-not-compil-when-install.patch | 15 ++++++++ package/espeak/espeak.mk | 44 ++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 package/espeak/Config.in create mode 100644 package/espeak/espeak-01-do-not-compil-when-install.patch create mode 100644 package/espeak/espeak.mkpackage/Config.in +1
-0@@ -6,6 +6,7 @@ menu "Audio and video applications" source "package/alsa-utils/Config.in" source "package/aumix/Config.in" source "package/bellagio/Config.in" +source "package/espeak/Config.in" source "package/faad2/Config.in" source "package/ffmpeg/Config.in" source "package/flac/Config.in"package/espeak/Config.in new file +41
-0@@ -0,0 +1,41 @@ +comment "espeak needs a toolchain w/ C++, wchar" + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR) + +config BR2_PACKAGE_ESPEAK + bool "espeak" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + help + espeak is a speech synthesizer software for English and other languages. + + http://espeak.sourceforge.net/ + +if BR2_PACKAGE_ESPEAK +choice +prompt "choose audio backend" +default BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE + +config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE + bool "No sound backend, only produce wav files" + +comment "alsa backend needs a toolchain w/ threads" +depends on !BR2_TOOLCHAIN_HAS_THREADS + +config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA + bool "alsa via portaudio" + select BR2_PACKAGE_PORTAUDIO + select BR2_PACKAGE_PORTAUDIO_CXX + depends on BR2_TOOLCHAIN_HAS_THREADS # portaudio + +comment "pulseaudio backend needs a toolchain w/ wchar, largefile, threads" +depends on !(BR2_TOOLCHAIN_HAS_THREADS && BR2_USE_WCHAR && BR2_LARGEFILE) + +config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO + bool "pulseaudio" + select BR2_PACKAGE_PULSEAUDIO + depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio + depends on BR2_USE_WCHAR # pulseaudio + depends on BR2_LARGEFILE # pulseaudio + +endchoice +endif # BR2_PACKAGE_ESPEAKpackage/espeak/espeak-01-do-not-compil-when-install.patch new file +15
-0@@ -0,0 +1,15 @@ +Makefile: do not execute the rule "all" when executing "install" + +signed-off-by: Arnaud Aujon <[email protected]> +=================================================================== +--- espeak-1.47.11-source.orig/src/Makefile ++++ espeak-1.47.11-source/src/Makefile +@@ -131,7 +131,7 @@ + rm -f $(BIN2_NAME) + rm -f $(LIB_NAME)* + +-install: all ++install: + # Create directories + rm -rf $(DESTDIR)$(DATADIR) + $(MKDIR) $(DESTDIR)$(BINDIR)package/espeak/espeak.mk new file +44
-1@@ -0,0 +1,44 @@ +############################################################################### +# +# espeak +# +############################################################################### + +ESPEAK_VERSION_MAJOR = 1.47 +ESPEAK_VERSION = $(ESPEAK_VERSION_MAJOR).11 +ESPEAK_SOURCE = espeak-$(ESPEAK_VERSION)-source.zip +ESPEAK_SITE = http://downloads.sourceforge.net/project/espeak/espeak/espeak-$(ESPEAK_VERSION_MAJOR) +ESPEAK_LICENSE = GPLv3+ +ESPEAK_LICENSE_FILES = Licence.txt + +ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA),y) +ESPEAK_AUDIO_BACKEND = portaudio +ESPEAK_DEPENDENCIES = portaudio +endif +ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO),y) +ESPEAK_AUDIO_BACKEND = pulseaudio +ESPEAK_DEPENDENCIES = pulseaudio +endif + +define ESPEAK_EXTRACT_CMDS + unzip -d $(@D) $(DL_DIR)/$(ESPEAK_SOURCE) + mv $(@D)/espeak-$(ESPEAK_VERSION)-source/* $(@D) + $(RM) -r $(@D)/espeak-$(ESPEAK_VERSION)-source +endef + +define ESPEAK_CONFIGURE_CMDS + # Buildroot provides portaudio V19, see ReadMe file for more details. + cp $(@D)/src/portaudio19.h $(@D)/src/portaudio.h +endef + +define ESPEAK_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + AUDIO="$(ESPEAK_AUDIO_BACKEND)" \ + -C $(@D)/src all +endef + +define ESPEAK_INSTALL_TARGET_CMDS + $(MAKE) install DESTDIR="$(TARGET_DIR)" -C $(@D)/src +endef + +$(eval $(generic-package)) --1.9.0
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v10 1/1 espeak: new package
Hi Marcelo,
Thanks for testing the package !
I think it's ready to be included now.
It would be great to include Mbrola voice pack, but I don't have much time to do it and they use a specific licence that we need to carefull with.
Regards,
Arnaud
Quoted 180 lines · Marcelo Gutierrez
Hi all,
I've tested this patch on BeagleBone Black and works like a charm.
Good Job Arnaud!!!.
Regards,
Marcelo2014-04-30 11:21 GMT-03:00 <[email protected]>:
Quoted 1 line
Signed-off-by Arnaud Aujon <[email protected]>Tested-by Marcelo Gutierrez <[email protected]>Quoted 168 lines
---
Changes v9 -> v10:
- update Signed-off mail address
Changes v8 -> v9:
- useVERSION_MAJOR
Changes v7 -> v8:
- convert package name to lowercase
- fix comments following new policy
Changes v6 -> v7:
- remove comment fromm v5 again
Changes v5 -> v6:
- fix indent
- rename patch
- fix licence to GPLv3+
Changes v4 -> v5:
- remove useless comment line
Changes v3 -> v4:
- remove extre new lines
- remove useless help
- remove -source fromESPEAK_VERSION
- update extract command to remove -source--- package/Config.in | 1 + package/espeak/Config.in | 41 ++++++++++++++++++++ .../espeak-01-do-not-compil-when-install.patch | 15 ++++++++ package/espeak/espeak.mk | 44 ++++++++++++++++++++++ 4 files changed, 101 insertions(+)create mode 100644 package/espeak/Config.in
create mode 100644package/espeak/espeak-01-do-not-compil-when-install.patchcreate mode 100644package/espeak/espeak.mkpackage/Config.in +1
-0@@ -6,6 +6,7 @@ menu "Audio and video applications" source "package/alsa-utils/Config.in" source "package/aumix/Config.in" source "package/bellagio/Config.in" +source "package/espeak/Config.in" source "package/faad2/Config.in" source "package/ffmpeg/Config.in" source "package/flac/Config.in"package/espeak/Config.in new file +41
-0@@ -0,0 +1,41 @@ +comment "espeak needs a toolchain w/ C++, wchar" + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR) + +config BR2_PACKAGE_ESPEAK + bool "espeak" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + help + espeak is a speech synthesizer software for English and other languages. + + http://espeak.sourceforge.net/ + +if BR2_PACKAGE_ESPEAK +choice +prompt "choose audio backend" +default BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE + +config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE + bool "No sound backend, only produce wav files" + +comment "alsa backend needs a toolchain w/ threads" +depends on !BR2_TOOLCHAIN_HAS_THREADS + +config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA + bool "alsa via portaudio" + select BR2_PACKAGE_PORTAUDIO + select BR2_PACKAGE_PORTAUDIO_CXX + depends on BR2_TOOLCHAIN_HAS_THREADS # portaudio + +comment "pulseaudio backend needs a toolchain w/ wchar, largefile, threads" +depends on !(BR2_TOOLCHAIN_HAS_THREADS && BR2_USE_WCHAR && BR2_LARGEFILE) + +config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO + bool "pulseaudio" + select BR2_PACKAGE_PULSEAUDIO + depends on BR2_TOOLCHAIN_HAS_THREADS # pulseaudio + depends on BR2_USE_WCHAR # pulseaudio + depends on BR2_LARGEFILE # pulseaudio + +endchoice +endif # BR2_PACKAGE_ESPEAKpackage/espeak/espeak-01-do-not-compil-when-install.patch new file +15
-0@@ -0,0 +1,15 @@ +Makefile: do not execute the rule "all" when executing "install" + +signed-off-by: Arnaud Aujon <[email protected]> +=================================================================== +--- espeak-1.47.11-source.orig/src/Makefile ++++ espeak-1.47.11-source/src/Makefile +@@ -131,7 +131,7 @@ + rm -f $(BIN2_NAME) + rm -f $(LIB_NAME)* + +-install: all ++install: + # Create directories + rm -rf $(DESTDIR)$(DATADIR) + $(MKDIR) $(DESTDIR)$(BINDIR)package/espeak/espeak.mk new file +44
-1@@ -0,0 +1,44 @@ +############################################################################### +# +# espeak +# +############################################################################### + +ESPEAK_VERSION_MAJOR = 1.47 +ESPEAK_VERSION = $(ESPEAK_VERSION_MAJOR).11 +ESPEAK_SOURCE = espeak-$(ESPEAK_VERSION)-source.zip +ESPEAK_SITE = http://downloads.sourceforge.net/project/espeak/espeak/espeak-$(ESPEAK_VERSION_MAJOR) +ESPEAK_LICENSE = GPLv3+ +ESPEAK_LICENSE_FILES = Licence.txt + +ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA),y) +ESPEAK_AUDIO_BACKEND = portaudio +ESPEAK_DEPENDENCIES = portaudio +endif +ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO),y) +ESPEAK_AUDIO_BACKEND = pulseaudio +ESPEAK_DEPENDENCIES = pulseaudio +endif + +define ESPEAK_EXTRACT_CMDS + unzip -d $(@D) $(DL_DIR)/$(ESPEAK_SOURCE) + mv $(@D)/espeak-$(ESPEAK_VERSION)-source/* $(@D) + $(RM) -r $(@D)/espeak-$(ESPEAK_VERSION)-source +endef + +define ESPEAK_CONFIGURE_CMDS + # Buildroot provides portaudio V19, see ReadMe file for more details. + cp $(@D)/src/portaudio19.h $(@D)/src/portaudio.h +endef + +define ESPEAK_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) \ + AUDIO="$(ESPEAK_AUDIO_BACKEND)" \ + -C $(@D)/src all +endef + +define ESPEAK_INSTALL_TARGET_CMDS + $(MAKE) install DESTDIR="$(TARGET_DIR)" -C $(@D)/src +endef + +$(eval $(generic-package)) --1.9.0
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
PATCH v10 1/1 espeak: new package
In reply to arnaud at intelibre.frHello Arnaud,
Quoted 8 lines · arnaud at intelibre.fr
package/Config.in | 1 + package/espeak/Config.in | 41 ++++++++++++++++++++ .../espeak-01-do-not-compil-when-install.patch | 15 ++++++++ package/espeak/espeak.mk | 44 ++++++++++++++++++++++ 4 files changed, 101 insertions(+) create mode 100644 package/espeak/Config.in create mode 100644 package/espeak/espeak-01-do-not-compil-when-install.patch create mode 100644 package/espeak/espeak.mk
Thanks a lot, I've applied your patch! I've done some really minor formatting tweaks in Config.in and espeak.mk, but other than that, just applied as is.
Could you send a followup patch bumping espeak to the newer upstream version, if that makes sense?
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v10 1/1 espeak: new package
Hi Thomas,
Thanks for applying !
I will have a look at the new upstream version shortly and send a patch if needed.
Regards,
Arnaud
Quoted 22 lines · Thomas Petazzoni
Hello Arnaud,
Quoted 8 lines · arnaud at intelibre.fr
package/Config.in | 1 + package/espeak/Config.in | 41 ++++++++++++++++++++ .../espeak-01-do-not-compil-when-install.patch | 15 ++++++++ package/espeak/espeak.mk | 44 ++++++++++++++++++++++ 4 files changed, 101 insertions(+)create mode 100644 package/espeak/Config.in
create mode 100644package/espeak/espeak-01-do-not-compil-when-install.patchcreate mode 100644package/espeak/espeak.mkThanks a lot, I've applied your patch! I've done some really minor formatting tweaks in Config.in and espeak.mk, but other than that, just applied as is.
Could you send a followup patch bumping espeak to the newer upstream version, if that makes sense?
Thanks!
Thomas
PATCH v10 1/1 espeak: new package
Dear Arnaud Aujon,
Quoted 4 lines · Arnaud Aujon
Thanks for applying !
I will have a look at the new upstream version shortly and send a patch if needed.
You could also send a patch to fix
http://autobuild.buildroot.org/results/f39/f3903d2b4a16226df2d460dcd2e26c7fb87613ab/build-end.log.
Basically, espeak depends on thread support, so you'll have to change the Config.in file to reflect that.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com