blob: ac7839af9bfbc87050fc278b2c1622c010291b53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# $NetBSD: application.buildlink.mk,v 1.2 2002/01/17 11:17:54 drochner Exp $
.include "../../lang/python/pyversion.mk"
# replace shell magic by python version specific path
_PYTHON_PATCH_SCRIPT_SED= -e "1s;^\#!.*python;\#!${PYTHONBIN};"
.if defined(PYTHON_PATCH_SCRIPTS)
post-build:
.for s in ${PYTHON_PATCH_SCRIPTS}
${SED} ${_PYTHON_PATCH_SCRIPT_SED} <${WRKSRC}/$s >${WRKSRC}/$s.patched
${MV} ${WRKSRC}/$s.patched ${WRKSRC}/$s
.endfor
.endif
|