summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2001-04-03 11:37:25 +0000
committerThomas Gellekum <tg@FreeBSD.org>2001-04-03 11:37:25 +0000
commitf5bb05746556b7e78f22bdc3705cdae2350f043e (patch)
tree38feb70f205f0679effa5bd53c8098ced33395cf /Mk
parentUpgrade to 2.2. (diff)
New variable PYTHON_PLATFORM, which contains Python's idea of
the platform it's running on.
Notes
Notes: svn path=/head/; revision=40802
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.python.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 28eac650978e..32b93e7cf473 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -26,7 +26,6 @@ Python_Include_MAINTAINER= tg@FreeBSD.org
# are built from sources contained in the Python
# distribution.
#
-#
# PYTHON_INCLUDEDIR: Location of the Python include files.
# default: ${LOCALBASE}/include/${PYTHON_VERSION}
#
@@ -37,6 +36,8 @@ Python_Include_MAINTAINER= tg@FreeBSD.org
# packages for different Python versions.
# default: py${PYTHON_SUFFIX}-
#
+# PYTHON_PLATFORM: Python's idea of the OS release.
+#
# PYTHON_PORTSDIR: The source of your binary's port. Needed for the
# RUN_DEPENDS.
#
@@ -127,6 +128,7 @@ PYTHON_CMD= ${LOCALBASE}/bin/${PYTHON_VERSION}
PYTHON_INCLUDEDIR= ${LOCALBASE}/include/${PYTHON_VERSION}
PYTHON_LIBDIR= ${LOCALBASE}/lib/${PYTHON_VERSION}
PYTHON_PKGNAMEPREFIX= py${PYTHON_SUFFIX}-
+PYTHON_PLATFORM!= ${PYTHON_CMD} -c 'import sys; print sys.platform'
PYTHON_SITELIBDIR= ${PYTHON_LIBDIR}/site-packages
# dependencies
@@ -138,7 +140,8 @@ RUN_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR}
.endif
# pkg/PLIST substrings
-PLIST_SUB+= PYTHON_VERSION=${PYTHON_VERSION}
+PLIST_SUB+= PYTHON_VERSION=${PYTHON_VERSION} \
+ PYTHON_PLATFORM=${PYTHON_PLATFORM}
# XXX Hm, should I export some of the variables above to *_ENV?