diff options
-rw-r--r-- | devel/patch/Makefile | 11 | ||||
-rw-r--r-- | devel/patch/PLIST | 6 |
2 files changed, 7 insertions, 10 deletions
diff --git a/devel/patch/Makefile b/devel/patch/Makefile index 3bd27b89ac3..db3920d6a58 100644 --- a/devel/patch/Makefile +++ b/devel/patch/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.9 2002/03/24 19:47:28 seb Exp $ +# $NetBSD: Makefile,v 1.10 2002/12/22 17:30:09 wiz Exp $ # DISTNAME= patch-2.5.4 @@ -13,14 +13,11 @@ GNU_CONFIGURE= yes .include "../../mk/bsd.prefs.mk" -.if ${OPSYS} == "NetBSD" -CONFIGURE_ARGS+= --program-prefix=g -PROGRAM_PREFIX= g -.else -PROGRAM_PREFIX= +.if ${OPSYS} == "NetBSD" && defined(GNU_PROGRAM_PREFIX) +CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX} .endif -PLIST_SUBST+= PROGRAM_PREFIX=${PROGRAM_PREFIX} +PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX} do-patch: ${MV} ${WRKSRC}/pch.c ${WRKSRC}/pch.c.orig diff --git a/devel/patch/PLIST b/devel/patch/PLIST index 143dfc21091..a0d7760af6c 100644 --- a/devel/patch/PLIST +++ b/devel/patch/PLIST @@ -1,3 +1,3 @@ -@comment $NetBSD: PLIST,v 1.2 2001/12/04 09:14:41 seb Exp $ -bin/${PROGRAM_PREFIX}patch -man/man1/${PROGRAM_PREFIX}patch.1 +@comment $NetBSD: PLIST,v 1.3 2002/12/22 17:30:09 wiz Exp $ +bin/${GNU_PROGRAM_PREFIX}patch +man/man1/${GNU_PROGRAM_PREFIX}patch.1 |