nuke $Id$ in /packages as well
[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 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).svn
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/sipp
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:= +libncurses +libpthread +uclibcxx
26 TITLE:=test tool / traffic generator for the SIP protocol
27 URL:=http://sipp.sourceforge.net/
28 endef
29
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
34 methods.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 $(TARGET_CONFIGURE_OPTS) \
40 CC_linux="$(TARGET_CC)" \
41 CPP_linux="$(TARGET_CC)" \
42 CCLINK_linux="$(TARGET_CC)" \
43 CFLAGS="$(TARGET_CFLAGS)" \
44 CPPFLAGS_linux="$(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/include/uClibc++ -fno-builtin -fno-rtti -nostdinc++" \
45 LFLAGS_linux="$(TARGET_LDFLAGS)" \
46 LIBS="-nodefaultlibs -lncurses -luClibc++ -ldl -lpthread -lm -lgcc" \
47 all
48 endef
49
50 define Package/sipp/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,sipp))