Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | SUMMARY = "Matchbox virtual keyboard for X11" |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame] | 2 | DESCRIPTION = "An on screen 'virtual' or 'software' keyboard." |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 3 | HOMEPAGE = "http://matchbox-project.org" |
| 4 | BUGTRACKER = "http://bugzilla.yoctoproject.org/" |
| 5 | SECTION = "x11" |
| 6 | |
| 7 | LICENSE = "LGPLv2.1" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \ |
| 9 | file://src/matchbox-keyboard.h;endline=17;md5=9d6586c69e4a926f3cb0b4425f24ba3c \ |
| 10 | file://applet/applet.c;endline=18;md5=4a0f721724746b14d95b51ddd42b95e7" |
| 11 | |
| 12 | DEPENDS = "libfakekey expat libxft" |
| 13 | |
| 14 | #SRCREV for 0.1.1 |
| 15 | SRCREV = "630d89068dc0a1e9199306d405cb32f892dfa4d3" |
| 16 | SRC_URI = "git://git.yoctoproject.org/${BPN};branch=matchbox-keyboard-0-1 \ |
| 17 | file://0001-desktop-file-Hide-the-keyboard-from-app-list.patch \ |
| 18 | file://80matchboxkeyboard.sh" |
| 19 | |
| 20 | S = "${WORKDIR}/git" |
| 21 | |
Brad Bishop | 6dbb316 | 2019-11-25 09:41:34 -0500 | [diff] [blame] | 22 | inherit autotools pkgconfig gettext gtk-immodules-cache features_check |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 23 | |
| 24 | # The libxft, libfakekey and matchbox-panel-2 requires x11 in DISTRO_FEATURES |
| 25 | REQUIRED_DISTRO_FEATURES = "x11" |
| 26 | |
| 27 | EXTRA_OECONF = "--disable-cairo" |
| 28 | |
| 29 | PACKAGECONFIG ??= "gtk3-im applet" |
| 30 | PACKAGECONFIG[applet] = "--enable-applet,--disable-applet,matchbox-panel-2" |
| 31 | PACKAGECONFIG[gtk2-im] = "--enable-gtk-im,--disable-gtk-im,gtk+" |
| 32 | PACKAGECONFIG[gtk3-im] = "--enable-gtk3-im,--disable-gtk3-im,gtk+3" |
| 33 | |
| 34 | PACKAGES += "${PN}-im ${PN}-applet" |
| 35 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | FILES:${PN} = "${bindir}/ \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 37 | ${sysconfdir} \ |
| 38 | ${datadir}/applications \ |
| 39 | ${datadir}/pixmaps \ |
| 40 | ${datadir}/matchbox-keyboard" |
| 41 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 42 | FILES:${PN}-im = "${libdir}/gtk-2.0/*/immodules/*.so \ |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 43 | ${libdir}/gtk-3.0/*/immodules/*.so" |
| 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:${PN}-applet = "${libdir}/matchbox-panel/*.so" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 46 | |
| 47 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | do_install:append () { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 49 | install -d ${D}/${sysconfdir}/X11/Xsession.d/ |
| 50 | install -m 755 ${WORKDIR}/80matchboxkeyboard.sh ${D}/${sysconfdir}/X11/Xsession.d/ |
| 51 | |
| 52 | rm -f ${D}${libdir}/gtk-2.0/*/immodules/*.la |
| 53 | rm -f ${D}${libdir}/gtk-3.0/*/immodules/*.la |
| 54 | rm -f ${D}${libdir}/matchbox-panel/*.la |
| 55 | } |
| 56 | |
| 57 | GTKIMMODULES_PACKAGES = "${PN}-im" |
| 58 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 59 | RDEPENDS:${PN} = "formfactor dbus-wait" |
| 60 | RRECOMMENDS:${PN} = "${PN}-applet" |