blob: 1028d618aecfaeb17d119d061ce06244e1dc76fc [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 Geissler6ce62a22020-11-30 19:58:47 -060013SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz"
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050014
Andrew Geissler6ce62a22020-11-30 19:58:47 -060015SRC_URI[sha256sum] = "3fe0affdba6460166a7323290c18cf68e9b59edcb520722826cb244e9cb50222"
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
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"