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.

53 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-12-05
  9. PKG_RELEASE:=3
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/br101/libuwifi.git
  12. PKG_SOURCE_VERSION:=089bfebd3a8da6e39fd93e33c44368b044c23dde
  13. PKG_MIRROR_HASH:=a99801ad1dfcf459b00adc582d5e6a31dae9ed10529d114e1e26f5760c6a74f8
  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)/linux/*.h $(1)/usr/include/uwifi
  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))