diff options
author | drochner <drochner> | 2001-05-14 13:44:23 +0000 |
---|---|---|
committer | drochner <drochner> | 2001-05-14 13:44:23 +0000 |
commit | eb8062f22c659dd141fae2e3bb63480853762ec5 (patch) | |
tree | 246627edfc4a85253507e490770e1d847a47a875 /mk/bsd.pkg.mk | |
parent | 42c25d05319f9cbd50057c5036e8e49ba1cd8fef (diff) | |
download | pkgsrc-eb8062f22c659dd141fae2e3bb63480853762ec5.tar.gz |
pull in python-mk if USE_PYTHON is defined, just like USE_PERL5
Diffstat (limited to 'mk/bsd.pkg.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 |