asterisk-1.8.x: update to 1.8.30.0
[feed/telephony.git] / net / miax / 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:=miax
11 PKG_VERSION:=1.4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/miax
16 PKG_MD5SUM:=44f0d2ef46ee2697d890b7b96846adc7
17 PKG_CHECK_FORMAT_SECURITY:=0
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/miax
24   SECTION:=net
25   CATEGORY:=Network
26   SUBMENU:=Telephony
27   DEPENDS:=+libpthread
28   TITLE:=A console iax (asterisk) client
29   URL:=http://www.eja.it/?l=en&n=miax
30 endef
31
32 define Package/miax/description
33   miax is a console iax (asterisk) client, it can work with 
34   a soundcard as a normal voip phone, taking input/output from 
35   keyboard or analog/gsm/isdn modem.
36 endef
37
38 define Build/Compile
39         $(MAKE) -C "$(PKG_BUILD_DIR)" \
40                 CC="$(TARGET_CC)" \
41                 OFLAGS="$(TARGET_CFLAGS)" \
42                 CPPFLAGS="$(TARGET_CPPFLAGS)" \
43                 LDFLAGS="$(TARGET_LDFLAGS)" \
44                 all
45 endef
46
47 define Package/miax/install     
48         $(INSTALL_DIR) $(1)/usr/bin
49         $(INSTALL_BIN) $(PKG_BUILD_DIR)/miax $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,miax))