Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 1 | SUMMARY = "Matchbox virtual keyboard for X11" |
| 2 | HOMEPAGE = "http://matchbox-project.org" |
| 3 | BUGTRACKER = "http://bugzilla.yoctoproject.org/" |
| 4 | SECTION = "x11" |
| 5 | |
| 6 | LICENSE = "LGPLv2.1" |
| 7 | LIC_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 | |
| 11 | DEPENDS = "libfakekey expat libxft" |
| 12 | |
| 13 | #SRCREV for 0.1.1 |
| 14 | SRCREV = "630d89068dc0a1e9199306d405cb32f892dfa4d3" |
| 15 | SRC_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 | |
| 19 | S = "${WORKDIR}/git" |
| 20 | |
Brad Bishop | 6dbb316 | 2019-11-25 09:41:34 -0500 | [diff] [blame] | 21 | inherit autotools pkgconfig gettext gtk-immodules-cache features_check |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 22 | |
| 23 | # The libxft, libfakekey and matchbox-panel-2 requires x11 in DISTRO_FEATURES |
| 24 | REQUIRED_DISTRO_FEATURES = "x11" |
| 25 | |
| 26 | EXTRA_OECONF = "--disable-cairo" |
| 27 | |
| 28 | PACKAGECONFIG ??= "gtk3-im applet" |
| 29 | PACKAGECONFIG[applet] = "--enable-applet,--disable-applet,matchbox-panel-2" |
| 30 | PACKAGECONFIG[gtk2-im] = "--enable-gtk-im,--disable-gtk-im,gtk+" |
| 31 | PACKAGECONFIG[gtk3-im] = "--enable-gtk3-im,--disable-gtk3-im,gtk+3" |
| 32 | |
| 33 | PACKAGES += "${PN}-im ${PN}-applet" |
| 34 | |
| 35 | FILES_${PN} = "${bindir}/ \ |
| 36 | ${sysconfdir} \ |
| 37 | ${datadir}/applications \ |
| 38 | ${datadir}/pixmaps \ |
| 39 | ${datadir}/matchbox-keyboard" |
| 40 | |
| 41 | FILES_${PN}-im = "${libdir}/gtk-2.0/*/immodules/*.so \ |
| 42 | ${libdir}/gtk-3.0/*/immodules/*.so" |
| 43 | |
| 44 | FILES_${PN}-applet = "${libdir}/matchbox-panel/*.so" |
| 45 | |
| 46 | |
| 47 | do_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 | |
| 56 | GTKIMMODULES_PACKAGES = "${PN}-im" |
| 57 | |
| 58 | RDEPENDS_${PN} = "formfactor dbus-wait" |
| 59 | RRECOMMENDS_${PN} = "${PN}-applet" |