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:=8c1d513423f9dabee799e738b737e311
18 include $(INCLUDE_DIR)/uclibc++.mk
19 include $(INCLUDE_DIR)/package.mk
25 DEPENDS:= +libncurses +libpthread $(CXX_DEPENDS)
26 TITLE:=test tool / traffic generator for the SIP protocol
27 URL:=http://sipp.sourceforge.net/
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
37 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
39 define Build/Configure
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" \
55 define Package/sipp/install
56 $(INSTALL_DIR) $(1)/usr/sbin
57 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
60 $(eval $(call BuildPackage,sipp))