You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

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