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.4 KiB

  1. #
  2. # Copyright (C) 2016 Bruno Randolf (br1@einfach.org)
  3. # 2019 Nick Hainke (vincent@systemli.org)
  4. #
  5. #
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=libuwifi
  8. PKG_VERSION:=2019-05-27
  9. PKG_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/br101/libuwifi.git
  12. PKG_SOURCE_VERSION:=bb92bc9b041a077488f2fa5a1716902c7bb23e5b
  13. PKG_MIRROR_HASH:=c6dc795ef6c2cc87d411d3f907974f634a132c3e732db2597f96ff25a05faa05
  14. PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>, Nick Hainke <vincent@systemli.org>
  15. PKG_LICENSE:=LGPL-3.0-only
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libuwifi
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+libradiotap +libnl-tiny
  23. TITLE:=Userspace Wifi Library
  24. endef
  25. define Package/libuwifi/description
  26. Library for parsing, generating and analyzing Wifi (WLAN 802.11) frames in userspace and related functions.
  27. endef
  28. MAKE_FLAGS += DEBUG=0 LIBNL=tiny BUILD_RADIOTAP=0
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include/uwifi
  31. $(CP) $(PKG_BUILD_DIR)/include/uwifi/*.h $(1)/usr/include/uwifi
  32. $(CP) $(PKG_BUILD_DIR)/ccan $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_BUILD_DIR)/build/libuwifi.{a,so*} $(1)/usr/lib/
  35. endef
  36. define Package/libuwifi/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_BUILD_DIR)/build/libuwifi.so* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libuwifi))