|
@ -12,20 +12,22 @@ PKG_RELEASE:=2 |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.zip |
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.zip |
|
|
PKG_SOURCE_URL:=@SF/espeak |
|
|
PKG_SOURCE_URL:=@SF/espeak |
|
|
PKG_HASH:=bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659 |
|
|
PKG_HASH:=bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659 |
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-source |
|
|
|
|
|
|
|
|
PKG_LICENSE:=GPL-3.0 |
|
|
|
|
|
|
|
|
PKG_MAINTAINER:= |
|
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later |
|
|
PKG_LICENSE_FILES:=License.txt |
|
|
PKG_LICENSE_FILES:=License.txt |
|
|
PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org> |
|
|
|
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-source |
|
|
|
|
|
PKG_INSTALL:=1 |
|
|
PKG_INSTALL:=1 |
|
|
|
|
|
PKG_BUILD_PARALLEL:=1 |
|
|
|
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/uclibc++.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
include $(INCLUDE_DIR)/package.mk |
|
|
|
|
|
|
|
|
define Package/espeak |
|
|
define Package/espeak |
|
|
SECTION:=sound |
|
|
SECTION:=sound |
|
|
CATEGORY:=Sound |
|
|
CATEGORY:=Sound |
|
|
DEPENDS:=+libpthread +libstdcpp +portaudio |
|
|
|
|
|
|
|
|
DEPENDS:=$(CXX_DEPENDS) +portaudio |
|
|
TITLE:=Speech synthesizer |
|
|
TITLE:=Speech synthesizer |
|
|
URL:=http://espeak.sourceforge.net/ |
|
|
URL:=http://espeak.sourceforge.net/ |
|
|
endef |
|
|
endef |
|
@ -35,23 +37,26 @@ define Package/espeak/description |
|
|
other languages. |
|
|
other languages. |
|
|
endef |
|
|
endef |
|
|
|
|
|
|
|
|
|
|
|
# Use system header for portaudio
|
|
|
|
|
|
define Build/Prepare |
|
|
|
|
|
$(call Build/Prepare/Default) |
|
|
|
|
|
rm $(PKG_BUILD_DIR)/src/portaudio.h |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
MAKE_FLAGS+= \
|
|
|
MAKE_FLAGS+= \
|
|
|
AUDIO="portaudio" \
|
|
|
AUDIO="portaudio" \
|
|
|
DATADIR="/usr/share/espeak" \
|
|
|
DATADIR="/usr/share/espeak" \
|
|
|
CXXFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
|
|
|
|
|
CXXFLAGS="$(TARGET_CXXFLAGS)" \
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
|
|
|
|
|
|
|
MAKE_PATH:=./src |
|
|
MAKE_PATH:=./src |
|
|
|
|
|
|
|
|
# Use system header for portaudio
|
|
|
|
|
|
define Build/Prepare |
|
|
|
|
|
$(call Build/Prepare/Default) |
|
|
|
|
|
rm $(PKG_BUILD_DIR)/src/portaudio.h |
|
|
|
|
|
endef |
|
|
|
|
|
|
|
|
TARGET_CXXFLAGS += -std=c++14 -ffunction-sections -fdata-sections -flto |
|
|
|
|
|
TARGET_LDFLAGS += $(FPIC) $(if $(CONFIG_USE_GLIBC),-lm) -Wl,--gc-sections,--as-needed |
|
|
|
|
|
|
|
|
define Package/espeak/install |
|
|
define Package/espeak/install |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(INSTALL_DIR) $(1)/usr/bin |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/espeak $(1)/usr/bin/ |
|
|
|
|
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/espeak $(1)/usr/bin/ |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(INSTALL_DIR) $(1)/usr/lib |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libespeak.so.* $(1)/usr/lib/ |
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libespeak.so.* $(1)/usr/lib/ |
|
|
$(INSTALL_DIR) $(1)/usr/share |
|
|
$(INSTALL_DIR) $(1)/usr/share |
|
|