add hifiberry dacplus support
[openadk.git] / package / xcb-proto / Makefile
blob67947e882fd0368c8aa0c544c4f4067d6e2dd8dc
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.12
8 PKG_RELEASE:= 1
9 PKG_HASH:= cfa49e65dd390233d560ce4476575e4b76e505a0e0bacdfb5ba6f8d0af53fd59
10 PKG_DESCR:= xml-xcb protocol descriptions
11 PKG_SECTION:= dev/header
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