[packages] pulseaudio: update to 5.0
[packages.git] / sound / flite / Makefile
1 #
2 # Copyright (C) 2006-2010 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
9 PKG_NAME:=flite
10 PKG_VERSION:=1.3-release
11 PKG_RELEASE:=2
12
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
16
17 PKG_BUILD_PARALLEL:=1
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/flite
23   SECTION:=sound
24   CATEGORY:=Sound
25   DEPENDS:=@!GCC_VERSION_3_4_6
26   TITLE:=Text-to-speech for embedded systems
27   URL:=http://www.speech.cs.cmu.edu/flite/index.html
28 endef
29
30 define Package/flite/description
31 Festival Lite is a stripped down version of Festival,
32         the well-developed text-to-speech program written in C++.
33         This program is written in C to keep memory usage low.
34 endef
35
36 TARGET_LDFLAGS += -lm
37
38 define Build/Configure
39         $(call Build/Configure/Default, \
40                 --enable-shared \
41                 --with-audio="oss" \
42                 --with-vox="cmu_us_kal16" \
43                 --prefix="$(PKG_INSTALL_DIR)/usr" \
44                 --exec-prefix="$(PKG_INSTALL_DIR)/usr" \
45                 --bindir="$(PKG_INSTALL_DIR)/usr/bin" \
46         )
47 endef
48
49 define Build/InstallDev
50         $(INSTALL_DIR) $(1)/usr/include/flite
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/flite/{cst,flite}*.h $(1)/usr/include/flite/
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libflite*.so.* $(1)/usr/lib/
54 endef
55
56 define Package/flite/install
57         $(INSTALL_DIR) $(1)/usr/bin
58         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/flite $(1)/usr/bin/
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libflite*.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,flite))