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