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