You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
1.7 KiB

  1. # Copyright (C) 2007-2016 OpenWrt.org
  2. #
  3. # This is free software, licensed under the GNU General Public License v2.
  4. # See /LICENSE for more information.
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=libdrm
  7. PKG_VERSION:=2.4.101
  8. PKG_RELEASE:=1
  9. PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  11. PKG_HASH:=ddf31baa8e49473624860bd166ce654dc349873f7a6c7b3305964249315c78a7
  12. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_INSTALL:=1
  15. PKG_BUILD_DEPENDS:=meson/host
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../devel/meson/meson.mk
  18. define Package/libdrm
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. DEPENDS:=+libpciaccess
  22. TITLE:=libdrm
  23. URL:=https://dri.freedesktop.org/
  24. endef
  25. define Package/libdrm/description
  26. LIBDRM is the cross-driver middleware which allows user-space applications
  27. (such as Mesa and 2D drivers) to communicate with the Kernel by the means
  28. of the DRI protocol.
  29. endef
  30. MESON_ARGS += \
  31. -Dlibkms=false \
  32. -Dintel=false \
  33. -Dradeon=false \
  34. -Damdgpu=false \
  35. -Dnouveau=false \
  36. -Dvmwgfx=false \
  37. -Domap=false \
  38. -Dexynos=false \
  39. -Dfreedreno=false \
  40. -Dtegra=false \
  41. -Dvc4=false \
  42. -Detnaviv=false \
  43. -Dcairo-tests=false \
  44. -Dman-pages=false \
  45. -Dvalgrind=false \
  46. -Dfreedreno-kgsl=false \
  47. -Dinstall-test-programs=false \
  48. -Dudev=false
  49. define Build/InstallDev
  50. $(INSTALL_DIR) \
  51. $(1)/usr/include \
  52. $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/include/* \
  55. $(1)/usr/include/
  56. $(CP) \
  57. $(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
  58. $(1)/usr/lib/
  59. endef
  60. define Package/libdrm/install
  61. $(INSTALL_DIR) \
  62. $(1)/usr/lib
  63. $(CP) \
  64. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  65. $(1)/usr/lib/
  66. endef
  67. $(eval $(call BuildPackage,libdrm))