Browse Source

fix xbmc build, it uses distutils to find python include dir

Waldemar Brodkorb 12 years ago
parent
commit
f31d124574

+ 1 - 2
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
 
@@ -105,8 +106,6 @@ hostpost-install:
 		$(STAGING_HOST_DIR)/usr/bin/pgen
 
 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#" \

+ 0 - 10
package/python2/files/patch-Lib_distutils_sysconfig_py

@@ -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:

+ 1 - 1
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