fix sipp compile on avr32
[openwrt/svn-archive/archive.git] / net / sipp / 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:=sipp
12 PKG_VERSION:=3.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).src.tar.gz
16 PKG_SOURCE_URL:=@SF/sipp
17 PKG_MD5SUM:=452a6f88f2d314dbb2f44e318a60982b
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).svn
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/sipp
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:= +libncurses +libpthread +uclibcxx
27 TITLE:=test tool / traffic generator for the SIP protocol
28 URL:=http://sipp.sourceforge.net/
29 endef
30
31 define Package/sipp/description
32 SIPp is a free Open Source test tool / traffic generator for the SIP
33 protocol. It includes a few basic SipStone user agent scenarios (UAC and
34 UAS) and establishes and releases multiple calls with the INVITE and BYE
35 methods.
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 $(TARGET_CONFIGURE_OPTS) \
41 CC_linux="$(TARGET_CC)" \
42 CPP_linux="$(TARGET_CC)" \
43 CCLINK_linux="$(TARGET_CC)" \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 CPPFLAGS_linux="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
46 LFLAGS_linux="$(TARGET_LDFLAGS)" \
47 LIBS="-nodefaultlibs -lncurses -luClibc++ -ldl -lpthread -lm -lgcc" \
48 all
49 endef
50
51 define Package/sipp/install
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
54 endef
55
56 $(eval $(call BuildPackage,sipp))