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"
19UPSTREAM_CHECK_URI="https://launchpad.net/openbox-xdgmenu/"
20
21inherit pkgconfig features_check
22# depends on openbox, which is X11-only
23REQUIRED_DISTRO_FEATURES = "x11"
24
25EXTRA_OEMAKE = " \
26    CC='${CC}' \
27    CFLAGS='${CPPFLAGS} ${CFLAGS} `pkg-config --cflags glib-2.0 libgnome-menu-3.0` -DGMENU_I_KNOW_THIS_IS_UNSTABLE' \
28    LDFLAGS='${LDFLAGS} `pkg-config --libs glib-2.0 libgnome-menu-3.0`' \
29"
30
31do_install() {
32    install -d ${D}${bindir}
33    install -m 0755 openbox-xdgmenu ${D}${bindir}
34}
35
36RDEPENDS:${PN} += "virtual-x-terminal-emulator"
37