summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2009-05-26 21:59:57 +0000
committerwiz <wiz@pkgsrc.org>2009-05-26 21:59:57 +0000
commit6ef3f4dd159264e917e9660d2d45c142c8847866 (patch)
tree2d953337a00fdceae61f58883a1b296c8944a09e /lang
parent8739ddfd0fa7345189c9058471e30cef8de35909 (diff)
downloadpkgsrc-6ef3f4dd159264e917e9660d2d45c142c8847866.tar.gz
Allow overriding build target for do-build, using PYSETUPBUILDTARGET.
Diffstat (limited to 'lang')
-rw-r--r--lang/python/extension.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk
index fcc88e68932..25141bcf31a 100644
--- a/lang/python/extension.mk
+++ b/lang/python/extension.mk
@@ -1,4 +1,4 @@
-# $NetBSD: extension.mk,v 1.24 2009/03/08 17:05:10 joerg Exp $
+# $NetBSD: extension.mk,v 1.25 2009/05/26 21:59:58 wiz Exp $
.include "../../lang/python/pyversion.mk"
@@ -6,6 +6,7 @@
.include "../../mk/bsd.prefs.mk"
PYSETUP?= setup.py
+PYSETUPBUILDTARGET?= build
PYSETUPBUILDARGS?= #empty
PYSETUPINSTALLARGS?= #empty
PYSETUPOPTARGS?= -c -O1
@@ -18,7 +19,7 @@ PYSETUPSUBDIR?= #empty
do-build:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \
- ${PYSETUP} build ${PYSETUPBUILDARGS})
+ ${PYSETUP} ${PYSETUPBUILDTARGET} ${PYSETUPBUILDARGS})
do-install:
(cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \