1
0

Makefile 1.8 KB

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