* --without-midi-package should fix a number of autobuild failures. * Disable a number of speech drivers to avoid build failures if they are installed on the host. * Optional dependency on espeak and flite fixes builds where espeak or flite are installed on the host. Fixes: http://autobuild.buildroot.net/results/0c4f557c2ad276b1ed065119532af37c0af5f014 http://autobuild.buildroot.net/results/ea82b7c7732821368746ddddb5d529e97c9b6c16 Signed-off-by: Mario Lang <mlang@blind.guru> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
100 lines
2.6 KiB
Makefile
100 lines
2.6 KiB
Makefile
################################################################################
|
|
#
|
|
# brltty
|
|
#
|
|
################################################################################
|
|
|
|
BRLTTY_VERSION = 5.5
|
|
BRLTTY_SOURCE = brltty-$(BRLTTY_VERSION).tar.xz
|
|
BRLTTY_SITE = http://brltty.com/archive
|
|
BRLTTY_INSTALL_STAGING_OPTS = INSTALL_ROOT=$(STAGING_DIR) install
|
|
BRLTTY_INSTALL_TARGET_OPTS = INSTALL_ROOT=$(TARGET_DIR) install
|
|
BRLTTY_LICENSE_FILES = LICENSE-GPL LICENSE-LGPL
|
|
|
|
BRLTTY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
BRLTTY_CONF_OPTS = \
|
|
--disable-java-bindings \
|
|
--disable-lisp-bindings \
|
|
--disable-ocaml-bindings \
|
|
--disable-python-bindings \
|
|
--disable-tcl-bindings \
|
|
--without-midi-package \
|
|
--without-mikropuhe --without-speechd --without-swift \
|
|
--without-theta --without-viavoice
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
|
BRLTTY_DEPENDENCIES += bluez5_utils
|
|
BRLTTY_CONF_OPTS += --with-bluetooth-package
|
|
else
|
|
BRLTTY_CONF_OPTS += --without-bluetooth-package
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ESPEAK),y)
|
|
BRLTTY_DEPENDENCIES += espeak
|
|
BRLTTY_CONF_OPTS += --with-espeak=$(TARGET_DIR)/usr
|
|
else
|
|
BRLTTY_CONF_OPTS += --without-espeak
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_FLITE),y)
|
|
BRLTTY_DEPENDENCIES += flite
|
|
BRLTTY_CONF_OPTS += --with-flite=$(STAGING_DIR)/usr
|
|
else
|
|
BRLTTY_CONF_OPTS += --without-flite
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ICU),y)
|
|
BRLTTY_DEPENDENCIES += icu
|
|
BRLTTY_CONF_OPTS += --enable-icu
|
|
else
|
|
BRLTTY_CONF_OPTS += --disable-icu
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
BRLTTY_DEPENDENCIES += ncurses
|
|
BRLTTY_CONF_OPTS += --with-curses
|
|
else
|
|
BRLTTY_CONF_OPTS += --without-curses
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
BRLTTY_DEPENDENCIES += systemd
|
|
BRLTTY_CONF_OPTS += --with-service-package
|
|
else
|
|
BRLTTY_CONF_OPTS += --without-service-package
|
|
endif
|
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
|
BRLTTY_CONF_OPTS += --enable-i18n
|
|
else
|
|
BRLTTY_CONF_OPTS += --disable-i18n
|
|
endif
|
|
|
|
BRLTTY_TEXT_TABLE = $(call qstrip,$(BR2_PACKAGE_BRLTTY_TEXT_TABLE))
|
|
ifneq ($(BRLTTY_TEXT_TABLE),)
|
|
BRLTTY_CONF_OPTS += --with-text-table=$(BRLTTY_TEXT_TABLE)
|
|
endif
|
|
|
|
define BRLTTY_INSTALL_CONF
|
|
$(INSTALL) -D -m 644 $(@D)/Documents/brltty.conf $(TARGET_DIR)/etc/brltty.conf
|
|
endef
|
|
|
|
BRLTTY_POST_INSTALL_TARGET_HOOKS += BRLTTY_INSTALL_CONF
|
|
|
|
define BRLTTY_INSTALL_INIT_SYSV
|
|
$(INSTALL) -D -m 0755 package/brltty/S10brltty \
|
|
$(TARGET_DIR)/etc/init.d/S10brltty
|
|
endef
|
|
|
|
define BRLTTY_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 0644 package/brltty/brltty.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/brltty.service
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
|
|
ln -fs ../../../../usr/lib/systemd/system/brltty.service \
|
|
$(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/brltty.service
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|