aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.python.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/bsd.python.mk
parentb5f428c87d6053306cca8d7927f1934b96cae94d (diff)
downloadports-f5bb05746556b7e78f22bdc3705cdae2350f043e.tar.gz
ports-f5bb05746556b7e78f22bdc3705cdae2350f043e.zip
Notes
Diffstat (limited to 'Mk/bsd.python.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?