kumquat-buildroot/package/speechd/speechd.mk
Fabrice Fontaine f6a7050d71 package/speechd: fix NLS build
Fix the following NLS build failure raised since the addition of the
package in commit 9f4f8c5f89:

/home/buildroot/autobuild/run/instance-2/output-1/host/lib/gcc/arm-buildroot-linux-musleabihf/12.3.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: ../../src/common/.libs/libcommon.a(libcommon_la-i18n.o): undefined reference to symbol 'libintl_bindtextdomain'

Fixes:
 - http://autobuild.buildroot.org/results/8ab13cf474d732c95a1da65592d950b24b3d474b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-12-03 17:26:37 +01:00

56 lines
1.5 KiB
Makefile

################################################################################
#
# speechd
#
################################################################################
SPEECHD_VERSION = 0.11.5
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_AUTOPOINT = YES
SPEECHD_DEPENDENCIES = \
host-pkgconf dotconf libglib2 libsndfile $(TARGET_NLS_DEPENDENCIES)
SPEECHD_CONF_ENV = \
ac_cv_prog_HELP2MAN="" \
LIBS=$(TARGET_NLS_LIBS)
SPEECHD_CONF_OPTS = \
--disable-python \
--without-espeak \
--without-espeak-ng \
--without-flite \
--without-ibmtts \
--without-voxin \
--without-ivona \
--without-pico \
--without-baratinoo \
--without-kali \
--without-pulse \
--without-libao \
--without-alsa \
--with-oss \
--without-nas
# 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 += --enable-ltdl
else
SPEECHD_CONF_OPTS += --disable-ltdl
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))