2004-03-02 16:26:02 +01:00
|
|
|
# $NetBSD: application.mk,v 1.6 2004/03/02 15:26:02 drochner Exp $
|
2002-01-15 18:23:24 +01:00
|
|
|
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
2002-01-17 12:17:54 +01:00
|
|
|
|
|
|
|
# replace shell magic by python version specific path
|
2002-01-18 15:16:19 +01:00
|
|
|
# PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed,
|
|
|
|
# relative to ${WRKSRC}
|
2002-01-17 12:17:54 +01:00
|
|
|
|
|
|
|
.if defined(PYTHON_PATCH_SCRIPTS)
|
2004-03-02 16:26:02 +01:00
|
|
|
REPLACE_INTERPRETER+= python
|
|
|
|
_REPLACE.python.old= .*python[^ ]*
|
|
|
|
_REPLACE.python.new= ${PYTHONBIN}
|
|
|
|
_REPLACE_FILES.python= ${PYTHON_PATCH_SCRIPTS}
|
2002-01-17 12:17:54 +01:00
|
|
|
.endif
|