blob: b1724675bab0a4babf96cd64d535b93d8985f290 [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001SUMMARY = "Matchbox virtual keyboard for X11"
Andrew Geissler90fd73c2021-03-05 15:25:55 -06002DESCRIPTION = "An on screen 'virtual' or 'software' keyboard."
Patrick Williamsc0f7c042017-02-23 20:41:17 -06003HOMEPAGE = "http://matchbox-project.org"
4BUGTRACKER = "http://bugzilla.yoctoproject.org/"
5SECTION = "x11"
6
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00007LICENSE = "LGPL-2.1-only"
Patrick Williamsc0f7c042017-02-23 20:41:17 -06008LIC_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
12DEPENDS = "libfakekey expat libxft"
13
14#SRCREV for 0.1.1
15SRCREV = "630d89068dc0a1e9199306d405cb32f892dfa4d3"
16SRC_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
20S = "${WORKDIR}/git"
21
Brad Bishop6dbb3162019-11-25 09:41:34 -050022inherit autotools pkgconfig gettext gtk-immodules-cache features_check
Patrick Williamsc0f7c042017-02-23 20:41:17 -060023
24# The libxft, libfakekey and matchbox-panel-2 requires x11 in DISTRO_FEATURES
25REQUIRED_DISTRO_FEATURES = "x11"
26
27EXTRA_OECONF = "--disable-cairo"
28
29PACKAGECONFIG ??= "gtk3-im applet"
30PACKAGECONFIG[applet] = "--enable-applet,--disable-applet,matchbox-panel-2"
31PACKAGECONFIG[gtk2-im] = "--enable-gtk-im,--disable-gtk-im,gtk+"
32PACKAGECONFIG[gtk3-im] = "--enable-gtk3-im,--disable-gtk3-im,gtk+3"
33
34PACKAGES += "${PN}-im ${PN}-applet"
35
Patrick Williams213cb262021-08-07 19:21:33 -050036FILES:${PN} = "${bindir}/ \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060037 ${sysconfdir} \
38 ${datadir}/applications \
39 ${datadir}/pixmaps \
40 ${datadir}/matchbox-keyboard"
41
Patrick Williams213cb262021-08-07 19:21:33 -050042FILES:${PN}-im = "${libdir}/gtk-2.0/*/immodules/*.so \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060043 ${libdir}/gtk-3.0/*/immodules/*.so"
44
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN}-applet = "${libdir}/matchbox-panel/*.so"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060046
47
Patrick Williams213cb262021-08-07 19:21:33 -050048do_install:append () {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060049 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
57GTKIMMODULES_PACKAGES = "${PN}-im"
58
Patrick Williams213cb262021-08-07 19:21:33 -050059RDEPENDS:${PN} = "formfactor dbus-wait"
60RRECOMMENDS:${PN} = "${PN}-applet"