Add PKG_LICENSE variable to the most of the packages.
[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 PKG_LICENSE:=GPL-2.0
22 PKG_LICENSE_FILES:=COPYING LICENSE
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/miax
27   SECTION:=net
28   CATEGORY:=Network
29   SUBMENU:=Telephony
30   DEPENDS:=+libpthread
31   TITLE:=A console iax (asterisk) client
32   URL:=http://www.eja.it/?l=en&n=miax
33 endef
34
35 define Package/miax/description
36   miax is a console iax (asterisk) client, it can work with 
37   a soundcard as a normal voip phone, taking input/output from 
38   keyboard or analog/gsm/isdn modem.
39 endef
40
41 define Build/Compile
42         $(MAKE) -C "$(PKG_BUILD_DIR)" \
43                 CC="$(TARGET_CC)" \
44                 OFLAGS="$(TARGET_CFLAGS)" \
45                 CPPFLAGS="$(TARGET_CPPFLAGS)" \
46                 LDFLAGS="$(TARGET_LDFLAGS)" \
47                 all
48 endef
49
50 define Package/miax/install     
51         $(INSTALL_DIR) $(1)/usr/bin
52         $(INSTALL_BIN) $(PKG_BUILD_DIR)/miax $(1)/usr/bin/
53 endef
54
55 $(eval $(call BuildPackage,miax))