2014-09-24 08:08:28 +02:00
|
|
|
################################################################################
|
2014-04-30 16:21:53 +02:00
|
|
|
#
|
|
|
|
# espeak
|
|
|
|
#
|
2014-09-24 08:08:28 +02:00
|
|
|
################################################################################
|
2014-04-30 16:21:53 +02:00
|
|
|
|
2014-08-05 13:16:41 +02:00
|
|
|
ESPEAK_VERSION_MAJOR = 1.48
|
|
|
|
ESPEAK_VERSION = $(ESPEAK_VERSION_MAJOR).04
|
2014-04-30 16:21:53 +02:00
|
|
|
ESPEAK_SOURCE = espeak-$(ESPEAK_VERSION)-source.zip
|
|
|
|
ESPEAK_SITE = http://downloads.sourceforge.net/project/espeak/espeak/espeak-$(ESPEAK_VERSION_MAJOR)
|
|
|
|
ESPEAK_LICENSE = GPLv3+
|
2015-04-07 19:18:13 +02:00
|
|
|
ESPEAK_LICENSE_FILES = License.txt
|
2014-04-30 16:21:53 +02:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA),y)
|
|
|
|
ESPEAK_AUDIO_BACKEND = portaudio
|
|
|
|
ESPEAK_DEPENDENCIES = portaudio
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO),y)
|
|
|
|
ESPEAK_AUDIO_BACKEND = pulseaudio
|
|
|
|
ESPEAK_DEPENDENCIES = pulseaudio
|
|
|
|
endif
|
|
|
|
|
|
|
|
define ESPEAK_EXTRACT_CMDS
|
2014-10-29 10:18:41 +01:00
|
|
|
$(UNZIP) -d $(@D) $(DL_DIR)/$(ESPEAK_SOURCE)
|
2014-04-30 16:21:53 +02:00
|
|
|
mv $(@D)/espeak-$(ESPEAK_VERSION)-source/* $(@D)
|
|
|
|
$(RM) -r $(@D)/espeak-$(ESPEAK_VERSION)-source
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ESPEAK_CONFIGURE_CMDS
|
|
|
|
# Buildroot provides portaudio V19, see ReadMe file for more details.
|
|
|
|
cp $(@D)/src/portaudio19.h $(@D)/src/portaudio.h
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ESPEAK_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D)/src $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
AUDIO="$(ESPEAK_AUDIO_BACKEND)" all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define ESPEAK_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE) -C $(@D)/src DESTDIR="$(TARGET_DIR)" install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|