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