Fresh pull from upstream (stable) package feed
[librecmc/package-feed.git] / sound / espeak / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=espeak
11 PKG_VERSION:=1.48.04
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-source.zip
15 PKG_SOURCE_URL:=@SF/espeak
16 PKG_MD5SUM:=cadd7482eaafe9239546bdc09fa244c3
17
18 PKG_LICENSE:=GPL-3.0
19 PKG_LICENSE_FILES:=License.txt
20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-source
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/espeak
28   SECTION:=sound
29   CATEGORY:=Sound
30   DEPENDS:=+libpthread +libstdcpp +portaudio
31   TITLE:=Speech synthesizer
32   URL:=http://espeak.sourceforge.net/
33 endef
34
35 define Package/espeak/description
36  eSpeak is a compact open source software speech synthesizer for English and
37  other languages.
38 endef
39
40 MAKE_FLAGS+= \
41         AUDIO="portaudio" \
42         DATADIR="/usr/share/espeak" \
43         CXXFLAGS="$(TARGET_CFLAGS)" \
44         LDFLAGS="$(TARGET_LDFLAGS)" \
45
46 MAKE_PATH:=./src
47
48 define Package/espeak/install
49         $(INSTALL_DIR) $(1)/usr/bin
50         $(CP) $(PKG_INSTALL_DIR)/usr/bin/espeak $(1)/usr/bin/
51         $(INSTALL_DIR) $(1)/usr/lib
52         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libespeak.so.* $(1)/usr/lib/
53         $(INSTALL_DIR) $(1)/usr/share
54         $(CP) $(PKG_INSTALL_DIR)/usr/share/espeak $(1)/usr/share/
55 endef
56
57 $(eval $(call BuildPackage,espeak))