1
0

Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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.70
  8. PKG_RELEASE:=1
  9. PKG_SOURCE_URL:=http://dri.freedesktop.org/libdrm
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_MD5SUM:=920957cfe25a80efb02be9bd90bf3c1e
  12. PKG_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libdrm
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. DEPENDS:=
  18. TITLE:=libdrm
  19. URL:=http://dri.freedesktop.org/
  20. endef
  21. CONFIGURE_ARGS += \
  22. --disable-udev \
  23. --enable-kms \
  24. --disable-intel \
  25. --disable-radeon \
  26. --disable-amdgpu \
  27. --disable-nouveau \
  28. --disable-vmwgfx \
  29. --disable-omap-experimental-api \
  30. --disable-exynos-experimental-api \
  31. --disable-freedreno \
  32. --disable-freedreno-kgsl \
  33. --disable-tegra-experimental-api \
  34. --disable-vc4 \
  35. --disable-cairo-tests \
  36. --disable-manpages \
  37. --disable-valgrind
  38. define Build/InstallDev
  39. $(INSTALL_DIR) \
  40. $(1)/usr/include \
  41. $(1)/usr/lib
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/include/* \
  44. $(1)/usr/include/
  45. $(CP) \
  46. $(PKG_INSTALL_DIR)/usr/lib/{pkgconfig,*.so*} \
  47. $(1)/usr/lib/
  48. endef
  49. define Package/libdrm/install
  50. $(INSTALL_DIR) \
  51. $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/*.so* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libdrm))