diff options
-rw-r--r-- | Mk/bsd.python.mk | 7 |
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? |