1. Updated to git HEAD bd2862080c7f55450a99b5565650c8300512a59a
[feed/telephony.git] / sipp / Makefile
1 #
2 # Copyright (C) 2013 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:=sipp
11 PKG_VERSION:=3.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/sipp
16 PKG_MD5SUM:=8c1d513423f9dabee799e738b737e311
17
18 include $(INCLUDE_DIR)/uclibc++.mk
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/sipp
22   SECTION:=net
23   CATEGORY:=Network
24   SUBMENU:=Telephony
25   DEPENDS:= +libncurses +libpthread $(CXX_DEPENDS)
26   TITLE:=test tool / traffic generator for the SIP protocol
27   URL:=http://sipp.sourceforge.net/
28 endef
29
30 define Package/sipp/description
31  SIPp is a free Open Source test tool / traffic generator for the SIP
32  protocol. It includes a few basic SipStone user agent scenarios (UAC and
33  UAS) and establishes and releases multiple calls with the INVITE and BYE
34  methods.
35 endef
36
37 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
38
39 define Build/Configure
40 endef
41
42 define Build/Compile
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 $(TARGET_CONFIGURE_OPTS) \
45                 CC_linux="$(TARGET_CXX)" \
46                 CPP_linux="$(TARGET_CXX)" \
47                 CCLINK_linux="$(TARGET_CXX)" \
48                 CFLAGS="$(TARGET_CFLAGS)" \
49                 CPPFLAGS_linux="$(TARGET_CPPFLAGS) -fno-rtti" \
50                 LFLAGS_linux="$(TARGET_LDFLAGS)" \
51                 LIBS="-lncurses -ldl -lpthread -lm" \
52                 all
53 endef
54
55 define Package/sipp/install
56         $(INSTALL_DIR) $(1)/usr/sbin
57         $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
58 endef
59
60 $(eval $(call BuildPackage,sipp))