12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include $(ADK_TOPDIR)/rules.mk
- PKG_NAME:= xcb-proto
- PKG_VERSION:= 1.14.1
- PKG_RELEASE:= 1
- PKG_HASH:= 85cd21e9d9fbc341d0dbf11eace98d55d7db89fda724b0e598855fcddf0944fd
- PKG_DESCR:= xml-xcb protocol descriptions
- PKG_SECTION:= dev/header
- HOST_BUILDDEP:= python3-host
- PKG_SITES:= http://xcb.freedesktop.org/dist/
- PKG_OPTS:= dev devonly
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
- include $(ADK_TOPDIR)/mk/host.mk
- include $(ADK_TOPDIR)/mk/package.mk
- $(eval $(call HOST_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE}))
- $(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
- include $(ADK_TOPDIR)/mk/python3.mk
- HOST_STYLE:= auto
- CONFIGURE_ENV+= PYTHON=$(PYTHON)
- hostpost-install:
- ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/share/xcb
- ${CP} ${WRKBUILD}/src/*.xml ${STAGING_HOST_DIR}/usr/share/xcb
- post-build:
- ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb
- ${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb
- xcb-proto-install:
- $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
- ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
- ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
- ${INSTALL_DIR} ${IDIR_XCB_PROTO}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
- ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
- ${IDIR_XCB_PROTO}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
- include ${ADK_TOPDIR}/mk/host-bottom.mk
- include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|