Skip to content

Commit

Permalink
package/speechd: new package
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  • Loading branch information
pseiderer authored and tpetazzoni committed Feb 17, 2023
1 parent 5336566 commit 9f4f8c5
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEVELOPERS
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,7 @@ F: support/testing/tests/package/test_docker_compose.py

N: Peter Seiderer <ps.report@gmx.net>
F: package/dotconf/
F: package/speechd/

N: Peter Thompson <peter.macleod.thompson@gmail.com>
F: package/sdl2_gfx/
Expand Down
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ menu "Audio and video applications"
source "package/pipewire-media-session/Config.in"
source "package/pulseaudio/Config.in"
source "package/sox/Config.in"
source "package/speechd/Config.in"
source "package/squeezelite/Config.in"
source "package/tinycompress/Config.in"
source "package/tovid/Config.in"
Expand Down
20 changes: 20 additions & 0 deletions package/speechd/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
config BR2_PACKAGE_SPEECHD
bool "speechd"
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
depends on !BR2_STATIC_LIBS
select BR2_PACKAGE_DOTCONF
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBSNDFILE
help
Speech Dispatcher project provides a high-level device
independent layer for access to speech synthesis through
a simple, stable and well documented interface.

https://freebsoft.org/speechd

comment "speechd needs a toolchain w/ wchar, threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_STATIC_LIBS
5 changes: 5 additions & 0 deletions package/speechd/speechd.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Locally calculated
sha256 628d4446894b47f0df099123924c1070180b5b5b09c5b637ebe80d8578fba92f speechd-0.11.4.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPL-2
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING.GPL-3
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING.LGPL
34 changes: 34 additions & 0 deletions package/speechd/speechd.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
################################################################################
#
# speechd
#
################################################################################

SPEECHD_VERSION = 0.11.4
SPEECHD_SITE = $(call github,brailcom,speechd,$(SPEECHD_VERSION))
SPEECHD_LICENSE = GPL-2.0+, GPL-3.0+ (buildsystem), LGPL-2.1+
SPEECHD_LICENSE_FILES = COPYING.GPL-2 COPYING.GPL-3 COPYING.LGPL
SPEECHD_INSTALL_STAGING = YES
# speechd source code is released without configure script
SPEECHD_AUTORECONF = YES
SPEECHD_DEPENDENCIES = host-pkgconf dotconf libglib2 libsndfile

# fix missing config.rpath (needed for autoreconf) in the codebase
define SPEECHD_TOUCH_CONFIG_RPATH
touch $(@D)/config.rpath
endef
SPEECHD_PRE_CONFIGURE_HOOKS += SPEECHD_TOUCH_CONFIG_RPATH

ifeq ($(BR2_PACKAGE_LIBTOOL),y)
SPEECHD_DEPENDENCIES += libtool
SPEECHD_CONF_OPTS += --with-libltdl
else
SPEECHD_CONF_OPTS += --without-libltdl
endif

define SPEECHD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 $(@D)/speech-dispatcherd.service \
$(TARGET_DIR)/usr/lib/systemd/system/speech-dispatcherd.service
endef

$(eval $(autotools-package))

0 comments on commit 9f4f8c5

Please sign in to comment.