aaffd209fa
To be consistent with the recent change of FOO_MAKE_OPT into FOO_MAKE_OPTS, make the same change for FOO_CONF_OPT. Sed command used: find * -type f | xargs sed -i 's#_CONF_OPT\>#&S#g' Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
52 lines
1.5 KiB
Makefile
52 lines
1.5 KiB
Makefile
################################################################################
|
|
#
|
|
# flite
|
|
#
|
|
################################################################################
|
|
|
|
FLITE_VERSION = 1.4
|
|
FLITE_SOURCE = flite-$(FLITE_VERSION)-release.tar.bz2
|
|
FLITE_SITE = http://www.speech.cs.cmu.edu/flite/packed/flite-$(FLITE_VERSION)
|
|
FLITE_LICENSE = BSD-4c
|
|
FLITE_LICENSE_FILES = COPYING
|
|
|
|
FLITE_INSTALL_STAGING = YES
|
|
# Patching configure.in
|
|
FLITE_AUTORECONF = YES
|
|
FLITE_DEPENDENCIES = host-pkgconf
|
|
|
|
# Sadly, Flite does not support parallel build, especially when building its
|
|
# shared libraries.
|
|
FLITE_MAKE = $(MAKE1)
|
|
|
|
# $ tar tf flite-1.4-release.tar.bz2
|
|
# ...
|
|
# flite-1.4-release//install-sh
|
|
# flite-1.4-release//mkinstalldirs
|
|
# flite-1.4-release//Exports.def
|
|
# flite-1.4-release//flite.sln
|
|
# flite-1.4-release//fliteDll.vcproj
|
|
# flite-1.4-release/config/Makefile
|
|
# flite-1.4-release/config/common_make_rules
|
|
# flite-1.4-release/config/project.mak
|
|
# flite-1.4-release/config/config.in
|
|
# flite-1.4-release/config/system.mak.in
|
|
#
|
|
# So, the strip-component trick does not work at all.
|
|
# Let's redefine the extract command.
|
|
define FLITE_EXTRACT_CMDS
|
|
$(INFLATE$(suffix $(FLITE_SOURCE))) $(DL_DIR)/$(FLITE_SOURCE) | \
|
|
$(TAR) -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
rsync -ar $(BUILD_DIR)/$(subst .tar.bz2,,$(FLITE_SOURCE))/* $(FLITE_DIR)/
|
|
$(RM) -rf $(BUILD_DIR)/$(subst .tar.bz2,,$(FLITE_SOURCE))
|
|
endef
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
FLITE_DEPENDENCIES += alsa-lib
|
|
FLITE_CONF_OPTS += --with-audio=alsa
|
|
else
|
|
FLITE_CONF_OPTS += --with-audio=oss
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|