2017-11-27 23:56:45 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# brltty
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-04-14 18:06:36 +02:00
|
|
|
BRLTTY_VERSION = 6.1
|
2017-11-27 23:56:45 +01:00
|
|
|
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
|
2018-09-16 16:55:11 +02:00
|
|
|
BRLTTY_LICENSE = LGPL-2.1+
|
|
|
|
BRLTTY_LICENSE_FILES = LICENSE-LGPL README
|
2017-11-27 23:56:45 +01:00
|
|
|
|
2018-07-10 20:22:26 +02:00
|
|
|
BRLTTY_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES) host-autoconf host-pkgconf \
|
|
|
|
$(if $(BR2_PACKAGE_AT_SPI2_CORE),at-spi2-core)
|
2017-11-27 23:56:45 +01:00
|
|
|
|
2020-02-20 00:37:47 +01:00
|
|
|
BRLTTY_CONF_ENV = \
|
|
|
|
PKG_CONFIG_FOR_BUILD=$(HOST_DIR)/bin/pkgconf
|
|
|
|
|
2017-11-27 23:56:45 +01:00
|
|
|
BRLTTY_CONF_OPTS = \
|
|
|
|
--disable-java-bindings \
|
|
|
|
--disable-lisp-bindings \
|
|
|
|
--disable-ocaml-bindings \
|
|
|
|
--disable-python-bindings \
|
2017-12-18 10:51:43 +01:00
|
|
|
--disable-tcl-bindings \
|
2017-12-19 22:14:31 +01:00
|
|
|
--disable-x \
|
2019-09-28 14:08:33 +02:00
|
|
|
--without-espeak-ng \
|
2017-12-18 10:51:43 +01:00
|
|
|
--without-midi-package \
|
|
|
|
--without-mikropuhe --without-speechd --without-swift \
|
2019-09-28 14:08:33 +02:00
|
|
|
--without-theta
|
2017-11-27 23:56:45 +01:00
|
|
|
|
2017-12-29 15:06:41 +01:00
|
|
|
# Autoreconf is needed because we're patching configure.ac in
|
2019-09-28 14:08:33 +02:00
|
|
|
# 0001-Fix-linking-error-on-mips64el. However, a plain autoreconf doesn't work,
|
|
|
|
# because this package is only autoconf-based.
|
2017-12-29 15:06:41 +01:00
|
|
|
define BRLTTY_AUTOCONF
|
|
|
|
cd $(BRLTTY_SRCDIR) && $(AUTOCONF)
|
|
|
|
endef
|
|
|
|
|
|
|
|
BRLTTY_PRE_CONFIGURE_HOOKS += BRLTTY_AUTOCONF
|
|
|
|
|
2017-11-27 23:56:45 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
|
|
|
|
BRLTTY_DEPENDENCIES += bluez5_utils
|
|
|
|
BRLTTY_CONF_OPTS += --with-bluetooth-package
|
|
|
|
else
|
|
|
|
BRLTTY_CONF_OPTS += --without-bluetooth-package
|
|
|
|
endif
|
|
|
|
|
2017-12-18 10:51:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ESPEAK),y)
|
|
|
|
BRLTTY_DEPENDENCIES += espeak
|
|
|
|
BRLTTY_CONF_OPTS += --with-espeak=$(TARGET_DIR)/usr
|
|
|
|
else
|
|
|
|
BRLTTY_CONF_OPTS += --without-espeak
|
|
|
|
endif
|
|
|
|
|
2019-09-28 14:08:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_EXPAT),y)
|
2019-10-13 14:45:50 +02:00
|
|
|
# host-expat is needed by tbl2hex's host program
|
|
|
|
BRLTTY_DEPENDENCIES += host-expat expat
|
2019-09-28 14:08:34 +02:00
|
|
|
BRLTTY_CONF_OPTS += --enable-expat
|
|
|
|
else
|
|
|
|
BRLTTY_CONF_OPTS += --disable-expat
|
|
|
|
endif
|
|
|
|
|
2017-12-18 10:51:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_FLITE),y)
|
|
|
|
BRLTTY_DEPENDENCIES += flite
|
|
|
|
BRLTTY_CONF_OPTS += --with-flite=$(STAGING_DIR)/usr
|
|
|
|
else
|
|
|
|
BRLTTY_CONF_OPTS += --without-flite
|
|
|
|
endif
|
|
|
|
|
2017-11-27 23:56:45 +01:00
|
|
|
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
|
|
|
|
|
2019-09-28 14:08:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PCRE2_32),y)
|
|
|
|
BRLTTY_DEPENDENCIES += pcre2
|
|
|
|
BRLTTY_CONF_OPTS += --with-rgx-package
|
|
|
|
else ifeq ($(BR2_PACKAGE_PCRE_32),y)
|
|
|
|
BRLTTY_DEPENDENCIES += pcre
|
|
|
|
BRLTTY_CONF_OPTS += --with-rgx-package
|
|
|
|
else
|
|
|
|
BRLTTY_CONF_OPTS += --without-rgx-package
|
|
|
|
endif
|
|
|
|
|
2017-11-27 23:56:45 +01:00
|
|
|
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
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|