1SUMMARY = "X driver" 2HOMEPAGE = "http://www.x.org" 3BUGTRACKER = "https://bugs.freedesktop.org" 4SECTION = "x11/drivers" 5LICENSE = "MIT" 6 7PE = "2" 8 9DEPENDS = "virtual/xserver xorgproto util-macros" 10 11XORG_DRIVER_COMPRESSOR ?= ".tar.bz2" 12SRC_URI = "${XORG_MIRROR}/individual/driver/${BPN}-${PV}${XORG_DRIVER_COMPRESSOR}" 13 14FILES:${PN} += " ${libdir}/xorg/modules/drivers/*.so" 15 16inherit pkgconfig features_check 17XORGBUILDCLASS ??= "autotools" 18inherit_defer ${XORGBUILDCLASS} 19 20# depends on virtual/xserver 21REQUIRED_DISTRO_FEATURES = "x11" 22 23# FIXME: We don't want to include the libtool archives (*.la) from modules 24# directory, as they serve no useful purpose. Upstream should fix Makefile.am 25do_install:append() { 26 find ${D}${libdir}/xorg/modules -regex ".*\.la$" | xargs rm -f -- 27} 28 29# Function to add the relevant ABI dependency to drivers, which should be called 30# from a PACKAGEFUNC. 31def _add_xorg_abi_depends(d, name): 32 # Map of ABI names exposed in the dependencies to pkg-config variables 33 abis = { 34 "video": "abi_videodrv", 35 "input": "abi_xinput" 36 } 37 38 output = os.popen("pkg-config xorg-server --variable=%s" % abis[name]).read() 39 mlprefix = d.getVar('MLPREFIX') or '' 40 abi = "%sxorg-abi-%s-%s" % (mlprefix, name, output.split(".")[0]) 41 42 pn = d.getVar("PN") 43 d.appendVar('RDEPENDS:' + pn, ' ' + abi) 44 45SECURITY_LDFLAGS = "${SECURITY_X_LDFLAGS}" 46