blob: ac0df8bab41d466cb5a57926df23d7d46fef6ed0 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001SUMMARY = "A mode switching tool for controlling 'flip flop' (multiple device) USB gear"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
4
5DEPENDS = "libusb1"
6
7SRC_URI = "http://www.draisberghof.de/usb_modeswitch/${BP}.tar.bz2"
8SRC_URI[md5sum] = "38ad5c9d70e06227a00361bdc2b1e568"
9SRC_URI[sha256sum] = "31c0be280d49a99ec3dc0be3325bef320d9c04b50714ef0ce1e36a614d687633"
10
Brad Bishop316dfdd2018-06-25 12:45:53 -040011inherit pkgconfig systemd
12
13SYSTEMD_SERVICE_${PN} = "usb_modeswitch@.service"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014
15EXTRA_OEMAKE = "TCL=${bindir}/tclsh"
16
17FILES_${PN} = "${bindir} ${sysconfdir} ${nonarch_base_libdir}/udev/usb_modeswitch ${sbindir} ${localstatedir}/lib/usb_modeswitch"
18RDEPENDS_${PN} = "tcl"
19RRECOMMENDS_${PN} = "usb-modeswitch-data"
20
21do_install() {
22 oe_runmake DESTDIR=${D} install
Brad Bishop316dfdd2018-06-25 12:45:53 -040023 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
Brad Bishop6e60e8b2018-02-01 10:27:11 -050027}