to the preferred version of python (as specified by PYTHON_VERSION_DEFAULT). This means that cross-platform python scripts with "#!/usr/bin/env python" actually function on pkgsrc systems without nasty hackery. Approved by Alistair.
29 lines
699 B
Makefile
29 lines
699 B
Makefile
# $NetBSD: Makefile,v 1.27 2004/02/06 08:37:22 lukem Exp $
|
|
#
|
|
|
|
DISTNAME= python
|
|
PKGNAME= python-${PYVERSSUFFIX}
|
|
CATEGORIES= lang
|
|
MASTER_SITES= # empty
|
|
DISTFILES= # empty
|
|
|
|
MAINTAINER= lukem@NetBSD.org
|
|
HOMEPAGE= http://www.python.org/
|
|
COMMENT= The "meta-package" for Python
|
|
|
|
EXTRACT_ONLY= # empty
|
|
NO_CHECKSUM= yes
|
|
NO_CONFIGURE= yes
|
|
NO_BUILD= yes
|
|
|
|
# Ensure version of python the user asks for is selected, even
|
|
# if it's not yet installed.
|
|
_PYTHON_VERSION=${PYTHON_VERSION_DEFAULT}
|
|
|
|
do-install:
|
|
@${ECHO} "Linking ${PREFIX}/bin/python to ${PYTHONBIN}"
|
|
@${RM} -f ${PREFIX}/bin/python
|
|
@${LN} -s ${PYTHONBIN} ${PREFIX}/bin/python
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|