2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
10 PKG_VERSION:=1.3-release
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://www.speech.cs.cmu.edu/flite/packed/flite-1.3/
15 PKG_MD5SUM:=ae0aca1cb7b4801f4372f3a75a9e52b5
17 include $(INCLUDE_DIR)/package.mk
22 DEPENDS:=@!GCC_VERSION_3_4_6
23 TITLE:=Text-to-speech for embedded systems
24 URL:=http://www.speech.cs.cmu.edu/flite/index.html
27 define Package/flite/description
28 Festival Lite is a stripped down version of Festival,
29 the well-developed text-to-speech program written in C++.
30 This program is written in C to keep memory usage low.
33 define Build/Configure
34 $(call Build/Configure/Default, \
37 --with-vox="cmu_us_kal16" \
38 --prefix="$(PKG_INSTALL_DIR)/usr" \
39 --exec-prefix="$(PKG_INSTALL_DIR)/usr" \
40 --bindir="$(PKG_INSTALL_DIR)/usr/bin" \
45 rm -rf $(PKG_INSTALL_DIR)
46 mkdir -p $(PKG_INSTALL_DIR)
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
52 define Build/InstallDev
53 mkdir -p $(1)/usr/include/flite
54 $(CP) $(PKG_INSTALL_DIR)/usr/include/flite/{cst,flite}*.h $(1)/usr/include/flite/
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libflite*.so.* $(1)/usr/lib/
59 define Package/flite/install
60 $(INSTALL_DIR) $(1)/usr/bin
61 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flite $(1)/usr/bin/
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libflite*.so.* $(1)/usr/lib/
66 $(eval $(call BuildPackage,flite))