summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-30 18:42:39 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-30 18:42:39 +0100
commitf31d1245743f5c7616b2fafc119daaf83f0086b1 (patch)
treedd1e62968dcc6aabcbacc7f59787b2c4ba866da5
parent8e8512391c668fc7074f812f15eabe8f176fb01e (diff)
fix xbmc build, it uses distutils to find python include dir
-rw-r--r--package/python2/Makefile3
-rw-r--r--package/python2/files/patch-Lib_distutils_sysconfig_py10
-rw-r--r--package/xcb-proto/Makefile2
3 files changed, 2 insertions, 13 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index 1fa0cce94..36bcdf7fc 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -97,6 +97,7 @@ CONFIGURE_ARGS:= --with-threads \
HOST_STYLE:= auto
HOST_CONFIGURE_ARGS:= --with-threads \
+ --enable-shared \
--disable-toolbox-glue \
--without-cxx-main
@@ -106,8 +107,6 @@ hostpost-install:
pre-configure:
(cd $(WRKBUILD) && patch -p1 < \
- $(TOPDIR)/package/python2/files/patch-Lib_distutils_sysconfig_py )
- (cd $(WRKBUILD) && patch -p1 < \
$(TOPDIR)/package/python2/files/patch-Misc_python-config_in )
$(SED) "s#@EXENAME@#$(STAGING_HOST_DIR)/usr/bin/python#" \
$(WRKBUILD)/Misc/python-config.in
diff --git a/package/python2/files/patch-Lib_distutils_sysconfig_py b/package/python2/files/patch-Lib_distutils_sysconfig_py
deleted file mode 100644
index 30aae0816..000000000
--- a/package/python2/files/patch-Lib_distutils_sysconfig_py
+++ /dev/null
@@ -1,10 +0,0 @@
---- Python-2.7.5.orig/Lib/distutils/sysconfig.py 2013-05-12 05:32:42.000000000 +0200
-+++ Python-2.7.5/Lib/distutils/sysconfig.py 2013-11-03 18:03:53.000000000 +0100
-@@ -76,6 +76,7 @@ def get_python_inc(plat_specific=0, pref
- """
- if prefix is None:
- prefix = plat_specific and EXEC_PREFIX or PREFIX
-+ prefix = re.sub('host_', 'target_', prefix)
-
- if os.name == "posix":
- if python_build:
diff --git a/package/xcb-proto/Makefile b/package/xcb-proto/Makefile
index 62989d836..2db4b605e 100644
--- a/package/xcb-proto/Makefile
+++ b/package/xcb-proto/Makefile
@@ -9,7 +9,7 @@ PKG_RELEASE:= 1
PKG_DESCR:= XML-XCB protocol descriptions
PKG_SECTION:= devel
PKG_MD5SUM:= 8d2cdb770129cef563088a90c5bec768
-PKG_BUILDDEP:= python2-host
+PKG_BUILDDEP:= autotool python2-host
PKG_SITES:= http://xcb.freedesktop.org/dist/
PKG_OPTS:= dev devonly