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