aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/xorg-xserver/xserver-xorg_1.11.2.bbappend
blob: 3e906108fe19010819f636f0496d757c62bd07d3 (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
LIB_DEPS := "${@oe_filter_out('mesa-dri', '${LIB_DEPS}', d)}"
LIB_DEPS += "virtual/libgl"

FILESEXTRAPATHS := "${THISDIR}/${PN}"
SRC_URI_append = " file://X.service \
                 "

# If we don't have mesa-dri as virtual/gl we deactivate this support in xserver and
# remove remove xorg-extension-glx from RDEPENDS as we user OPENGLES and EGL
python () {
    if ((d.getVar("PREFERRED_PROVIDER_virtual/libgl", True) or "").find("mesa-dri") == -1):
	    extraoeconf = d.getVar("EXTRA_OECONF", True)
	    extraoeconf += " --disable-glx --disable-dri"
	    d.setVar('EXTRA_OECONF', extraoeconf)
    else:
	    d.setVar('RDEPENDS_xserver-xorg', "xserver-xorg-extension-glx")
}

do_install_append() {
    install -d ${D}/lib/systemd/system
    install -m 0755 ${WORKDIR}/X.service ${D}/lib/systemd/system
}

FILES_${PN} += "/lib/systemd/system"

WARN_QA = "ldflags useless-rpaths rpaths staticdev"