summaryrefslogtreecommitdiff
path: root/lang/python/application.mk
blob: 6f6da2879d88e9f882acb61e6cc1d60687aa8fb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# $NetBSD: application.mk,v 1.6 2004/03/02 15:26:02 drochner 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}

.if defined(PYTHON_PATCH_SCRIPTS)
REPLACE_INTERPRETER+=	python
_REPLACE.python.old=	.*python[^ ]*
_REPLACE.python.new=	${PYTHONBIN}
_REPLACE_FILES.python=	${PYTHON_PATCH_SCRIPTS}
.endif