diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-21 23:46:45 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-21 23:46:45 +0000 |
commit | e44bf515dca964f13aa06a03626a32a7753205f3 (patch) | |
tree | 697974df9adeedbe3b04d377f1c3143f916bf1ab /lang/python/application.mk | |
parent | 48fe50ff788b4a1718b3fe1c754d3d5bc74a469e (diff) | |
download | pkgsrc-e44bf515dca964f13aa06a03626a32a7753205f3.tar.gz |
Strip the ".buildlink" from the names of the python application and
extension Makefile fragments, because they really don't have anything to
do with the buildlink[12] frameworks. Change all the Makefiles that use
application.buildlink.mk and extension.buildlink.mk to use application.mk
and extension.mk instead.
Diffstat (limited to 'lang/python/application.mk')
-rw-r--r-- | lang/python/application.mk | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/python/application.mk b/lang/python/application.mk new file mode 100644 index 00000000000..ce6f21679cb --- /dev/null +++ b/lang/python/application.mk @@ -0,0 +1,20 @@ +# $NetBSD: application.mk,v 1.1 2002/09/21 23:47:03 jlam Exp $ + +.include "../../lang/python/pyversion.mk" + +# replace shell magic by python version specific path +# PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed, +# relative to ${WRKSRC} + +_PYTHON_PATCH_SCRIPT_SED= -e "1s;^\#!.*python;\#!${PYTHONBIN};" + +.if defined(PYTHON_PATCH_SCRIPTS) +python-patch-scripts: +.for s in ${PYTHON_PATCH_SCRIPTS} + ${CP} ${WRKSRC}/$s ${WRKSRC}/$s.tmp + ${CHMOD} +w ${WRKSRC}/$s + ${SED} ${_PYTHON_PATCH_SCRIPT_SED} <${WRKSRC}/$s.tmp >${WRKSRC}/$s +.endfor + +post-patch: python-patch-scripts +.endif |