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:=2020-03-10
  9. PKG_RELEASE:=$(AUTORELEASE)
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://github.com/br101/libuwifi.git
  12. PKG_SOURCE_VERSION:=0bfb8949c7a766555042f64be3d5ea9f8ed52690
  13. PKG_MIRROR_HASH:=79be6f8b603bc76bae983ebd007a203c6ebfa069efbb233aaf09ccdff502310d
  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))