diff options
author | wiz <wiz@pkgsrc.org> | 2010-07-21 11:29:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2010-07-21 11:29:10 +0000 |
commit | 13085319da3d5355c2582f743b55f3bfcedb895b (patch) | |
tree | 1a48c24a86c5d548d691b0ce682a1a45524e0582 /lang/python | |
parent | 1fe3b5178a1a33243737b9453e536aa929ac6699 (diff) | |
download | pkgsrc-13085319da3d5355c2582f743b55f3bfcedb895b.tar.gz |
Add optional user-setable PYSETUPARGS variable that is added to the build
and install command lines _before_ the target name.
Needed for non-target specific options, used e.g. by gaupol.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/extension.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lang/python/extension.mk b/lang/python/extension.mk index 25141bcf31a..b8a58b0627f 100644 --- a/lang/python/extension.mk +++ b/lang/python/extension.mk @@ -1,4 +1,4 @@ -# $NetBSD: extension.mk,v 1.25 2009/05/26 21:59:58 wiz Exp $ +# $NetBSD: extension.mk,v 1.26 2010/07/21 11:29:10 wiz Exp $ .include "../../lang/python/pyversion.mk" @@ -8,6 +8,7 @@ PYSETUP?= setup.py PYSETUPBUILDTARGET?= build PYSETUPBUILDARGS?= #empty +PYSETUPARGS?= #empty PYSETUPINSTALLARGS?= #empty PYSETUPOPTARGS?= -c -O1 _PYSETUPINSTALLARGS= ${PYSETUPINSTALLARGS} ${PYSETUPOPTARGS} ${_PYSETUPTOOLSINSTALLARGS} @@ -19,11 +20,11 @@ PYSETUPSUBDIR?= #empty do-build: (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} \ - ${PYSETUP} ${PYSETUPBUILDTARGET} ${PYSETUPBUILDARGS}) + ${PYSETUP} ${PYSETUPARGS} ${PYSETUPBUILDTARGET} ${PYSETUPBUILDARGS}) do-install: (cd ${WRKSRC}/${PYSETUPSUBDIR} && ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \ - ${PYTHONBIN} ${PYSETUP} "install" ${_PYSETUPINSTALLARGS}) + ${PYTHONBIN} ${PYSETUP} ${PYSETUPARGS} "install" ${_PYSETUPINSTALLARGS}) .endif PY_NO_EGG?= yes |