summaryrefslogtreecommitdiff
path: root/package/python/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/python/Makefile')
-rw-r--r--package/python/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/package/python/Makefile b/package/python/Makefile
index a602c6706..d80b3a05a 100644
--- a/package/python/Makefile
+++ b/package/python/Makefile
@@ -15,18 +15,20 @@ PKG_SITES:= http://www.python.org/ftp/python/3.1.1/
DISTFILES= Python-${PKG_VERSION}.tgz
WRKDIST= ${WRKDIR}/Python-${PKG_VERSION}
+DISMOD:= readline _curses _curses_panel _tkinter nis
+
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,PYTHON,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
MAKE_ENV+= OPT="$(TARGET_CFLAGS)" \
- HOSTPYTHON=hostpython \
- HOSTPGEN=hostpgen \
- CROSS_COMPILE=yes
+ HOSTPYTHON=./hostpython \
+ HOSTPGEN=./Parser/hostpgen \
+ PYTHON_DISABLE_MODULES="$(DISMOD)"
CONFIGURE_STYLE:= gnu
CONFIGURE_ENV+= OPT="$(TARGET_CFLAGS)"
-CONFGIURE_ARGS:= --with-threads \
+CONFIGURE_ARGS:= --with-threads \
--with-system-ffi \
--without-cxx-main
BUILD_STYLE:= auto
@@ -39,10 +41,10 @@ pre-configure:
--prefix=$(STAGING_TOOLS) \
);
$(MAKE) -C ${WRKBUILD} python Parser/pgen
- ${CP} ${WRKBUILD}/Parser/pgen ${STAGING_TOOLS}/bin/hostpgen
- ${CP} ${WRKBUILD}/python ${STAGING_TOOLS}/bin/hostpython
- PATH='${TARGET_PATH}' \
- $(MAKE) -C ${WRKBUILD} HOSTPYTHON="hostpython" sharedmods install
+ ${CP} ${WRKBUILD}/Parser/pgen ${STAGING_TOOLS}/bin/pgen
+ ${CP} ${WRKBUILD}/python ${STAGING_TOOLS}/bin/python
+ ${CP} ${WRKBUILD}/Parser/pgen ${WRKBUILD}/Parser/hostpgen
+ ${CP} ${WRKBUILD}/python ${WRKBUILD}/hostpython
$(MAKE) -C ${WRKBUILD} distclean
post-install: