Makefile 1.4 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:= 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. include $(TOPDIR)/mk/package.mk
  13. $(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  14. $(eval $(call PKG_template,XCB_PYTHON,xcb-python,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  15. include $(TOPDIR)/mk/python.mk
  16. CONFIGURE_ENV+= PYTHON=$(PYTHON)
  17. xcb-proto-install:
  18. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/share/
  19. ${CP} ${WRKINST}/usr/share/xcb ${IDIR_XCB_PROTO}/usr/share
  20. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/xcb
  21. ${CP} ${WRKINST}/usr/share/xcb/* ${STAGING_DIR}/usr/share/xcb
  22. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/lib/pkgconfig
  23. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/xcb-proto.pc \
  24. ${IDIR_XCB_PROTO}/usr/lib/pkgconfig
  25. xcb-python-install:
  26. ${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  27. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  28. ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  29. include ${TOPDIR}/mk/pkg-bottom.mk