Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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:= xcb-proto
  5. PKG_VERSION:= 1.6
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= XML-XCB protocol descriptions
  8. PKG_SECTION:= x11/devel
  9. PKG_BUILDDEP:= python2
  10. PKG_MD5SUM:= 8d29695e8faf5fcdce568c66eaeaa5ee
  11. PKG_SITES:= ${MASTER_SITE_XORG}
  12. PKG_SUBPKGS:= XCB_PROTO XCB_PYTHON
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  15. $(eval $(call PKG_template,XCB_PYTHON,xcb-python,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  16. include $(TOPDIR)/mk/python.mk
  17. CONFIGURE_ENV+= PYTHON=$(PYTHON)
  18. xcb-proto-install:
  19. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/share
  20. ${CP} ${WRKINST}/usr/share/xcb ${IDIR_XCB_PROTO}/usr/share
  21. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/xcb
  22. ${CP} ${WRKINST}/usr/share/xcb/* ${STAGING_DIR}/usr/share/xcb
  23. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/lib/pkgconfig
  24. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/xcb-proto.pc \
  25. ${IDIR_XCB_PROTO}/usr/lib/pkgconfig
  26. xcb-python-install:
  27. ${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  28. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  29. ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  30. include ${TOPDIR}/mk/pkg-bottom.mk