Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "A mode switching tool for controlling 'flip flop' (multiple device) USB gear" |
| 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 4 | |
| 5 | DEPENDS = "libusb1" |
| 6 | |
| 7 | SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2" |
| 8 | SRC_URI[md5sum] = "16b9a8efa1bf8fbd7d5612757eae4f26" |
| 9 | SRC_URI[sha256sum] = "abffac09c87eacd78e101545967dc25af7e989745b4276756d45dbf4008a2ea6" |
| 10 | |
| 11 | inherit pkgconfig systemd |
| 12 | |
| 13 | SYSTEMD_SERVICE_${PN} = "usb_modeswitch@.service" |
| 14 | |
| 15 | EXTRA_OEMAKE = "TCL=${bindir}/tclsh" |
| 16 | |
| 17 | FILES_${PN} = "${bindir} ${sysconfdir} ${nonarch_base_libdir}/udev/usb_modeswitch ${sbindir} ${localstatedir}/lib/usb_modeswitch" |
| 18 | RDEPENDS_${PN} = "tcl" |
| 19 | RRECOMMENDS_${PN} = "usb-modeswitch-data" |
| 20 | |
| 21 | do_install() { |
| 22 | oe_runmake DESTDIR=${D} install |
| 23 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| 24 | install -d ${D}/${systemd_unitdir}/system |
| 25 | install -m 644 ${S}/usb_modeswitch@.service ${D}/${systemd_unitdir}/system |
| 26 | fi |
| 27 | } |