2011-12-03 13:57:38 +00:00
|
|
|
#
|
2016-06-07 09:42:32 +00:00
|
|
|
# Copyright (C) 2010-2016 Jo-Philipp Wich <jo@mein.io>
|
2011-12-03 13:57:38 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GPL 2 license.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libiwinfo
|
2016-12-21 21:25:41 +00:00
|
|
|
PKG_RELEASE:=1
|
2014-10-27 14:35:44 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2018-01-05 09:46:06 +00:00
|
|
|
PKG_SOURCE_URL=$(PROJECT_GIT)/project/iwinfo.git
|
2021-05-01 22:22:56 +00:00
|
|
|
PKG_SOURCE_DATE:=2021-04-30
|
|
|
|
PKG_SOURCE_VERSION:=c45f0b584b4b86f8250f90ea19afca271c114fa2
|
|
|
|
PKG_MIRROR_HASH:=24ad04791254a0523cd15a4fec6116d9ff121e006c93e5e41459f91347b33ec2
|
2016-06-07 09:42:32 +00:00
|
|
|
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0
|
2011-12-03 13:57:38 +00:00
|
|
|
|
2016-08-25 14:46:04 +00:00
|
|
|
PKG_FLAGS := nonshared
|
|
|
|
|
2012-01-01 16:17:10 +00:00
|
|
|
PKG_CONFIG_DEPENDS := \
|
|
|
|
CONFIG_PACKAGE_kmod-brcm-wl \
|
|
|
|
CONFIG_PACKAGE_kmod-brcm-wl-mini \
|
|
|
|
CONFIG_PACKAGE_kmod-brcm-wl-mimo \
|
2014-10-05 10:25:55 +00:00
|
|
|
CONFIG_PACKAGE_kmod-cfg80211
|
2011-12-03 13:57:38 +00:00
|
|
|
|
2021-05-01 22:22:56 +00:00
|
|
|
IWINFO_ABI_VERSION:=20210430
|
2021-01-06 22:26:15 +00:00
|
|
|
|
2011-12-03 13:57:38 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
|
|
|
|
define Package/libiwinfo
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Generalized Wireless Information Library (iwinfo)
|
2018-07-25 18:16:13 +00:00
|
|
|
DEPENDS:=+PACKAGE_kmod-cfg80211:libnl-tiny +libuci +libubus
|
2021-01-06 22:26:15 +00:00
|
|
|
ABI_VERSION:=$(IWINFO_ABI_VERSION)
|
2011-12-03 13:57:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiwinfo/description
|
|
|
|
Wireless information library with consistent interface for proprietary Broadcom,
|
2017-01-09 14:54:19 +00:00
|
|
|
nl80211 and wext driver interfaces.
|
2011-12-03 13:57:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/libiwinfo-lua
|
|
|
|
SUBMENU:=Lua
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=libiwinfo Lua binding
|
2013-01-04 09:32:06 +00:00
|
|
|
DEPENDS:=+libiwinfo +liblua
|
2011-12-03 13:57:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiwinfo-lua/description
|
|
|
|
This is the Lua binding for the iwinfo library. It provides access to all enabled
|
|
|
|
backends.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/iwinfo
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE:=Generalized Wireless Information utility
|
|
|
|
DEPENDS:=+libiwinfo
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iwinfo/description
|
|
|
|
Command line frontend for the wireless information library.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
IWINFO_BACKENDS := \
|
|
|
|
$(if $(CONFIG_PACKAGE_kmod-brcm-wl),wl) \
|
|
|
|
$(if $(CONFIG_PACKAGE_kmod-brcm-wl-mini),wl) \
|
|
|
|
$(if $(CONFIG_PACKAGE_kmod-brcm-wl-mimo),wl) \
|
2014-10-05 10:25:55 +00:00
|
|
|
$(if $(CONFIG_PACKAGE_kmod-cfg80211),nl80211)
|
2011-12-03 13:57:38 +00:00
|
|
|
|
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/include/libnl-tiny \
|
|
|
|
-I$(STAGING_DIR)/usr/include \
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
|
|
|
|
MAKE_FLAGS += \
|
|
|
|
FPIC="$(FPIC)" \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
2021-01-06 22:26:15 +00:00
|
|
|
BACKENDS="$(IWINFO_BACKENDS)" \
|
|
|
|
SOVERSION="$(IWINFO_ABI_VERSION)"
|
2011-12-03 13:57:38 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/iwinfo
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/include/iwinfo.h $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/include/iwinfo/* $(1)/usr/include/iwinfo/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-01-06 22:26:15 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/libiwinfo.so* $(1)/usr/lib/
|
2011-12-03 13:57:38 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiwinfo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2021-01-06 22:26:15 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libiwinfo.so.$(IWINFO_ABI_VERSION) $(1)/usr/lib/libiwinfo.so.$(IWINFO_ABI_VERSION)
|
2013-04-26 13:20:15 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/libiwinfo
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/hardware.txt $(1)/usr/share/libiwinfo/hardware.txt
|
2011-12-03 13:57:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libiwinfo-lua/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo.so $(1)/usr/lib/lua/iwinfo.so
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/iwinfo/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/iwinfo $(1)/usr/bin/iwinfo
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libiwinfo))
|
|
|
|
$(eval $(call BuildPackage,libiwinfo-lua))
|
|
|
|
$(eval $(call BuildPackage,iwinfo))
|