a395bec797b40f2cca32495a750ff435a73993ac
[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:=2
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)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 CMAKE_INSTALL:=1
25
26 define Package/sipp
27 SECTION:=net
28 CATEGORY:=Network
29 SUBMENU:=Telephony
30 DEPENDS:=+libstdcpp +libncurses +libpcap +libpthread
31 TITLE:=test tool / traffic generator for the SIP protocol
32 URL:=http://sipp.sourceforge.net/
33 endef
34
35 define Package/sipp/description
36 SIPp is a free Open Source test tool / traffic generator for the SIP
37 protocol. It includes a few basic SipStone user agent scenarios (UAC and
38 UAS) and establishes and releases multiple calls with the INVITE and BYE
39 methods.
40 endef
41
42 # Otherwise OpenWrt's CPPFLAGS are ignored
43 TARGET_CFLAGS += $(TARGET_CPPFLAGS)
44
45 # Use "common" options, see build.sh (we don't have gsl though)
46 CMAKE_OPTIONS += \
47 -DUSE_GSL= \
48 -DUSE_PCAP=1 \
49 -DUSE_SCTP= \
50 -DUSE_SSL=
51
52 define Package/sipp/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sipp $(1)/usr/bin
55 endef
56
57 $(eval $(call BuildPackage,sipp))