Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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_HASH:=47cd7d659ffa75dcfc2172ef54151fd36dc87de9e0f04bb066f6b076a7df7b57
  17. PKG_MIRROR_HASH:=47cd7d659ffa75dcfc2172ef54151fd36dc87de9e0f04bb066f6b076a7df7b57
  18. PKG_LICENSE:=BSD-2-Clause
  19. PKG_LICENSE_FILES:=LICENSE
  20. PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
  21. PKG_BUILD_PARALLEL:=1
  22. CMAKE_INSTALL:=1
  23. include $(INCLUDE_DIR)/package.mk
  24. include $(INCLUDE_DIR)/cmake.mk
  25. CMAKE_OPTIONS += -D_RUN_RESULT_VAR=FORCE
  26. CMAKE_OPTIONS += -DLIBTINS_ENABLE_WPA2=0
  27. CMAKE_OPTIONS += -DLIBTINS_ENABLE_CXX11=1
  28. define Package/libtins
  29. SECTION:=net
  30. CATEGORY:=Libraries
  31. TITLE:=libtins
  32. URL:=http://libtins.github.io/
  33. DEPENDS:=+libstdcpp +libpcap
  34. endef
  35. define Package/libtins/description
  36. libtins is a high-level, multiplatform C++ network packet sniffing and crafting library.
  37. endef
  38. define Package/libtins/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libtins.so.3.5 $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libtins))