diff options
author | jschauma <jschauma@pkgsrc.org> | 2004-05-19 03:26:09 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2004-05-19 03:26:09 +0000 |
commit | 5419c918f3deea96236d5d68c0c606c254af242f (patch) | |
tree | e5dfe588f0275fad9c0b8f9b80411bfa605dff8b /mk | |
parent | 7384d31eb19a14b999c4003aede703a11b55209f (diff) | |
download | pkgsrc-5419c918f3deea96236d5d68c0c606c254af242f.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.mk | 11 |
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 |