Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. post-install:
  19. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/xcb
  20. $(INSTALL_DIR) ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  21. ${CP} ${WRKBUILD}/src/*.xml ${STAGING_DIR}/usr/share/xcb
  22. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  23. ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  24. xcb-proto-install:
  25. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/share
  26. ${CP} ${WRKINST}/usr/share/xcb ${IDIR_XCB_PROTO}/usr/share
  27. ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/lib/pkgconfig
  28. ${INSTALL_DATA} ${WRKINST}/usr/lib/pkgconfig/xcb-proto.pc \
  29. ${IDIR_XCB_PROTO}/usr/lib/pkgconfig
  30. xcb-python-install:
  31. ${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  32. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  33. ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  34. include ${TOPDIR}/mk/pkg-bottom.mk