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.

70 lines
1.5 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.97
  8. PKG_RELEASE:=1
  9. PKG_SOURCE_URL:=https://dri.freedesktop.org/libdrm
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_HASH:=77d0ccda3e10d6593398edb70b1566bfe1a23a39bd3da98ace2147692eadd123
  12. PKG_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/libdrm
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. DEPENDS:=+libpciaccess
  20. TITLE:=libdrm
  21. URL:=https://dri.freedesktop.org/
  22. endef
  23. define Package/libdrm/description
  24. LIBDRM is the cross-driver middleware which allows user-space applications
  25. (such as Mesa and 2D drivers) to communicate with the Kernel by the means
  26. of the DRI protocol.
  27. endef
  28. CONFIGURE_ARGS += \
  29. --disable-udev \
  30. --enable-kms \
  31. --disable-omap-experimental-api \
  32. --disable-exynos-experimental-api \
  33. --disable-tegra-experimental-api \
  34. --disable-cairo-tests \
  35. --disable-manpages \
  36. --disable-valgrind
  37. define Build/InstallDev
  38. $(INSTALL_DIR) \
  39. $(1)/usr/include \
  40. $(1)/usr/lib
  41. $(CP) \
  42. $(PKG_INSTALL_DIR)/usr/include/* \
  43. $(1)/usr/include/
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
  46. $(1)/usr/lib/
  47. endef
  48. define Package/libdrm/install
  49. $(INSTALL_DIR) \
  50. $(1)/usr/lib
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  53. $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,libdrm))