summaryrefslogtreecommitdiff
path: root/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb
blob: ff05e3845472996128944c53a46e12c3e5b04566 (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
DESCRIPTION = "Common X11 scripts"
LICENSE = "GPL"
SECTION = "x11"
PR = "r31"

SRC_URI = "\
  file://Xdefaults \
  file://Xinit \
  file://Xserver \
  file://Xsession \
  \
  file://30xTs_Calibrate \
  file://60xXDefaults \
  file://90xXWindowManager \
  "
S = "${WORKDIR}"

etcFiles = "\
  Xdefaults \
  Xinit \
  Xserver \
  Xsession \
  "
sessionFiles = "\
  30xTs_Calibrate \
  60xXDefaults \
  90xXWindowManager \
  "

do_install() {
    install -d ${D}/${sysconfdir}/X11/Xsession.d
    for i in ${etcFiles}; do
        install -m 0755 ${WORKDIR}/$i ${D}/${sysconfdir}/X11/
    done
    for i in ${sessionFiles}; do
        install -m 0755 ${WORKDIR}/$i ${D}/${sysconfdir}/X11/Xsession.d/
    done
}

PACKAGE_ARCH = "all"
RDEPENDS_${PN} = "xmodmap libxrandr xdpyinfo xtscal xinit"
# openmoko uses a splash image for kdrive
RRECOMMENDS_${PN}_openmoko = "xserver-kdrive-splash"