summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-05-19 01:27:03 +0000
committerjschauma <jschauma@pkgsrc.org>2004-05-19 01:27:03 +0000
commit7384d31eb19a14b999c4003aede703a11b55209f (patch)
tree704df9e1579dfac9a78544c46b6cc4734f4de8ec /mk
parent00cc25d2c4768f0f50f09bc6d00b3b37411bfcc3 (diff)
downloadpkgsrc-7384d31eb19a14b999c4003aede703a11b55209f.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.mk6
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