Merge pull request #4863 from lucize/dovesql
[feed/packages.git] / libs / libtins / Makefile
1 #
2 # Copyright (C) 2017 Steven Hessing
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:=libtins
11 PKG_RELEASE:=1
12
13 PKG_MAINTAINER:= Steven Hessing <steven.hessing@gmail.com>
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/mfontanini/libtins.git
17 PKG_SOURCE_VERSION:=v3.5
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.xz
20 PKG_MIRROR_HASH:=47cd7d659ffa75dcfc2172ef54151fd36dc87de9e0f04bb066f6b076a7df7b57
21
22 PKG_LICENSE:=BSD-2-Clause
23 PKG_LICENSE_FILES:=LICENSE
24
25 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
26 PKG_BUILD_PARALLEL:=1
27
28 CMAKE_INSTALL:=1
29 include $(INCLUDE_DIR)/package.mk
30 include $(INCLUDE_DIR)/cmake.mk
31 CMAKE_OPTIONS += -D_RUN_RESULT_VAR=FORCE
32 CMAKE_OPTIONS += -DLIBTINS_ENABLE_WPA2=0
33 CMAKE_OPTIONS += -DLIBTINS_ENABLE_CXX11=1
34
35 define Package/libtins
36 SECTION:=net
37 CATEGORY:=Libraries
38 TITLE:=libtins
39 URL:=http://libtins.github.io/
40 DEPENDS:=+libstdcpp +libpcap
41 endef
42
43 define Package/libtins/description
44 libtins is a high-level, multiplatform C++ network packet sniffing and crafting library.
45 endef
46
47 define Package/libtins/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtins.so.3.5 $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,libtins))