[packages] sipp: prevent spurious rebuilds (caused by PKG_BUILD_DIR containing .svn...
[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 DEPENDS:= +libncurses +libpthread +uclibcxx
24 TITLE:=test tool / traffic generator for the SIP protocol
25 URL:=http://sipp.sourceforge.net/
26 endef
27
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
32 methods.
33 endef
34
35 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
36
37 define Build/Configure
38 endef
39
40 define Build/Compile
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)" \
50 all
51 endef
52
53 define Package/sipp/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
56 endef
57
58 $(eval $(call BuildPackage,sipp))