1SUMMARY = "Openbox configuration tool"
2AUTHOR = "Siegfried Gevatter"
3HOMEPAGE = "https://launchpad.net/openbox-xdgmenu/"
4SECTION = "x11/wm"
5LICENSE = "GPL-3.0-or-later"
6LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
7DEPENDS = " \
8    gnome-menus \
9    glib-2.0 \
10"
11PV = "0.3"
12
13SRC_URI = " \
14    http://launchpad.net/openbox-xdgmenu/trunk/0.3/+download/openbox-xdgmenu-0.3.tar.gz \
15    file://7_6.diff;striplevel=0 \
16    file://port-gnome-menus3.patch \
17    file://fix-menu-generation.patch \
18"
19SRC_URI[sha256sum] = "824e099928aab2fb628f0fa4870ef7bba10b95581e47c2d8fa216709a0f399b3"
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