You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.5 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=espeak
  7. PKG_VERSION:=1.48.04
  8. PKG_RELEASE:=2
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.zip
  10. PKG_SOURCE_URL:=@SF/espeak
  11. PKG_HASH:=bf9a17673adffcc28ff7ea18764f06136547e97bbd9edf2ec612f09b207f0659
  12. PKG_LICENSE:=GPL-3.0
  13. PKG_LICENSE_FILES:=License.txt
  14. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-source
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/espeak
  19. SECTION:=sound
  20. CATEGORY:=Sound
  21. DEPENDS:=+libpthread +libstdcpp +portaudio
  22. TITLE:=Speech synthesizer
  23. URL:=http://espeak.sourceforge.net/
  24. endef
  25. define Package/espeak/description
  26. eSpeak is a compact open source software speech synthesizer for English and
  27. other languages.
  28. endef
  29. MAKE_FLAGS+= \
  30. AUDIO="portaudio" \
  31. DATADIR="/usr/share/espeak" \
  32. CXXFLAGS="$(TARGET_CFLAGS)" \
  33. LDFLAGS="$(TARGET_LDFLAGS)" \
  34. MAKE_PATH:=./src
  35. # Use system header for portaudio
  36. define Build/Prepare
  37. $(call Build/Prepare/Default)
  38. rm $(PKG_BUILD_DIR)/src/portaudio.h
  39. endef
  40. define Package/espeak/install
  41. $(INSTALL_DIR) $(1)/usr/bin
  42. $(CP) $(PKG_INSTALL_DIR)/usr/bin/espeak $(1)/usr/bin/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libespeak.so.* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/share
  46. $(CP) $(PKG_INSTALL_DIR)/usr/share/espeak $(1)/usr/share/
  47. endef
  48. $(eval $(call BuildPackage,espeak))