blob: 465f1349afc69d0be2e3f10d376ba683972310bd [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001SUMMARY = "Matchbox virtual keyboard for X11"
2HOMEPAGE = "http://matchbox-project.org"
3BUGTRACKER = "http://bugzilla.yoctoproject.org/"
4SECTION = "x11"
5
6LICENSE = "LGPLv2.1"
7LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
8 file://src/matchbox-keyboard.h;endline=17;md5=9d6586c69e4a926f3cb0b4425f24ba3c \
9 file://applet/applet.c;endline=18;md5=4a0f721724746b14d95b51ddd42b95e7"
10
11DEPENDS = "libfakekey expat libxft"
12
13#SRCREV for 0.1.1
14SRCREV = "630d89068dc0a1e9199306d405cb32f892dfa4d3"
15SRC_URI = "git://git.yoctoproject.org/${BPN};branch=matchbox-keyboard-0-1 \
16 file://0001-desktop-file-Hide-the-keyboard-from-app-list.patch \
17 file://80matchboxkeyboard.sh"
18
19S = "${WORKDIR}/git"
20
21inherit autotools pkgconfig gettext gtk-immodules-cache distro_features_check
22
23# The libxft, libfakekey and matchbox-panel-2 requires x11 in DISTRO_FEATURES
24REQUIRED_DISTRO_FEATURES = "x11"
25
26EXTRA_OECONF = "--disable-cairo"
27
28PACKAGECONFIG ??= "gtk3-im applet"
29PACKAGECONFIG[applet] = "--enable-applet,--disable-applet,matchbox-panel-2"
30PACKAGECONFIG[gtk2-im] = "--enable-gtk-im,--disable-gtk-im,gtk+"
31PACKAGECONFIG[gtk3-im] = "--enable-gtk3-im,--disable-gtk3-im,gtk+3"
32
33PACKAGES += "${PN}-im ${PN}-applet"
34
35FILES_${PN} = "${bindir}/ \
36 ${sysconfdir} \
37 ${datadir}/applications \
38 ${datadir}/pixmaps \
39 ${datadir}/matchbox-keyboard"
40
41FILES_${PN}-im = "${libdir}/gtk-2.0/*/immodules/*.so \
42 ${libdir}/gtk-3.0/*/immodules/*.so"
43
44FILES_${PN}-applet = "${libdir}/matchbox-panel/*.so"
45
46
47do_install_append () {
48 install -d ${D}/${sysconfdir}/X11/Xsession.d/
49 install -m 755 ${WORKDIR}/80matchboxkeyboard.sh ${D}/${sysconfdir}/X11/Xsession.d/
50
51 rm -f ${D}${libdir}/gtk-2.0/*/immodules/*.la
52 rm -f ${D}${libdir}/gtk-3.0/*/immodules/*.la
53 rm -f ${D}${libdir}/matchbox-panel/*.la
54}
55
56GTKIMMODULES_PACKAGES = "${PN}-im"
57
58RDEPENDS_${PN} = "formfactor dbus-wait"
59RRECOMMENDS_${PN} = "${PN}-applet"