diff options
Diffstat (limited to 'package/xcb-proto')
-rw-r--r-- | package/xcb-proto/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/package/xcb-proto/Makefile b/package/xcb-proto/Makefile index c5097c513..2dcfcc5d1 100644 --- a/package/xcb-proto/Makefile +++ b/package/xcb-proto/Makefile @@ -27,12 +27,21 @@ $(eval $(call PKG_template,XCB_PYTHON,xcb-python,$(PKG_VERSION)-${PKG_RELEASE},$ include $(TOPDIR)/mk/python.mk +HOST_STYLE:= auto CONFIGURE_ENV+= PYTHON=$(PYTHON) -CONFIGURE_ARGS+= --datadir=${STAGING_TARGET_DIR}/usr/share + +# pkg-config variables are not fixed up with sysroot +hostpost-install: + $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_HOST_DIR)|' \ + -e 's|^\(pythondir=\)|\1$(STAGING_HOST_DIR)|' \ + $(STAGING_HOST_DIR)/usr/lib/pkgconfig/xcb-proto.pc post-build: ${INSTALL_DIR} ${STAGING_TARGET_DIR}/usr/share/xcb ${CP} ${WRKBUILD}/src/*.xml ${STAGING_TARGET_DIR}/usr/share/xcb + $(SED) 's|^\(xcbincludedir=\)|\1$(STAGING_TARGET_DIR)|' \ + -e 's|^\(pythondir=\)|\1$(STAGING_TARGET_DIR)|' \ + $(WRKBUILD)/xcb-proto.pc xcb-python-install: $(INSTALL_DIR) ${STAGING_TARGET_DIR}/usr/lib/python${PYTHON_VERSION}/site-packages/xcbgen |