blob: 6ada9b7d276ee6653864b308f35eaa1db6e2d349 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "openbox Window Manager"
2SECTION = "x11/wm"
3DEPENDS = "glib-2.0 pango libxml2 virtual/libx11 libcroco librsvg gdk-pixbuf"
4LICENSE = "GPLv2+"
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 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050010 file://0001-openbox-xdg-autostart-convert-to-python3.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050011"
12
13SRC_URI[md5sum] = "b72794996c6a3ad94634727b95f9d204"
14SRC_URI[sha256sum] = "8b4ac0760018c77c0044fab06a4f0c510ba87eae934d9983b10878483bde7ef7"
15
Brad Bishop8410d612019-11-25 09:40:59 -050016inherit autotools gettext update-alternatives pkgconfig features_check
Patrick Williamsb48b7b42016-08-17 15:04:38 -050017# depends on virtual/libx11
18REQUIRED_DISTRO_FEATURES = "x11"
19
Patrick Williams213cb262021-08-07 19:21:33 -050020ALTERNATIVE:${PN}-core = "x-window-manager x-session-manager"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050021ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/openbox"
22ALTERNATIVE_PRIORITY[x-window-manager] = "10"
Brad Bishop316dfdd2018-06-25 12:45:53 -040023ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/openbox-session"
24ALTERNATIVE_PRIORITY[x-session-manager] = "100"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025
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
Patrick Williams213cb262021-08-07 19:21:33 -050037python populate_packages:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050038 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
Patrick Williams213cb262021-08-07 19:21:33 -050043FILES:${PN}-core = "${bindir}/openbox ${bindir}/openbox-session ${libdir}/*${SOLIBS}"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050044
Patrick Williams213cb262021-08-07 19:21:33 -050045FILES:${PN}-lxde += "${datadir}/lxde/ \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050046 ${datadir}/lxpanel \
47 ${datadir}/xsessions \
48 ${datadir}/icons"
49
Patrick Williams213cb262021-08-07 19:21:33 -050050FILES:${PN}-gnome += " \
Brad Bishop316dfdd2018-06-25 12:45:53 -040051 ${bindir}/openbox-gnome-session \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050052 ${datadir}/gnome \
53 ${datadir}/gnome-session \
54"
55
Patrick Williams213cb262021-08-07 19:21:33 -050056FILES:${PN}-config += "${sysconfdir}"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080057
Patrick Williams213cb262021-08-07 19:21:33 -050058RDEPENDS:${PN} += "${PN}-core ${PN}-config ${PN}-theme-clearlooks python3 python3-shell pyxdg"