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.

73 lines
1.8 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.102
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  10. PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
  11. PKG_HASH:=8bcbf9336c28e393d76c1f16d7e79e394a7fce8a2e929d52d3ad7ad8525ba05b
  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) $(1)/usr/include
  51. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdrm.so* $(1)/usr/lib/
  54. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libdrm.pc $(1)/usr/lib/pkgconfig
  56. endef
  57. define Package/libdrm/install
  58. $(INSTALL_DIR) $(1)/usr/lib
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libdrm.so.* $(1)/usr/lib/
  60. endef
  61. $(eval $(call BuildPackage,libdrm))