summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/patch/Makefile6
-rw-r--r--mk/bsd.pkg.mk11
2 files changed, 7 insertions, 10 deletions
diff --git a/devel/patch/Makefile b/devel/patch/Makefile
index e23d98440f2..43938c7db34 100644
--- a/devel/patch/Makefile
+++ b/devel/patch/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2004/05/19 01:27:03 jschauma Exp $
+# $NetBSD: Makefile,v 1.21 2004/05/19 03:26:09 jschauma Exp $
#
DISTNAME= patch-2.5.4
@@ -16,10 +16,6 @@ GNU_CONFIGURE= yes
.include "../../mk/bsd.prefs.mk"
-# This is the package that provides gpatch! So don't create a
-# circular dependency.
-_OPSYS_GPATCH_REQD= NO
-
.if defined(GNU_PROGRAM_PREFIX)
CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
.endif
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 36626f4b54c..ca38a7dcaed 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1461 2004/05/19 01:27:03 jschauma Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1462 2004/05/19 03:26:09 jschauma Exp $
#
# This file is in the public domain.
#
@@ -380,10 +380,6 @@ 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
@@ -492,6 +488,9 @@ FETCH_CMD?= /usr/bin/ftp
TOUCH_FLAGS?= -f
# determine if we need a working patch(1).
+.if defined(_OPSYS_GPATCH_REQD) && !empty(_OPSYS_GPATCH_REQD:M[yY][eE][sS])
+_NEED_PATCH= YES
+.else
_NEED_PATCH!= if [ -d ${PATCHDIR} ]; then \
if [ "`${ECHO} ${PATCHDIR}/patch-*`" != "${PATCHDIR}/patch-*" ]; then \
${ECHO} YES; \
@@ -501,6 +500,8 @@ _NEED_PATCH!= if [ -d ${PATCHDIR} ]; then \
else \
${ECHO} NO; \
fi
+.endif
+
.if defined(PATCHFILES)
_NEED_PATCH= YES
.endif