Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Tools for the Linux Standard Wireless Extension Subsystem" |
| 2 | HOMEPAGE = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html" |
| 3 | LICENSE = "GPLv2 & (LGPLv2.1 | MPL-1.1 | BSD)" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
| 5 | file://iwconfig.c;beginline=1;endline=12;md5=cf710eb1795c376eb10ea4ff04649caf \ |
| 6 | file://iwevent.c;beginline=59;endline=72;md5=d66a10026d4394f0a5b1c5587bce4537 \ |
| 7 | file://sample_enc.c;beginline=1;endline=4;md5=838372be07874260b566bae2f6ed33b6" |
| 8 | SECTION = "base" |
| 9 | PE = "1" |
| 10 | |
| 11 | SRC_URI = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.${PV}.tar.gz \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | file://remove.ldconfig.call.patch \ |
| 13 | file://man.patch \ |
| 14 | file://avoid_strip.patch \ |
| 15 | file://ldflags.patch \ |
| 16 | " |
| 17 | SRC_URI[md5sum] = "ca91ba7c7eff9bfff6926b1a34a4697d" |
| 18 | SRC_URI[sha256sum] = "abd9c5c98abf1fdd11892ac2f8a56737544fe101e1be27c6241a564948f34c63" |
| 19 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 20 | UPSTREAM_CHECK_URI = "http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html" |
| 21 | UPSTREAM_CHECK_REGEX = "wireless_tools\.(?P<pver>(\d+)(\..*|))\.tar\.gz" |
| 22 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | S = "${WORKDIR}/wireless_tools.30" |
| 24 | |
| 25 | CFLAGS =+ "-I${S}" |
| 26 | EXTRA_OEMAKE = "-e 'BUILD_SHARED=y' \ |
| 27 | 'INSTALL_DIR=${D}${base_sbindir}' \ |
| 28 | 'INSTALL_LIB=${D}${libdir}' \ |
| 29 | 'INSTALL_INC=${D}${includedir}' \ |
| 30 | 'INSTALL_MAN=${D}${mandir}'" |
| 31 | |
| 32 | do_compile() { |
| 33 | oe_runmake all libiw.a |
| 34 | } |
| 35 | |
| 36 | do_install() { |
| 37 | oe_runmake PREFIX=${D} install-iwmulticall install-dynamic install-man install-hdr |
| 38 | install -d ${D}${sbindir} |
| 39 | install -m 0755 ifrename ${D}${sbindir}/ifrename |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 40 | } |
| 41 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 42 | PACKAGES = "libiw libiw-dev libiw-doc ifrename-doc ifrename ${PN} ${PN}-doc ${PN}-dbg" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 43 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 44 | FILES_libiw = "${libdir}/*.so.*" |
| 45 | FILES_libiw-dev = "${libdir}/*.a ${libdir}/*.so ${includedir}" |
| 46 | FILES_libiw-doc = "${mandir}/man7" |
| 47 | FILES_ifrename = "${sbindir}/ifrename" |
| 48 | FILES_ifrename-doc = "${mandir}/man8/ifrename.8 ${mandir}/man5/iftab.5" |
| 49 | FILES_${PN} = "${bindir} ${sbindir}/iw* ${base_sbindir} ${base_bindir} ${sysconfdir}/network" |
| 50 | FILES_${PN}-doc = "${mandir}" |