1
0

Makefile 1.4 KB

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