summaryrefslogtreecommitdiff
path: root/package/python/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
commit5042ac8e5927d0089d3902b1c37e5bcc1565d053 (patch)
treecd2be3085808c5ac59dd70f9c610c6a40bfe3ffd /package/python/Makefile
parent401dabf66529cfb5ab47b4c78d5e25fd493eef1f (diff)
parent4d569ed1a3305c7b7abe8fa4273cea3b559cc85a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: BUGS package/autoconf/Makefile
Diffstat (limited to 'package/python/Makefile')
-rw-r--r--package/python/Makefile22
1 files changed, 11 insertions, 11 deletions
diff --git a/package/python/Makefile b/package/python/Makefile
index a602c6706..ad694d872 100644
--- a/package/python/Makefile
+++ b/package/python/Makefile
@@ -12,25 +12,25 @@ PKG_SECTION:= lang
PKG_URL:= http://www.python.org
PKG_SITES:= http://www.python.org/ftp/python/3.1.1/
+PKG_HOST_DEPENDS:= !netbsd !openbsd
+
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
-
-CONFIGURE_STYLE:= gnu
+ HOSTPYTHON=./hostpython \
+ HOSTPGEN=./Parser/hostpgen \
+ PYTHON_DISABLE_MODULES="$(DISMOD)"
CONFIGURE_ENV+= OPT="$(TARGET_CFLAGS)"
-CONFGIURE_ARGS:= --with-threads \
+CONFIGURE_ARGS:= --with-threads \
--with-system-ffi \
--without-cxx-main
-BUILD_STYLE:= auto
-INSTALL_STYLE:= auto
pre-configure:
(cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
@@ -39,10 +39,10 @@ pre-configure:
--prefix=$(STAGING_TOOLS) \
);
$(MAKE) -C ${WRKBUILD} python Parser/pgen
- ${CP} ${WRKBUILD}/Parser/pgen ${STAGING_TOOLS}/bin/hostpgen
+ ${CP} ${WRKBUILD}/Parser/pgen ${STAGING_TOOLS}/bin/pgen
${CP} ${WRKBUILD}/python ${STAGING_TOOLS}/bin/hostpython
- PATH='${TARGET_PATH}' \
- $(MAKE) -C ${WRKBUILD} HOSTPYTHON="hostpython" sharedmods install
+ ${CP} ${WRKBUILD}/Parser/pgen ${WRKBUILD}/Parser/hostpgen
+ ${CP} ${WRKBUILD}/python ${WRKBUILD}/hostpython
$(MAKE) -C ${WRKBUILD} distclean
post-install: