summaryrefslogtreecommitdiff
path: root/package/python2/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-07-11 16:27:03 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2013-07-11 16:27:03 +0200
commit5235583ddb46ae51957c90ca38684fe60ae353b6 (patch)
treec62cd39f5f9c9d57528f9a3a1804ccf8466878c5 /package/python2/Makefile
parent3269b33600bf1feed258e74bcb26194494b78793 (diff)
parentca208d49d8ff8a485cf7e3236b22069ab3440502 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/python2/Makefile')
-rw-r--r--package/python2/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/python2/Makefile b/package/python2/Makefile
index 4c5b17c5e..075920912 100644
--- a/package/python2/Makefile
+++ b/package/python2/Makefile
@@ -15,7 +15,7 @@ PKG_URL:= http://www.python.org/
PKG_SITES:= http://www.python.org/ftp/python/${PKG_VERSION}/
PKG_OPTS:= noscripts
-PKG_HOST_DEPENDS:= !netbsd !openbsd !cygwin
+PKG_HOST_DEPENDS:= !netbsd !openbsd
DISTFILES= Python-${PKG_VERSION}.tgz
WRKDIST= ${WRKDIR}/Python-${PKG_VERSION}
@@ -30,6 +30,10 @@ $(eval $(call PKG_template,PYTHON2,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${P
$(eval $(call PKG_template,PYTHON2_BZIP2,${PKG_NAME}-bzip2,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PYTHON2_BZIP2},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
$(eval $(call PKG_template,PYTHON2_READLINE,${PKG_NAME}-readline,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_PYTHON2_READLINE},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+ifeq ($(ADK_HOST_CYGWIN),y)
+EXE:= .exe
+endif
+
TARGET_CFLAGS+= -fPIC
TARGET_LDFLAGS+= -L.
MAKE_ENV+= OPT="$(TARGET_CFLAGS)" \
@@ -55,7 +59,7 @@ post-extract:
./configure --without-cxx-main --with-threads \
--prefix=$(STAGING_HOST_DIR)/usr \
);
- $(MAKE) -C ${WRKBUILD} python Parser/pgen
+ $(MAKE) -C ${WRKBUILD} python$(EXE) Parser/pgen$(EXE)
$(MAKE) -C ${WRKBUILD} install
${CP} ${WRKBUILD}/Parser/pgen ${STAGING_HOST_DIR}/usr/bin/pgen
${CP} ${WRKBUILD}/python ${STAGING_HOST_DIR}/usr/bin/hostpython