Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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:= dev/header
  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. # pkg-config variables are not fixed up with sysroot
  25. hostpost-install:
  26. $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_HOST_DIR)|' \
  27. -e 's|^\(pythondir=\)|\1$(STAGING_HOST_DIR)|' \
  28. $(STAGING_HOST_DIR)/usr/lib/pkgconfig/xcb-proto.pc
  29. post-build:
  30. ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb
  31. ${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb
  32. $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_TARGET_DIR)|' \
  33. -e 's|^\(pythondir=\)|\1$(STAGING_TARGET_DIR)|' \
  34. $(WRKBUILD)/xcb-proto.pc
  35. xcb-python-install:
  36. $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  37. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  38. ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  39. ${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  40. ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
  41. ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
  42. include ${TOPDIR}/mk/host-bottom.mk
  43. include ${TOPDIR}/mk/pkg-bottom.mk