Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 $(ADK_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:= dev/header
  9. PKG_MD5SUM:= 2b9dc6442156aba2bfb4133cb9d7cf46
  10. HOST_BUILDDEP:= python2-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 $(ADK_TOPDIR)/mk/host.mk
  17. include $(ADK_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 $(ADK_TOPDIR)/mk/python.mk
  22. HOST_STYLE:= auto
  23. CONFIGURE_ENV+= PYTHON=$(PYTHON)
  24. # pkg-config variables are not fixed up with sysroot
  25. hostpost-install:
  26. $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_HOST_DIR)|' \
  27. $(STAGING_HOST_DIR)/usr/lib/pkgconfig/xcb-proto.pc
  28. post-build:
  29. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb
  30. ${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb
  31. $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_TARGET_DIR)|' \
  32. $(WRKBUILD)/xcb-proto.pc
  33. xcb-python-install:
  34. $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  35. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  36. ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  37. ${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  38. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  39. ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  40. include ${ADK_TOPDIR}/mk/host-bottom.mk
  41. include ${ADK_TOPDIR}/mk/pkg-bottom.mk