blob: 9f39380028575281e53df1593656c696d695792b [file] [log] [blame]
developer868931f2022-11-18 13:20:18 +08001# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4DESCRIPTION = "Library for accessing wireless device drivers"
5HOMEPAGE = "http://git.openwrt.org/?p=project/iwinfo.git;a=summary"
6LICENSE = "GPL-2.0-only"
7LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
8SECTION = "base"
9DEPENDS += "uci lua ubus libnl-tiny"
10
11SRCREV = "00aab871c50d944fd83269e460e69124cb11adb7"
12
13SRC_URI = "git://git.openwrt.org/project/iwinfo.git;branch=master \
14 file://0002-fix-order-of-linker-cmdline-to-help-linking.patch \
15 file://0003-Replace-typedef-loaL_reg-with-luaL_Reg.patch \
16 "
17
18S = "${WORKDIR}/git"
19
20CFLAGS += "-fPIC -D_GNU_SOURCE"
21CFLAGS += " -I=${includedir}/libnl-tiny "
22# iwinfo breaks with parallel make
23PARALLEL_MAKE = ""
24
25EXTRA_OEMAKE = "\
26 'BACKENDS=nl80211' \
27 'SOVERSION=openwrt' \
28"
29
30do_install() {
31 install -D -m 0755 ${B}/libiwinfo.so ${D}${libdir}/libiwinfo.so
32 install -D -m 0755 ${B}/iwinfo.so ${D}${libdir}/lua/iwinfo.so
33 install -D -m 0755 ${B}/iwinfo ${D}${bindir}/iwinfo
34 install -D -m 0644 ${S}/include/iwinfo.h ${D}${includedir}/iwinfo.h
35 install -D -m 0644 ${S}/include/iwinfo/utils.h ${D}${includedir}/iwinfo/utils.h
36}
37
38FILES_SOLIBSDEV = ""
39FILES_${PN} += "${libdir}/libiwinfo.so"