0013-wayland-drm-install-wayland-drm.xml-to-the-configure.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. From 4e92d56ba91f5bedc51881bddbe47f665eddca48 Mon Sep 17 00:00:00 2001
  2. From: Frank Binns <frank.binns@imgtec.com>
  3. Date: Thu, 18 Aug 2016 15:52:28 +0100
  4. Subject: [PATCH] wayland-drm: install wayland-drm.xml to the configured
  5. pkgdatadir
  6. Add a pkg-config file as well so that it can be located without hardcoding the
  7. path.
  8. ---
  9. src/egl/wayland/wayland-drm/meson.build | 15 +++++++++++++++
  10. src/egl/wayland/wayland-drm/wayland-drm.pc.in | 7 +++++++
  11. 2 files changed, 22 insertions(+)
  12. create mode 100644 src/egl/wayland/wayland-drm/wayland-drm.pc.in
  13. diff --git a/src/egl/wayland/wayland-drm/meson.build b/src/egl/wayland/wayland-drm/meson.build
  14. index b4782a0..f291ef9 100644
  15. --- a/src/egl/wayland/wayland-drm/meson.build
  16. +++ b/src/egl/wayland/wayland-drm/meson.build
  17. @@ -49,6 +49,21 @@ libwayland_drm = static_library(
  18. build_by_default : false,
  19. )
  20. +install_data('wayland-drm.xml')
  21. +
  22. +pkg.generate(
  23. + filebase : 'wayland-drm',
  24. + name : 'Mesa Wayland Protocols',
  25. + description : 'Mesa Wayland protocol files',
  26. + version : meson.project_version(),
  27. + variables : [
  28. + 'datarootdir=${prefix}/' + get_option('datadir'),
  29. + 'pkgdatadir=${pc_sysrootdir}${datarootdir}/' + meson.project_name(),
  30. + ],
  31. + install_dir : '@0@/@1@/pkgconfig'.format(get_option('prefix'),
  32. + get_option('datadir')),
  33. +)
  34. +
  35. # linux-dmabuf isn't part of wayland-drm, but this happens to be the only
  36. # place which is a) guaranteed to be built when building either or both
  37. # of EGL and Vulkan WSI, and b) guaranteed to be included before both,
  38. diff --git a/src/egl/wayland/wayland-drm/wayland-drm.pc.in b/src/egl/wayland/wayland-drm/wayland-drm.pc.in
  39. new file mode 100644
  40. index 0000000..d08ccda
  41. --- /dev/null
  42. +++ b/src/egl/wayland/wayland-drm/wayland-drm.pc.in
  43. @@ -0,0 +1,7 @@
  44. +prefix=@prefix@
  45. +datarootdir=@datarootdir@
  46. +pkgdatadir=${pc_sysrootdir}@datadir@/@PACKAGE@
  47. +
  48. +Name: @PACKAGE_NAME@ Wayland Protocols
  49. +Description: @PACKAGE_NAME@ Wayland protocol files
  50. +Version: @PACKAGE_VERSION@
  51. \ No newline at end of file