summaryrefslogtreecommitdiff
path: root/package/xcb-proto
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-16 18:14:43 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-16 18:14:54 +0200
commit503659533a695a94a1591c3803080544f12e9a35 (patch)
tree4252d066e70ac971eac81e60beb82321de210a7d /package/xcb-proto
parent224199c2a01bb660242688aca506373e40b79775 (diff)
fix HOST_STYLE stuff, openjdk7 compile problems fixed
Diffstat (limited to 'package/xcb-proto')
-rw-r--r--package/xcb-proto/Makefile11
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