developer | 868931f | 2022-11-18 13:20:18 +0800 | [diff] [blame] | 1 | # Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | DESCRIPTION = "Library for accessing wireless device drivers" |
| 5 | HOMEPAGE = "http://git.openwrt.org/?p=project/iwinfo.git;a=summary" |
| 6 | LICENSE = "GPL-2.0-only" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
| 8 | SECTION = "base" |
| 9 | DEPENDS += "uci lua ubus libnl-tiny" |
| 10 | |
| 11 | SRCREV = "00aab871c50d944fd83269e460e69124cb11adb7" |
| 12 | |
| 13 | SRC_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 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | CFLAGS += "-fPIC -D_GNU_SOURCE" |
| 21 | CFLAGS += " -I=${includedir}/libnl-tiny " |
| 22 | # iwinfo breaks with parallel make |
| 23 | PARALLEL_MAKE = "" |
| 24 | |
| 25 | EXTRA_OEMAKE = "\ |
| 26 | 'BACKENDS=nl80211' \ |
| 27 | 'SOVERSION=openwrt' \ |
| 28 | " |
| 29 | |
| 30 | do_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 | |
| 38 | FILES_SOLIBSDEV = "" |
| 39 | FILES_${PN} += "${libdir}/libiwinfo.so" |