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.

55 lines
1.4 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_VERSION:=4.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:= Steven Hessing <steven.hessing@gmail.com>
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/mfontanini/libtins/tar.gz/v$(PKG_VERSION)?
  14. PKG_HASH:=2a758d1bed51760bbd57fcaa00610534e0cc3a6d55d91983724e5f46739d66b8
  15. PKG_LICENSE:=BSD-2-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_PARALLEL:=1
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. CMAKE_OPTIONS += -D_RUN_RESULT_VAR=FORCE
  22. CMAKE_OPTIONS += -DLIBTINS_ENABLE_WPA2=0
  23. CMAKE_OPTIONS += -DLIBTINS_ENABLE_CXX11=1
  24. define Build/InstallDev
  25. $(INSTALL_DIR) $(1)/usr/include/ $(1)/usr/lib
  26. $(CP) $(PKG_INSTALL_DIR)/usr/include/tins $(1)/usr/include/
  27. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtins* $(1)/usr/lib/
  28. endef
  29. define Package/libtins
  30. SECTION:=net
  31. CATEGORY:=Libraries
  32. TITLE:=libtins
  33. URL:=https://libtins.github.io/
  34. DEPENDS:=+libstdcpp +libpcap
  35. endef
  36. define Package/libtins/description
  37. libtins is a high-level, multiplatform C++ network packet sniffing and crafting library.
  38. endef
  39. define Package/libtins/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtins.so $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libtins))