[backfire/packages] merge r28429
[openwrt/svn-archive/archive.git] / net / sipp / Makefile
1 #
2 # Copyright (C) 2006 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.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).src.tar.gz
15 PKG_SOURCE_URL:=@SF/sipp
16 PKG_MD5SUM:=452a6f88f2d314dbb2f44e318a60982b
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/sipp
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=Telephony
24 DEPENDS:= +libncurses +libpthread +uclibcxx
25 TITLE:=test tool / traffic generator for the SIP protocol
26 URL:=http://sipp.sourceforge.net/
27 endef
28
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
33 methods.
34 endef
35
36 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
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)" \
51 all
52 endef
53
54 define Package/sipp/install
55 $(INSTALL_DIR) $(1)/usr/sbin
56 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
57 endef
58
59 $(eval $(call BuildPackage,sipp))