summaryrefslogtreecommitdiff
path: root/package/python2/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-27 21:30:43 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-27 21:30:43 +0100
commitae3d4616ed9c19a29d656193254657f93d612fa2 (patch)
tree139e4b901bfef70776833359d8dc747a8a9fd292 /package/python2/Makefile
parent0f77fa26b817ae7a022fd3f1682b1c5a31905682 (diff)
try to fixup mesalib compile, it needs libxml2 python module
Diffstat (limited to 'package/python2/Makefile')
-rw-r--r--package/python2/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index ee4768c3d..1fa0cce94 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -5,11 +5,11 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= python2
PKG_VERSION:= 2.7.5
-PKG_RELEASE:= 5
+PKG_RELEASE:= 6
PKG_MD5SUM:= b4f01a1d0ba0b46b05c73b2ac909b1df
PKG_DESCR:= Python scripting language (Version 2)
PKG_SECTION:= lang
-PKG_BUILDDEP:= libffi python2-host autotool
+PKG_BUILDDEP:= autotool libffi python2-host
PKG_DEPENDS:= libpthread libffi libgcc
PKG_URL:= http://www.python.org/
PKG_SITES:= http://www.python.org/ftp/python/${PKG_VERSION}/
@@ -104,6 +104,14 @@ hostpost-install:
$(INSTALL_BIN) ${WRKBUILD}/Parser/pgen \
$(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#" \
+ $(WRKBUILD)/Misc/python-config.in
+
python2-install: ${INSTALL_MODS_y} ${INSTALL_MODS_m}
${INSTALL_DIR} ${IDIR_PYTHON2}/usr/bin ${IDIR_PYTHON2}/usr/lib
${INSTALL_DIR} ${IDIR_PYTHON2}/usr/lib/python2.7