Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | SUMMARY = "Userspace interface to the kernel DRM services" |
| 2 | DESCRIPTION = "The runtime library for accessing the kernel DRM services. DRM \ |
| 3 | stands for \"Direct Rendering Manager\", which is the kernel portion of the \ |
| 4 | \"Direct Rendering Infrastructure\" (DRI). DRI is required for many hardware \ |
| 5 | accelerated OpenGL drivers." |
| 6 | HOMEPAGE = "http://dri.freedesktop.org" |
| 7 | SECTION = "x11/base" |
| 8 | LICENSE = "MIT" |
| 9 | LIC_FILES_CHKSUM = "file://xf86drm.c;beginline=9;endline=32;md5=c8a3b961af7667c530816761e949dc71" |
| 10 | PROVIDES = "drm" |
| 11 | DEPENDS = "libpthread-stubs" |
| 12 | |
| 13 | SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz \ |
| 14 | " |
| 15 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 16 | SRC_URI[sha256sum] = "554cfbfe0542bddb391b4e3e05bfbbfc3e282b955bd56218d21c0616481f65eb" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 17 | |
| 18 | inherit meson pkgconfig manpages |
| 19 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 20 | PACKAGECONFIG ??= "intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv tests install-test-programs" |
| 21 | PACKAGECONFIG[intel] = "-Dintel=enabled,-Dintel=disabled,libpciaccess" |
| 22 | PACKAGECONFIG[radeon] = "-Dradeon=enabled,-Dradeon=disabled" |
| 23 | PACKAGECONFIG[amdgpu] = "-Damdgpu=enabled,-Damdgpu=disabled" |
| 24 | PACKAGECONFIG[nouveau] = "-Dnouveau=enabled,-Dnouveau=disabled" |
| 25 | PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=enabled,-Dvmwgfx=disabled" |
| 26 | PACKAGECONFIG[omap] = "-Domap=enabled,-Domap=disabled" |
| 27 | PACKAGECONFIG[exynos] = "-Dexynos=enabled,-Dexynos=disabled" |
| 28 | PACKAGECONFIG[freedreno] = "-Dfreedreno=enabled,-Dfreedreno=disabled" |
| 29 | PACKAGECONFIG[tegra] = "-Dtegra=enabled,-Dtegra=disabled" |
| 30 | PACKAGECONFIG[vc4] = "-Dvc4=enabled,-Dvc4=disabled" |
| 31 | PACKAGECONFIG[etnaviv] = "-Detnaviv=enabled,-Detnaviv=disabled" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 32 | PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false" |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 33 | PACKAGECONFIG[valgrind] = "-Dvalgrind=enabled,-Dvalgrind=disabled,valgrind" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 34 | PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false" |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 35 | PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=enabled,-Dcairo-tests=disabled" |
| 36 | PACKAGECONFIG[tests] = "-Dtests=true,-Dtests=false" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 37 | PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev" |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 38 | PACKAGECONFIG[manpages] = "-Dman-pages=enabled,-Dman-pages=disabled,libxslt-native xmlto-native python3-docutils-native" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 39 | |
| 40 | ALLOW_EMPTY:${PN}-drivers = "1" |
| 41 | PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 42 | ${PN}-intel ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 43 | ${PN}-etnaviv" |
| 44 | |
| 45 | RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \ |
| 46 | ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \ |
| 47 | ${PN}-etnaviv" |
| 48 | |
| 49 | FILES:${PN}-tests = "${bindir}/*" |
| 50 | FILES:${PN}-radeon = "${libdir}/libdrm_radeon.so.*" |
| 51 | FILES:${PN}-nouveau = "${libdir}/libdrm_nouveau.so.*" |
| 52 | FILES:${PN}-omap = "${libdir}/libdrm_omap.so.*" |
| 53 | FILES:${PN}-intel = "${libdir}/libdrm_intel.so.*" |
| 54 | FILES:${PN}-exynos = "${libdir}/libdrm_exynos.so.*" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 55 | FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*" |
| 56 | FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids" |
| 57 | FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*" |
| 58 | |
| 59 | BBCLASSEXTEND = "native nativesdk" |