From 540ca543451de3afe658b09bfb85e54344d34f45 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 14 Dec 2010 20:36:15 +0100 Subject: fix python-config to use target include dir --- package/python2/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'package/python2/Makefile') diff --git a/package/python2/Makefile b/package/python2/Makefile index 3f24b5b5d..9785db316 100644 --- a/package/python2/Makefile +++ b/package/python2/Makefile @@ -4,9 +4,9 @@ include ${TOPDIR}/rules.mk PKG_NAME:= python2 -PKG_VERSION:= 2.7 -PKG_RELEASE:= 5 -PKG_MD5SUM:= 35f56b092ecf39a6bd59d64f142aae0f +PKG_VERSION:= 2.7.1 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 15ed56733655e3fab785e49a7278d2fb PKG_DESCR:= Python scripting language (Version 2) PKG_SECTION:= lang PKG_DEPENDS:= libpthread zlib libffi @@ -35,6 +35,7 @@ CONFIGURE_ARGS:= --with-threads \ --without-cxx-main post-extract: + $(CP) ./files/python-config.in ${WRKBUILD}/Misc/python-config.in (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \ OPT="$(HOSTCFLAGS)" \ ./configure --without-cxx-main --without-threads \ @@ -59,6 +60,6 @@ post-install: ${CP} ${WRKINST}/usr/lib/libpython*.so* ${IDIR_PYTHON2}/usr/lib ${CP} ${WRKINST}/usr/lib/python2.7/* ${IDIR_PYTHON2}/usr/lib/python2.7 ${CP} ${WRKINST}/usr/include/python2.7/* ${IDIR_PYTHON2}/usr/include/python2.7 - -find ${IDIR_PYTHON2} -name \*.pyo -exec rm {} \; + -find ${IDIR_PYTHON2} -name "\*.pyc" -o -name "*\.pyo" -exec rm {} \; include ${TOPDIR}/mk/pkg-bottom.mk -- cgit v1.2.3