diff options
author | tg <tg@FreeBSD.org> | 2001-04-03 19:37:25 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 2001-04-03 19:37:25 +0800 |
commit | 7164736b0d219b0d831f904f531d4a289f84f165 (patch) | |
tree | 1e731f036afba0c16ab6b87d5378e4c25cd0ea62 /Mk | |
parent | a7242a65de9dbc0be92e9f521193f0024cd1c672 (diff) | |
download | freebsd-ports-gnome-7164736b0d219b0d831f904f531d4a289f84f165.tar.gz freebsd-ports-gnome-7164736b0d219b0d831f904f531d4a289f84f165.tar.zst freebsd-ports-gnome-7164736b0d219b0d831f904f531d4a289f84f165.zip |
New variable PYTHON_PLATFORM, which contains Python's idea of
the platform it's running on.
Diffstat (limited to 'Mk')
-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? |