summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorgabor <gabor@FreeBSD.org>2013-01-29 17:03:18 +0000
committergabor <gabor@FreeBSD.org>2013-01-29 17:03:18 +0000
commitd992e3eb2a38c97190fad5ec2287b67889a8c5b8 (patch)
tree0df6b0ca34fd3e520676781453dbeff50f662be6 /gnu
parentdae46a44714fe7cf4281ec2c4b47c3605d458081 (diff)
downloadFreeBSD-src-d992e3eb2a38c97190fad5ec2287b67889a8c5b8.zip
FreeBSD-src-d992e3eb2a38c97190fad5ec2287b67889a8c5b8.tar.gz
- Add a BSD-licensed patch, ported by Pedro F. Giffuni (pfg) from
DragonflyBSD and install it as bsdpatch. WITH_BSD_PATCH makes it default and installs GNU patch as gnupatch. Submitted by: pfg Obtained from: The DragonflyBSD Project
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/patch/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/gnu/usr.bin/patch/Makefile b/gnu/usr.bin/patch/Makefile
index 373efbb..76d28e8 100644
--- a/gnu/usr.bin/patch/Makefile
+++ b/gnu/usr.bin/patch/Makefile
@@ -1,6 +1,17 @@
# $FreeBSD$
-PROG= patch
+.include <bsd.own.mk>
+
+.if ${MK_BSD_PATCH} == "yes"
+PROG= gnupatch
+CLEANFILES+= gnupatch.1
+
+gnupatch.1: patch.1
+ cp ${.ALLSRC} ${.TARGET}
+.else
+PROG= patch
+.endif
+
SRCS= backupfile.c inp.c patch.c pch.c util.c version.c
CFLAGS+=-DHAVE_CONFIG_H
OpenPOWER on IntegriCloud