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