Add PKG_LICENSE variable to the most of the packages.
[feed/telephony.git] / net / sipp / Makefile
1 #
2 # Copyright (C) 2013 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.3.990
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/sipp
16 PKG_MD5SUM:=904fffbc277bafce28762ebb041b9620
17 PKG_CHECK_FORMAT_SECURITY:=0
18
19 PKG_LICENSE:=GPL-2.0+
20 PKG_LICENSE_FILES:=LICENSE.txt
21
22 include $(INCLUDE_DIR)/uclibc++.mk
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sipp
26   SECTION:=net
27   CATEGORY:=Network
28   SUBMENU:=Telephony
29   DEPENDS:= +libncurses +libpthread $(CXX_DEPENDS)
30   TITLE:=test tool / traffic generator for the SIP protocol
31   URL:=http://sipp.sourceforge.net/
32 endef
33
34 define Package/sipp/description
35  SIPp is a free Open Source test tool / traffic generator for the SIP
36  protocol. It includes a few basic SipStone user agent scenarios (UAC and
37  UAS) and establishes and releases multiple calls with the INVITE and BYE
38  methods.
39 endef
40
41 TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
42
43 CONFIGURE_ARGS+= \
44         --build=$(GNU_HOST_NAME) \
45         --host=$(GNU_TARGET_NAME) \
46         --target=$(GNU_TARGET_NAME) \
47         --enable-epoll \
48         --without-gsl \
49         --without-pcap \
50         --with-rtpstream \
51         --without-sctp
52
53 define Build/Compile
54         $(MAKE) -C $(PKG_BUILD_DIR) \
55                 $(TARGET_CONFIGURE_OPTS) \
56                 CC_linux="$(TARGET_CXX)" \
57                 CPP_linux="$(TARGET_CXX)" \
58                 CCLINK_linux="$(TARGET_CXX)" \
59                 CFLAGS="$(TARGET_CFLAGS)" \
60                 CPPFLAGS_linux="$(TARGET_CPPFLAGS) -fno-rtti" \
61                 LFLAGS_linux="$(TARGET_LDFLAGS)" \
62                 LIBS="-lncurses -ldl -lpthread -lm" \
63                 all
64 endef
65
66 define Package/sipp/install
67         $(INSTALL_DIR) $(1)/usr/sbin
68         $(INSTALL_BIN) $(PKG_BUILD_DIR)/sipp $(1)/usr/sbin/
69 endef
70
71 $(eval $(call BuildPackage,sipp))