1SUMMARY = "openbox Window Manager" 2SECTION = "x11/wm" 3DEPENDS = "glib-2.0 pango libxml2 virtual/libx11 libcroco librsvg gdk-pixbuf" 4LICENSE = "GPL-2.0-or-later" 5LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" 6 7SRC_URI = " \ 8 http://icculus.org/openbox/releases/openbox-${PV}.tar.gz \ 9 file://0001-Makefile.am-avoid-race-when-creating-autostart-direc.patch \ 10 file://0001-openbox-xdg-autostart-convert-to-python3.patch \ 11" 12 13SRC_URI[md5sum] = "b72794996c6a3ad94634727b95f9d204" 14SRC_URI[sha256sum] = "8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7" 15 16inherit autotools gettext update-alternatives pkgconfig features_check 17# depends on virtual/libx11 18REQUIRED_DISTRO_FEATURES = "x11" 19 20ALTERNATIVE:${PN}-core = "x-window-manager x-session-manager" 21ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/openbox" 22ALTERNATIVE_PRIORITY[x-window-manager] = "10" 23ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/openbox-session" 24ALTERNATIVE_PRIORITY[x-session-manager] = "100" 25 26PACKAGECONFIG ??= "" 27PACKAGECONFIG[imlib2] = "--enable-imlib2,--disable-imlib2,imlib2" 28PACKAGECONFIG[startup-notification] = "--enable-startup-notification,--disable-startup-notification,startup-notification" 29PACKAGECONFIG[xrandr] = "--enable-xrandr,--disable-xrandr,libxrandr" 30PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama,libxinerama" 31PACKAGECONFIG[xcursor] = "--enable-xcursor,--disable-xcursor,libxcursor" 32 33PACKAGES =+ "${PN}-core ${PN}-lxde ${PN}-gnome ${PN}-config" 34 35PACKAGES_DYNAMIC += "^${PN}-theme-.*" 36 37python populate_packages:prepend() { 38 theme_dir = d.expand('${datadir}/themes/') 39 theme_name = d.expand('${PN}-theme-%s') 40 do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', extra_depends='', allow_dirs=True) 41} 42 43FILES:${PN}-core = "${bindir}/openbox ${bindir}/openbox-session ${libdir}/*${SOLIBS}" 44 45FILES:${PN}-lxde += "${datadir}/lxde/ \ 46 ${datadir}/lxpanel \ 47 ${datadir}/xsessions \ 48 ${datadir}/icons" 49 50FILES:${PN}-gnome += " \ 51 ${bindir}/openbox-gnome-session \ 52 ${datadir}/gnome \ 53 ${datadir}/gnome-session \ 54" 55 56FILES:${PN}-config += "${sysconfdir}" 57 58RDEPENDS:${PN} += "${PN}-core ${PN}-config ${PN}-theme-clearlooks python3 python3-shell pyxdg" 59