Port miax to -ng
[openwrt/svn-archive/archive.git] / net / miax / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=miax
12 PKG_VERSION:=1.4
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=44f0d2ef46ee2697d890b7b96846adc7
15
16 PKG_SOURCE_URL:=http://mesh.dl.sourceforge.net/sourceforge/miax/
17 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/miax
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpthread +bluez-libs
28 TITLE:=A console iax (asterisk) client
29 DESCRIPTION:=miax is a console iax (asterisk) client, it can work with\\\
30 a soundcard as a normal voip phone, taking input/output from\\\
31 keyboard, analog/gsm/isdn modem or bluetooth phones.\\\
32 URL:=http://www.eja.it/?l=gpl&testo=miax
33 endef
34
35 define Build/Compile
36 $(MAKE) -C "$(PKG_BUILD_DIR)" \
37 CC="$(TARGET_CC)" \
38 OFLAGS="$(TARGET_CFLAGS)" \
39 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
40 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
41 all
42 endef
43
44 define Package/miax/install
45 install -d -m0755 $(1)/usr/bin
46 install -m0755 $(PKG_BUILD_DIR)/miax $(1)/usr/bin/
47 endef
48
49 $(eval $(call BuildPackage,miax))