summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/python/pyversion.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 5173117e800..ae45ab50988 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.71 2009/06/14 22:58:03 joerg Exp $
+# $NetBSD: pyversion.mk,v 1.72 2009/07/02 09:37:12 joerg Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -164,6 +164,16 @@ PYLIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \
print distutils.sysconfig.get_python_lib(0, 1, \"\")" || ${ECHO} ""
PYSITELIB!= ${PYTHONBIN} -c "import distutils.sysconfig; \
print distutils.sysconfig.get_python_lib(0, 0, \"\")" || ${ECHO} ""
+
+PRINT_PLIST_AWK+= /^${PYINC:S|/|\\/|g}/ \
+ { gsub(/${PYINC:S|/|\\/|g}/, "$${PYINC}"); \
+ print; next; }
+PRINT_PLIST_AWK+= /^${PYSITELIB:S|/|\\/|g}/ \
+ { gsub(/${PYSITELIB:S|/|\\/|g}/, "$${PYSITELIB}"); \
+ print; next; }
+PRINT_PLIST_AWK+= /^${PYLIB:S|/|\\/|g}/ \
+ { gsub(/${PYLIB:S|/|\\/|g}/, "$${PYLIB}"); \
+ print; next; }
.endif
ALL_ENV+= PYTHON=${PYTHONBIN}