blob: ff869d6db9ddd68b2334a4c2d564ea8b2d44a9d3 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Userspace interface to the kernel DRM services"
2DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \
3stands for \"Direct Rendering Manager\", which is the kernel portion of the \
4\"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \
5accelerated OpenGL drivers."
6HOMEPAGE = "http://dri.freedesktop.org"
7SECTION = "x11/base"
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71"
10PROVIDES = "drm"
11DEPENDS = "libpthread-stubs"
12
Andrew Geisslerd1e89492021-02-12 15:35:20 -060013SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz \
14 file://0001-meson-Also-search-for-rst2man.py.patch \
15 "
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050016
Andrew Geisslerd1e89492021-02-12 15:35:20 -060017SRC_URI[sha256sum] = "d66ad8b5c2441015ac1333e40137bb803c3bde3612ff040286fcc12158ea1bcb"
Andrew Geissler82c905d2020-04-13 13:39:40 -050018
19inherit meson pkgconfig manpages
20
21PACKAGECONFIG ??= "libkms intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv install-test-programs"
22PACKAGECONFIG[libkms] = "-Dlibkms=true,-Dlibkms=false"
23PACKAGECONFIG[intel] = "-Dintel=true,-Dintel=false,libpciaccess"
24PACKAGECONFIG[radeon] = "-Dradeon=true,-Dradeon=false"
25PACKAGECONFIG[amdgpu] = "-Damdgpu=true,-Damdgpu=false"
26PACKAGECONFIG[nouveau] = "-Dnouveau=true,-Dnouveau=false"
27PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=true,-Dvmwgfx=false"
28PACKAGECONFIG[omap] = "-Domap=true,-Domap=false"
29PACKAGECONFIG[exynos] = "-Dexynos=true,-Dexynos=false"
30PACKAGECONFIG[freedreno] = "-Dfreedreno=true,-Dfreedreno=false"
31PACKAGECONFIG[tegra] = "-Dtegra=true,-Dtegra=false"
32PACKAGECONFIG[vc4] = "-Dvc4=true,-Dvc4=false"
33PACKAGECONFIG[etnaviv] = "-Detnaviv=true,-Detnaviv=false"
34PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
35PACKAGECONFIG[valgrind] = "-Dvalgrind=true,-Dvalgrind=false,valgrind"
36PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
37PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false"
38PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060039PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native python3-docutils-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050040
41ALLOW_EMPTY_${PN}-drivers = "1"
42PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
43 ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \
44 ${PN}-etnaviv"
45
46RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \
47 ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
48 ${PN}-etnaviv"
49
50FILES_${PN}-tests = "${bindir}/*"
51FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*"
52FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
53FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*"
54FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*"
55FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
56FILES_${PN}-kms = "${libdir}/libkms*.so.*"
57FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
58FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids"
59FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
60
61BBCLASSEXTEND = "native nativesdk"