blob: fb9a94207f9a688b213e0bb6efae41f4254211f4 [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
13SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz"
Andrew Geissler5a43b432020-06-13 10:46:56 -050014SRC_URI[sha256sum] = "8bcbf9336c28e393d76c1f16d7e79e394a7fce8a2e929d52d3ad7ad8525ba05b"
Andrew Geissler82c905d2020-04-13 13:39:40 -050015
16inherit meson pkgconfig manpages
17
18PACKAGECONFIG ??= "libkms intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv install-test-programs"
19PACKAGECONFIG[libkms] = "-Dlibkms=true,-Dlibkms=false"
20PACKAGECONFIG[intel] = "-Dintel=true,-Dintel=false,libpciaccess"
21PACKAGECONFIG[radeon] = "-Dradeon=true,-Dradeon=false"
22PACKAGECONFIG[amdgpu] = "-Damdgpu=true,-Damdgpu=false"
23PACKAGECONFIG[nouveau] = "-Dnouveau=true,-Dnouveau=false"
24PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=true,-Dvmwgfx=false"
25PACKAGECONFIG[omap] = "-Domap=true,-Domap=false"
26PACKAGECONFIG[exynos] = "-Dexynos=true,-Dexynos=false"
27PACKAGECONFIG[freedreno] = "-Dfreedreno=true,-Dfreedreno=false"
28PACKAGECONFIG[tegra] = "-Dtegra=true,-Dtegra=false"
29PACKAGECONFIG[vc4] = "-Dvc4=true,-Dvc4=false"
30PACKAGECONFIG[etnaviv] = "-Detnaviv=true,-Detnaviv=false"
31PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
32PACKAGECONFIG[valgrind] = "-Dvalgrind=true,-Dvalgrind=false,valgrind"
33PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
34PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false"
35PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
36PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native"
37
38ALLOW_EMPTY_${PN}-drivers = "1"
39PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
40 ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \
41 ${PN}-etnaviv"
42
43RRECOMMENDS_${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \
44 ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
45 ${PN}-etnaviv"
46
47FILES_${PN}-tests = "${bindir}/*"
48FILES_${PN}-radeon = "${libdir}/libdrm_radeon.so.*"
49FILES_${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
50FILES_${PN}-omap = "${libdir}/libdrm_omap.so.*"
51FILES_${PN}-intel = "${libdir}/libdrm_intel.so.*"
52FILES_${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
53FILES_${PN}-kms = "${libdir}/libkms*.so.*"
54FILES_${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
55FILES_${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids"
56FILES_${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
57
58BBCLASSEXTEND = "native nativesdk"