aboutsummaryrefslogtreecommitdiff
path: root/libs/libuwifi/Makefile
blob: 206e7e4df11b56551bc97d5727db6a29d6c5f38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Copyright (C) 2016 Bruno Randolf (br1@einfach.org)
#               2019 Nick Hainke (vincent@systemli.org)
#
#
include $(TOPDIR)/rules.mk

PKG_NAME:=libuwifi
PKG_VERSION:=2020-03-10
PKG_RELEASE:=2

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/br101/libuwifi.git
PKG_SOURCE_VERSION:=0bfb8949c7a766555042f64be3d5ea9f8ed52690
PKG_MIRROR_HASH:=dafa4c1c83e9b385599435794f5bd34f11b529945cfa5a2b17dbdcd808ae41ec

PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>, Nick Hainke <vincent@systemli.org>
PKG_LICENSE:=LGPL-3.0-only
PKG_LICENSE_FILES:=COPYING

PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/libuwifi
	SECTION:=libs
	CATEGORY:=Libraries
	DEPENDS:=+libradiotap +libnl-tiny
	TITLE:=Userspace Wifi Library
endef

define Package/libuwifi/description
	Library for parsing, generating and analyzing Wifi (WLAN 802.11) frames in userspace and related functions.
endef

MAKE_FLAGS += DEBUG=0 LIBNL=tiny BUILD_RADIOTAP=0

define Build/InstallDev
	$(INSTALL_DIR) $(1)/usr/include/uwifi

	$(CP) $(PKG_BUILD_DIR)/include/uwifi/*.h $(1)/usr/include/uwifi
	$(CP) $(PKG_BUILD_DIR)/linux/*.h $(1)/usr/include/uwifi

	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_BUILD_DIR)/build/libuwifi.{a,so*} $(1)/usr/lib/
endef

define Package/libuwifi/install
	$(INSTALL_DIR) $(1)/usr/lib
	$(CP) $(PKG_BUILD_DIR)/build/libuwifi.so* $(1)/usr/lib/
endef

$(eval $(call BuildPackage,libuwifi))