Merge pull request #558 from neheb/kama
[feed/telephony.git] / net / sipp / Makefile
1 #
2 # Copyright (C) 2013-2015 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.6.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/SIPp/sipp/releases/download/v$(PKG_VERSION)
16 PKG_HASH:=6a560e83aff982f331ddbcadfb3bd530c5896cd5b757dd6eb682133cc860ecb1
17
18 PKG_LICENSE:=GPL-2.0+ BSD-3-Clause Zlib
19 PKG_LICENSE_FILES:=LICENSE.txt
20
21 include $(INCLUDE_DIR)/uclibc++.mk
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 CMAKE_INSTALL:=1
26
27 define Package/sipp
28 SECTION:=net
29 CATEGORY:=Network
30 SUBMENU:=Telephony
31 DEPENDS:=$(CXX_DEPENDS) +libncurses +libpcap +libpthread
32 TITLE:=test tool / traffic generator for the SIP protocol
33 URL:=http://sipp.sourceforge.net/
34 endef
35
36 define Package/sipp/description
37 SIPp is a free Open Source test tool / traffic generator for the SIP
38 protocol. It includes a few basic SipStone user agent scenarios (UAC and
39 UAS) and establishes and releases multiple calls with the INVITE and BYE
40 methods.
41 endef
42
43 # Otherwise OpenWrt's CPPFLAGS are ignored
44 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
45
46 # Use "common" options, see build.sh (we don't have gsl though)
47 CMAKE_OPTIONS += \
48 -DUSE_GSL= \
49 -DUSE_PCAP=1 \
50 -DUSE_SCTP= \
51 -DUSE_SSL=
52
53 define Package/sipp/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sipp $(1)/usr/bin
56 endef
57
58 $(eval $(call BuildPackage,sipp))