summaryrefslogtreecommitdiff
path: root/recipes-lxde/openbox/openbox_3.5.0.bb
blob: cb718e60e2b2d6ed84cf849a81ae90aa276aecdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
SUMMARY = "A standards compliant, fast, light-weight, extensible window manager"
HOMEPAGE = "http://openbox.org"
SECTION = "x11/wm"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"

PR = "r5"

RDEPENDS_{PN} = "glib-2.0 libxml2 pango imlib2 startup-notification libxft libxrandr libxt openbox-theme-clearlooks"
DEPENDS = "glib-2.0 libxml2 pango imlib2 startup-notification libxft libxrandr libxt xextproto xf86vidmodeproto libxcursor"

SRC_URI = "http://openbox.org/dist/openbox/openbox-${PV}.tar.gz"
SRC_URI[md5sum] = "00441b53cf14c03566c8e82643544ff9"
SRC_URI[sha256sum] = "6fa90016530b3aa6102e254079461977439398531fb23e7ec076ff2c140fea0a"

inherit autotools update-alternatives gettext pkgconfig

EXTRA_OECONF += "\
    --enable-session-management \
    --disable-xinerama \
    --with-x\
    "

ALTERNATIVE_${PN} = "x-window-manager"
ALTERNATIVE_LINK_NAME[x-window-manager] = "${bindir}/x-window-manager"
ALTERNATIVE_TARGET[x-window-manager] = "${bindir}/openbox"
ALTERNATIVE_PRIORITY[x-window-manager] = "10"

PACKAGES =+ "${PN}-gnome ${PN}-gnome-dbg ${PN}-kde ${PN}-kde-dbg"
FILES_${PN} += "${datadir}/gnome ${datadir}/xsessions"
FILES_${PN}-gnome = "\
    ${bindir}/openbox-gnome-session \
    ${bindir}/gnome-panel-control \
    ${bindir}/gdm-control \
    ${datadir}/xsessions/openbox-gnome.desktop \
    ${datadir}/gnome \
    "
FILES_${PN}-gnome-dbg = "\
    ${bindir}/.debug/openbox-gnome-session \
    ${bindir}/.debug/gnome-panel-control \
    ${bindir}/.debug/gdm-control \
    "
FILES_${PN}-kde = "\
    ${bindir}/openbox-kde-session \
    ${datadir}/xsessions/openbox-kde.desktop \
    "
FILES_${PN}-kde-dbg = "\
    ${bindir}/.debug/openbox-kde-session \
    "

PACKAGES_DYNAMIC += "${PN}-theme-*"

python populate_packages_prepend() {
    theme_dir = bb.data.expand('${datadir}/themes/', d)
    theme_name = bb.data.expand('${PN}-theme-%s', d)
    do_split_packages(d, theme_dir, '(.*)', theme_name, '${PN} theme for %s', extra_depends='', allow_dirs=True)
}