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
24 DEPENDS
:= +libncurses
+libpthread
+uclibcxx
25 TITLE
:=test tool
/ traffic generator for the SIP protocol
26 URL
:=http
://sipp.sourceforge.net
/
29 define Package
/sipp
/description
30 SIPp is a free Open Source
test tool
/ traffic generator for the SIP
31 protocol. It includes a few basic SipStone user agent scenarios
(UAC and
32 UAS
) and establishes and releases multiple calls with the INVITE and BYE
36 TAR_CMD
:=$(HOST_TAR
) -C
$(PKG_BUILD_DIR
) --strip-components
1 $(TAR_OPTIONS
)
38 define Build
/Configure
42 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
43 $(TARGET_CONFIGURE_OPTS
) \
44 CC_linux
="$(TARGET_CC)" \
45 CPP_linux
="$(TARGET_CC)" \
46 CCLINK_linux
="$(TARGET_CC)" \
47 CFLAGS
="$(TARGET_CFLAGS)" \
48 CPPFLAGS_linux
="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
49 LFLAGS_linux
="$(TARGET_LDFLAGS)" \
50 LIBS
="-nodefaultlibs -lncurses -luClibc++ -ldl -lpthread -lm $(LIBGCC_S)" \
54 define Package
/sipp
/install
55 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/sipp
$(1)/usr
/sbin
/
59 $(eval
$(call BuildPackage
,sipp
))