summaryrefslogtreecommitdiff
path: root/devel/patch/Makefile
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-01-07 10:33:26 +0000
committergrant <grant@pkgsrc.org>2003-01-07 10:33:26 +0000
commit9b294adc8a5a253c27d98d361a77aeea8daed288 (patch)
tree7bdbe6a454b5a34e6f2773db8695d26b068f78db /devel/patch/Makefile
parent8dd5a2afc232f87988fbfe46f1251376e219ca63 (diff)
downloadpkgsrc-9b294adc8a5a253c27d98d361a77aeea8daed288.tar.gz
always install bin/gpatch (thanks wiz).
bump PKGREVISION.
Diffstat (limited to 'devel/patch/Makefile')
-rw-r--r--devel/patch/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/patch/Makefile b/devel/patch/Makefile
index 2c2b2404ab9..c501e1179e9 100644
--- a/devel/patch/Makefile
+++ b/devel/patch/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2003/01/06 22:23:06 grant Exp $
+# $NetBSD: Makefile,v 1.13 2003/01/07 10:33:26 grant Exp $
#
DISTNAME= patch-2.5.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU:=patch/}
@@ -20,6 +20,12 @@ CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX}
PLIST_SUBST+= GNU_PROGRAM_PREFIX=${GNU_PROGRAM_PREFIX}
BUILD_DEFS+= GNU_PROGRAM_PREFIX
+.if !defined(GNU_PROGRAM_PREFIX) || ${GNU_PROGRAM_PREFIX} != "g"
+PLIST_SUBST+= PATCH_LINK=""
+.else
+PLIST_SUBST+= PATCH_LINK="@comment "
+.endif
+
do-patch:
${MV} ${WRKSRC}/pch.c ${WRKSRC}/pch.c.orig
${AWK} '/#include <pch.h>/{print $$0 "\n#include <sys/param.h>";next;}\