Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(TOPDIR)/rules.mk
  4. PKG_NAME:= libdrm
  5. PKG_VERSION:= 2.4.22
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= baf6e005001c8cf739b499bcf2ca9dfb
  8. PKG_DESCR:= DRM library
  9. PKG_SECTION:= libs
  10. PKG_BUILDDEP:= libpthread-stubs cairo
  11. PKG_URL:= http://dri.freedesktop.org/wiki/
  12. PKG_SITES:= http://dri.freedesktop.org/libdrm/
  13. PKG_SUBPKGS:= LIBDRM LIBDRM_DEV
  14. PKGSD_LIBDRM_DEV:= DRM headers
  15. PKGSC_LIBDRM_DEV:= devel
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,LIBDRM,libdrm,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,LIBDRM_DEV,libdrm-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDRM_DEV},${PKGSC_LIBDRM_DEV}))
  19. libdrm-install:
  20. $(INSTALL_DIR) $(IDIR_LIBDRM)/usr/lib
  21. $(CP) $(WRKINST)/usr/lib/libdrm*.so* \
  22. $(IDIR_LIBDRM)/usr/lib
  23. libdrm-dev-install:
  24. $(INSTALL_DIR) $(IDIR_LIBDRM_DEV)/usr/lib/pkgconfig
  25. $(INSTALL_DATA) ${WRKINST}/usr/lib/pkgconfig/*.pc \
  26. $(IDIR_LIBDRM_DEV)/usr/lib/pkgconfig
  27. $(INSTALL_DIR) $(IDIR_LIBDRM_DEV)/usr/include
  28. ${CP} ${WRKINST}/usr/include/* \
  29. $(IDIR_LIBDRM_DEV)/usr/include
  30. include ${TOPDIR}/mk/pkg-bottom.mk