pkgsrc/lang/python/application.mk

14 lines
445 B
Makefile

# $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