Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= xcb-proto
  5. PKG_VERSION:= 1.14.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 85cd21e9d9fbc341d0dbf11eace98d55d7db89fda724b0e598855fcddf0944fd
  8. PKG_DESCR:= xml-xcb protocol descriptions
  9. PKG_SECTION:= dev/header
  10. HOST_BUILDDEP:= python3-host
  11. PKG_SITES:= http://xcb.freedesktop.org/dist/
  12. PKG_OPTS:= dev devonly
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. include $(ADK_TOPDIR)/mk/host.mk
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call HOST_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. include $(ADK_TOPDIR)/mk/python3.mk
  19. HOST_STYLE:= auto
  20. CONFIGURE_ENV+= PYTHON=$(PYTHON)
  21. hostpost-install:
  22. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/share/xcb
  23. ${CP} ${WRKBUILD}/src/*.xml ${STAGING_HOST_DIR}/usr/share/xcb
  24. post-build:
  25. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb
  26. ${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb
  27. xcb-proto-install:
  28. $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  29. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  30. ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  31. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  32. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  33. ${IDIR_XCB_PROTO}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  34. include ${ADK_TOPDIR}/mk/host-bottom.mk
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk