diff options
author | jschauma <jschauma@pkgsrc.org> | 2004-05-19 01:27:03 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2004-05-19 01:27:03 +0000 |
commit | 562ed07ce3579fa2e25599cce1f66e977f5bb32a (patch) | |
tree | 704df9e1579dfac9a78544c46b6cc4734f4de8ec /mk | |
parent | bf71ef8c8610da9795dee84f4c65207735befebc (diff) | |
download | pkgsrc-562ed07ce3579fa2e25599cce1f66e977f5bb32a.tar.gz |
We have a variable _OPSYS_GPATCH_REQD, but it doesn't do anything.
Change that: if it's set to YES, require devel/patch. If building
devel/patch, set _OPSYS_GPATCH_REQD to NO, as otherwise we have a
circular dependency.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 0152e3f99cf..36626f4b54c 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.1460 2004/05/17 04:44:44 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.1461 2004/05/19 01:27:03 jschauma Exp $ # # This file is in the public domain. # @@ -380,6 +380,10 @@ CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL} CONFIGURE_ENV+= install_sh=${INSTALL:Q} .endif +.if defined(_OPSYS_GPATCH_REQD) && !empty(_OPSYS_GPATCH_REQD:M[yY][eE][sS]) +BUILD_DEPENDS+= patch>=2.5.4:../../devel/patch +.endif + .if defined(_OPSYS_LIBTOOL_REQD) LIBTOOL_REQD= ${_OPSYS_LIBTOOL_REQD} .else |