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.

79 lines
1.9 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.104
  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:=d66ad8b5c2441015ac1333e40137bb803c3bde3612ff040286fcc12158ea1bcb
  12. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_CONFIG_DEPENDS:= \
  15. CONFIG_LIBDRM_INTEL
  16. PKG_INSTALL:=1
  17. PKG_BUILD_DEPENDS:=meson/host
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../../devel/meson/meson.mk
  20. define Package/libdrm
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+LIBDRM_INTEL:libpciaccess
  24. TITLE:=libdrm
  25. URL:=https://dri.freedesktop.org/
  26. endef
  27. define Package/libdrm/description
  28. LIBDRM is the cross-driver middleware which allows user-space applications
  29. (such as Mesa and 2D drivers) to communicate with the Kernel by the means
  30. of the DRI protocol.
  31. endef
  32. define Package/libdrm/config
  33. source "$(SOURCE)/Config.in"
  34. endef
  35. MESON_ARGS += \
  36. $(if $(CONFIG_LIBDRM_INTEL),-Dintel=true -Dlibkms=true,-Dintel=false -Dlibkms=false) \
  37. -Dradeon=false \
  38. -Damdgpu=false \
  39. -Dnouveau=false \
  40. -Dvmwgfx=false \
  41. -Domap=false \
  42. -Dexynos=false \
  43. -Dfreedreno=false \
  44. -Dtegra=false \
  45. -Dvc4=false \
  46. -Detnaviv=false \
  47. -Dcairo-tests=false \
  48. -Dman-pages=false \
  49. -Dvalgrind=false \
  50. -Dfreedreno-kgsl=false \
  51. -Dinstall-test-programs=false \
  52. -Dudev=false
  53. define Build/InstallDev
  54. $(INSTALL_DIR) $(1)/usr/include
  55. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  56. $(INSTALL_DIR) $(1)/usr/lib
  57. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/
  58. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  59. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig
  60. endef
  61. define Package/libdrm/install
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so.* $(1)/usr/lib/
  64. endef
  65. $(eval $(call BuildPackage,libdrm))