Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.8
  6. PKG_RELEASE:= 1
  7. PKG_DESCR:= XML-XCB protocol descriptions
  8. PKG_SECTION:= devel
  9. PKG_MD5SUM:= 8d2cdb770129cef563088a90c5bec768
  10. PKG_BUILDDEP:= autotool bzip2-host python2-host
  11. PKG_SITES:= http://xcb.freedesktop.org/dist/
  12. PKG_OPTS:= dev devonly
  13. PKG_SUBPKGS:= XCB_PROTO XCB_PYTHON
  14. PKGSC_XCB_PYTHON:= x11/misc
  15. include $(TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. $(eval $(call PKG_template,XCB_PYTHON,xcb-python,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_XCB_PYTHON}))
  18. include $(TOPDIR)/mk/python.mk
  19. CONFIGURE_ENV+= PYTHON=$(PYTHON)
  20. CONFIGURE_ARGS+= --datadir=${STAGING_DIR}/usr/share
  21. post-build:
  22. ${INSTALL_DIR} ${STAGING_DIR}/usr/share/xcb
  23. ${CP} ${WRKBUILD}/src/*.xml ${STAGING_DIR}/usr/share/xcb
  24. xcb-python-install:
  25. $(INSTALL_DIR) ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  26. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  27. ${STAGING_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  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