blob: b6458984811a8d71890da4d7029f772388385532 [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 Geisslerd1e89492021-02-12 15:35:20 -060013SRC_URI = "http://dri.freedesktop.org/libdrm/${BP}.tar.xz \
Andrew Geisslerd1e89492021-02-12 15:35:20 -060014 "
Andrew Geisslerc3d88e42020-10-02 09:45:00 -050015
Andrew Geissler5f350902021-07-23 13:09:54 -040016SRC_URI[sha256sum] = "c554cef03b033636a975543eab363cc19081cb464595d3da1ec129f87370f888"
Andrew Geissler82c905d2020-04-13 13:39:40 -050017
18inherit meson pkgconfig manpages
19
20PACKAGECONFIG ??= "libkms intel radeon amdgpu nouveau vmwgfx omap freedreno vc4 etnaviv install-test-programs"
21PACKAGECONFIG[libkms] = "-Dlibkms=true,-Dlibkms=false"
22PACKAGECONFIG[intel] = "-Dintel=true,-Dintel=false,libpciaccess"
23PACKAGECONFIG[radeon] = "-Dradeon=true,-Dradeon=false"
24PACKAGECONFIG[amdgpu] = "-Damdgpu=true,-Damdgpu=false"
25PACKAGECONFIG[nouveau] = "-Dnouveau=true,-Dnouveau=false"
26PACKAGECONFIG[vmwgfx] = "-Dvmwgfx=true,-Dvmwgfx=false"
27PACKAGECONFIG[omap] = "-Domap=true,-Domap=false"
28PACKAGECONFIG[exynos] = "-Dexynos=true,-Dexynos=false"
29PACKAGECONFIG[freedreno] = "-Dfreedreno=true,-Dfreedreno=false"
30PACKAGECONFIG[tegra] = "-Dtegra=true,-Dtegra=false"
31PACKAGECONFIG[vc4] = "-Dvc4=true,-Dvc4=false"
32PACKAGECONFIG[etnaviv] = "-Detnaviv=true,-Detnaviv=false"
33PACKAGECONFIG[freedreno-kgsl] = "-Dfreedreno-kgsl=true,-Dfreedreno-kgsl=false"
34PACKAGECONFIG[valgrind] = "-Dvalgrind=true,-Dvalgrind=false,valgrind"
35PACKAGECONFIG[install-test-programs] = "-Dinstall-test-programs=true,-Dinstall-test-programs=false"
36PACKAGECONFIG[cairo-tests] = "-Dcairo-tests=true,-Dcairo-tests=false"
37PACKAGECONFIG[udev] = "-Dudev=true,-Dudev=false,udev"
Andrew Geisslerd1e89492021-02-12 15:35:20 -060038PACKAGECONFIG[manpages] = "-Dman-pages=true,-Dman-pages=false,libxslt-native xmlto-native python3-docutils-native"
Andrew Geissler82c905d2020-04-13 13:39:40 -050039
Patrick Williams213cb262021-08-07 19:21:33 -050040ALLOW_EMPTY:${PN}-drivers = "1"
Andrew Geissler82c905d2020-04-13 13:39:40 -050041PACKAGES =+ "${PN}-tests ${PN}-drivers ${PN}-radeon ${PN}-nouveau ${PN}-omap \
42 ${PN}-intel ${PN}-exynos ${PN}-kms ${PN}-freedreno ${PN}-amdgpu \
43 ${PN}-etnaviv"
44
Patrick Williams213cb262021-08-07 19:21:33 -050045RRECOMMENDS:${PN}-drivers = "${PN}-radeon ${PN}-nouveau ${PN}-omap ${PN}-intel \
Andrew Geissler82c905d2020-04-13 13:39:40 -050046 ${PN}-exynos ${PN}-freedreno ${PN}-amdgpu \
47 ${PN}-etnaviv"
48
Patrick Williams213cb262021-08-07 19:21:33 -050049FILES:${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.*"
55FILES:${PN}-kms = "${libdir}/libkms*.so.*"
56FILES:${PN}-freedreno = "${libdir}/libdrm_freedreno.so.*"
57FILES:${PN}-amdgpu = "${libdir}/libdrm_amdgpu.so.* ${datadir}/${PN}/amdgpu.ids"
58FILES:${PN}-etnaviv = "${libdir}/libdrm_etnaviv.so.*"
Andrew Geissler82c905d2020-04-13 13:39:40 -050059
60BBCLASSEXTEND = "native nativesdk"