Makefile 1.5 KB

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