mark boards as experimental
[openadk.git] / package / xcb-proto / Makefile
blobaa1db6fd63bb3f9e1abb00db92e219ddff8c78a3
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= xcb-proto
7 PKG_VERSION:= 1.10
8 PKG_RELEASE:= 1
9 PKG_DESCR:= xml-xcb protocol descriptions
10 PKG_SECTION:= dev/header
11 PKG_HASH:= d0e6a2c8aed8af430edd011bb139368480d556b0829adcf1e1ca5708d1fc04b9
12 HOST_BUILDDEP:= python2-host
13 PKG_SITES:= http://xcb.freedesktop.org/dist/
14 PKG_OPTS:= dev devonly
16 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
18 PKG_SUBPKGS:= XCB_PROTO XCB_PYTHON
19 PKGSC_XCB_PYTHON:= x11/misc
21 include $(ADK_TOPDIR)/mk/host.mk
22 include $(ADK_TOPDIR)/mk/package.mk
24 $(eval $(call HOST_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE}))
25 $(eval $(call PKG_template,XCB_PROTO,xcb-proto,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
26 $(eval $(call PKG_template,XCB_PYTHON,xcb-python,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKGSC_XCB_PYTHON}))
28 include $(ADK_TOPDIR)/mk/python.mk
30 HOST_STYLE:= auto
31 CONFIGURE_ENV+= PYTHON=$(PYTHON)
33 # pkg-config variables are not fixed up with sysroot
34 hostpost-install:
35 $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_HOST_DIR)|' \
36 $(STAGING_HOST_DIR)/usr/lib/pkgconfig/xcb-proto.pc
38 post-build:
39 ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb
40 ${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb
41 $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_TARGET_DIR)|' \
42 $(WRKBUILD)/xcb-proto.pc
44 xcb-python-install:
45 $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
46 ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
47 ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
48 ${INSTALL_DIR} ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
49 ${CP} ${WRKINST}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen/*.py \
50 ${IDIR_XCB_PYTHON}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen
52 include ${ADK_TOPDIR}/mk/host-bottom.mk
53 include ${ADK_TOPDIR}/mk/pkg-bottom.mk