2 # Copyright (C) 2006 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
).src.
tar.gz
15 PKG_SOURCE_URL
:=@SF
/sipp
16 PKG_MD5SUM
:=452a6f88f2d314dbb2f44e318a60982b
18 include $(INCLUDE_DIR
)/package.mk
23 DEPENDS
:= +libncurses
+libpthread
+uclibcxx
24 TITLE
:=test tool
/ traffic generator for the SIP protocol
25 URL
:=http
://sipp.sourceforge.net
/
28 define Package
/sipp
/description
29 SIPp is a free Open Source
test tool
/ traffic generator for the SIP
30 protocol. It includes a few basic SipStone user agent scenarios
(UAC and
31 UAS
) and establishes and releases multiple calls with the INVITE and BYE
35 TAR_CMD
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
1 $(TAR_OPTIONS
)
37 define Build
/Configure
41 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
42 $(TARGET_CONFIGURE_OPTS
) \
43 CC_linux
="$(TARGET_CC)" \
44 CPP_linux
="$(TARGET_CC)" \
45 CCLINK_linux
="$(TARGET_CC)" \
46 CFLAGS
="$(TARGET_CFLAGS)" \
47 CPPFLAGS_linux
="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
48 LFLAGS_linux
="$(TARGET_LDFLAGS)" \
49 LIBS
="-nodefaultlibs -lncurses -luClibc++ -ldl -lpthread -lm $(LIBGCC_S)" \
53 define Package
/sipp
/install
54 $(INSTALL_DIR
) $(1)/usr
/sbin
55 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sipp
$(1)/usr
/sbin
/
58 $(eval
$(call BuildPackage
,sipp
))