blob: 50206f2ba83d364d1a50d36cc747f0d814b55883 [file] [log] [blame]
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00001SUMMARY = "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 \
14 "
15
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060016SRC_URI[sha256sum] = "554cfbfe0542bddb391b4e3e05bfbbfc3e282b955bd56218d21c0616481f65eb"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000017
18inherit meson pkgconfig manpages
19
Andrew Geissler87f5cff2022-09-30 13:13:31 -050020PACKAGECONFIG ??= "intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv tests install-test-programs"
21PACKAGECONFIG[intel] = "-Dintel=enabled,-Dintel=disabled,libpciaccess"
22PACKAGECONFIG[radeon] = "-Dradeon=enabled,-Dradeon=disabled"
23PACKAGECONFIG[amdgpu] = "-Damdgpu=enabled,-Damdgpu=disabled"
24PACKAGECONFIG[nouveau] = "-Dnouveau=enabled,-Dnouveau=disabled"
25PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=enabled,-Dvmwgfx=disabled"
26PACKAGECONFIG[omap] = "-Domap=enabled,-Domap=disabled"
27PACKAGECONFIG[exynos] = "-Dexynos=enabled,-Dexynos=disabled"
28PACKAGECONFIG[freedreno] = "-Dfreedreno=enabled,-Dfreedreno=disabled"
29PACKAGECONFIG[tegra] = "-Dtegra=enabled,-Dtegra=disabled"
30PACKAGECONFIG[vc4] = "-Dvc4=enabled,-Dvc4=disabled"
31PACKAGECONFIG[etnaviv] = "-Detnaviv=enabled,-Detnaviv=disabled"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000032PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050033PACKAGECONFIG[valgrind] = "-Dvalgrind=enabled,-Dvalgrind=disabled,valgrind"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000034PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050035PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=enabled,-Dcairo-tests=disabled"
36PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000037PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050038PACKAGECONFIG[manpages] = "-Dman-pages=enabled,-Dman-pages=disabled,libxslt-native xmlto-native python3-docutils-native"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000039
40ALLOW_EMPTY:${PN}-drivers = "1"
41PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
Andrew Geissler517393d2023-01-13 08:55:19 -060042 ${PN}-intel ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000043 ${PN}-etnaviv"
44
45RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \
46 ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
47 ${PN}-etnaviv"
48
49FILES:${PN}-tests = "${bindir}/*"
50FILES:${PN}-radeon = "${libdir}/libdrm_radeon.so.*"
51FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*"
52FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*"
53FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*"
54FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +000055FILES:${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"