2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/sipp
16 PKG_MD5SUM:=904fffbc277bafce28762ebb041b9620
17 PKG_CHECK_FORMAT_SECURITY:=0
19 include $(INCLUDE_DIR)/uclibc++.mk
20 include $(INCLUDE_DIR)/package.mk
26 DEPENDS:= +libncurses +libpthread $(CXX_DEPENDS)
27 TITLE:=test tool / traffic generator for the SIP protocol
28 URL:=http://sipp.sourceforge.net/
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
38 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
41 --build=$(GNU_HOST_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --target=$(GNU_TARGET_NAME) \
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 $(TARGET_CONFIGURE_OPTS) \
53 CC_linux="$(TARGET_CXX)" \
54 CPP_linux="$(TARGET_CXX)" \
55 CCLINK_linux="$(TARGET_CXX)" \
56 CFLAGS="$(TARGET_CFLAGS)" \
57 CPPFLAGS_linux="$(TARGET_CPPFLAGS) -fno-rtti" \
58 LFLAGS_linux="$(TARGET_LDFLAGS)" \
59 LIBS="-lncurses -ldl -lpthread -lm" \
63 define Package/sipp/install
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
68 $(eval $(call BuildPackage,sipp))