diff options
author | drochner <drochner@pkgsrc.org> | 2001-05-14 13:44:23 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2001-05-14 13:44:23 +0000 |
commit | 27e04a07f0d8278a0cecf1c6c788eefe36f94bac (patch) | |
tree | 246627edfc4a85253507e490770e1d847a47a875 /mk | |
parent | 29042bf01306957a3ea904b67eecbee09b052443 (diff) | |
download | pkgsrc-27e04a07f0d8278a0cecf1c6c788eefe36f94bac.tar.gz |
pull in python-mk if USE_PYTHON is defined, just like USE_PERL5
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index ab883f8a71e..65bb6c717c6 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.734 2001/05/14 12:58:51 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.735 2001/05/14 13:44:23 drochner Exp $ # # This file is in the public domain. # @@ -170,6 +170,17 @@ MAKEFLAGS+= PERL5_ARCHLIB=${PERL5_ARCHLIB} .endif # exists($PERL5) .endif # USE_PERL5 +.if defined(USE_PYTHON) +PYTHON?= ${LOCALBASE}/bin/python +DEPENDS+= python>=1.6:../../lang/python +.if exists(${PYTHON}) +BUILD_DEPENDS+= python-mk-*:../../pkgtools/python-mk +.if exists(${LOCALBASE}/share/mk/bsd.python.mk) +.include "${LOCALBASE}/share/mk/bsd.python.mk" +.endif +.endif +.endif + .if defined(USE_FORTRAN) .if !exists(/usr/bin/f77) PKG_FC?= f2c-f77 |