1SUMMARY = "Openbox configuration tool"
2HOMEPAGE = "https://launchpad.net/openbox-xdgmenu/"
3SECTION = "x11/wm"
4LICENSE = "GPL-3.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
6DEPENDS = " \
7    gnome-menus \
8    glib-2.0 \
9"
10PV = "0.3"
11
12SRC_URI = " \
13    http://launchpad.net/openbox-xdgmenu/trunk/0.3/+download/openbox-xdgmenu-0.3.tar.gz \
14    file://7_6.diff;striplevel=0 \
15    file://port-gnome-menus3.patch \
16    file://fix-menu-generation.patch \
17"
18SRC_URI[sha256sum] = "824e099928aab2fb628f0fa4870ef7bba10b95581e47c2d8fa216709a0f399b3"
19
20inherit pkgconfig features_check
21# depends on openbox, which is X11-only
22REQUIRED_DISTRO_FEATURES = "x11"
23
24EXTRA_OEMAKE = " \
25    CC='${CC}' \
26    CFLAGS='${CPPFLAGS} ${CFLAGS} `pkg-config --cflags glib-2.0 libgnome-menu-3.0` -DGMENU_I_KNOW_THIS_IS_UNSTABLE' \
27    LDFLAGS='${LDFLAGS} `pkg-config --libs glib-2.0 libgnome-menu-3.0`' \
28"
29
30do_install() {
31    install -d ${D}${bindir}
32    install -m 0755 openbox-xdgmenu ${D}${bindir}
33}
34
35RDEPENDS:${PN} += "virtual-x-terminal-emulator"
36