summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-05-19 03:26:09 +0000
committerjschauma <jschauma>2004-05-19 03:26:09 +0000
commitffbc29aa033343c8effccec4e640c10d18074da3 (patch)
treee5dfe588f0275fad9c0b8f9b80411bfa605dff8b /mk
parent5d8a242f3ad6ae501df10f49a9b8a02e43bd0dac (diff)
downloadpkgsrc-ffbc29aa033343c8effccec4e640c10d18074da3.tar.gz
Follow Grant's advice: use _OPSYS_GPATCH_REQD to influence _NEED_PATCH
and let tools.mk take care of the rest.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk11
1 files changed, 6 insertions, 5 deletions
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