libxcb: fix path to Python modules
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 May 2010 19:52:04 +0000 (21:52 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 7 May 2010 19:28:33 +0000 (21:28 +0200)
commit4880edd506a2c629efa4ccf38f27f47d5d5d8804
tree54c5ccec1648a4dc89256183aefe8f2cc00b84cd
parentb65e735291fe91ae97b976be211c3e04e9d05d23
libxcb: fix path to Python modules

When building libxcb, the variable XCBPROTO_XCBPYTHONDIR must point to
the location where the Python modules needed to run the c_client.py
program are installed. The path
$(STAGING_DIR)/usr/lib/python2.6/site-packages was hardcoded. However,
it doesn't work when the version of Python installed on the host is
Python 2.5.

Therefore, add a little bit of magic to compute the host Python
version.

We also verify that Python is available on the host, as we don't build
it in Buildroot.

Fixes bug #1531.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/x11r7/libxcb/libxcb.mk
toolchain/dependencies/dependencies.sh