fix ettercap compile
[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
15 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://mesh.dl.sourceforge.net/sourceforge/miax/
17 PKG_MD5SUM:=44f0d2ef46ee2697d890b7b96846adc7
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 DEPENDS:=+libpthread +bluez-libs
27 TITLE:=A console iax (asterisk) client
28 URL:=http://www.eja.it/?l=gpl&testo=miax
29 endef
30
31 define Package/miax/description
32 miax is a console iax (asterisk) client, it can work with
33 a soundcard as a normal voip phone, taking input/output from
34 keyboard, analog/gsm/isdn modem or bluetooth phones.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C "$(PKG_BUILD_DIR)" \
39 CC="$(TARGET_CC)" \
40 OFLAGS="$(TARGET_CFLAGS)" \
41 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
42 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
43 all
44 endef
45
46 define Package/miax/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/miax $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,miax))