DESCRIPTION:= is obselete
[openwrt/svn-archive/archive.git] / sound / flite / Makefile
1 #
2 # Copyright (C) 2006 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:=1
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 PKG_CAT:=zcat
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/flite
23 SECTION:=sound
24 CATEGORY:=Sound
25 TITLE:=Text-to-speech for embedded systems
26 URL:=http://www.speech.cs.cmu.edu/flite/index.html
27 endef
28
29 define Package/flite/description
30 Festival Lite is a stripped down version of Festival,
31 the well-developed text-to-speech program written in C++.
32 This program is written in C to keep memory usage low.
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --with-audio="oss" \
39 --with-vox="cmu_us_kal16" \
40 --prefix="$(PKG_INSTALL_DIR)/usr" \
41 --exec-prefix="$(PKG_INSTALL_DIR)/usr" \
42 --bindir="$(PKG_INSTALL_DIR)/usr/bin" \
43 )
44 endef
45
46 define Build/Compile
47 rm -rf $(PKG_INSTALL_DIR)
48 mkdir -p $(PKG_INSTALL_DIR)
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 all install
52 endef
53
54 define Build/InstallDev
55 mkdir -p $(1)/usr/include/flite
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/flite/{cst,flite}*.h $(1)/usr/include/flite/
57 mkdir -p $(1)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libflite*.so.* $(1)/usr/lib/
59 endef
60
61 define Build/UninstallDev
62 rm -rf $(STAGING_DIR)/usr/include/flite/{cst,flite}*.h \
63 $(STAGING_DIR)/usr/lib/libflite*.so.*
64 endef
65
66 define Package/flite/install
67 $(INSTALL_DIR) $(1)/usr/bin
68 $(CP) $(PKG_INSTALL_DIR)/usr/bin/flite $(1)/usr/bin/
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libflite*.so.* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,flite))