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
commit8e15400f8fe62668960f1b8c4951f49c43d9193c (patch)
tree2d953337a00fdceae61f58883a1b296c8944a09e /lang
parente329a8244d829197ece779b8b48638c729c5f3aa (diff)
downloadpkgsrc-8e15400f8fe62668960f1b8c4951f49c43d9193c.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} \