summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch/Makefile
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 /usr.bin/patch/Makefile
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 'usr.bin/patch/Makefile')
-rw-r--r--usr.bin/patch/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr.bin/patch/Makefile b/usr.bin/patch/Makefile
new file mode 100644
index 0000000..5ee0a83
--- /dev/null
+++ b/usr.bin/patch/Makefile
@@ -0,0 +1,19 @@
+# $FreeBSD$
+# $OpenBSD: Makefile,v 1.4 2005/05/16 15:22:46 espie Exp $
+# $DragonFly: src/usr.bin/patch/Makefile,v 1.8 2008/08/10 23:50:12 joerg Exp $
+
+.include <bsd.own.mk>
+
+.if ${MK_BSD_PATCH} == "yes"
+PROG= patch
+.else
+PROG= bsdpatch
+CLEANFILES+= bsdpatch.1
+
+bsdpatch.1: patch.1
+ cp ${.ALLSRC} ${.TARGET}
+.endif
+
+SRCS= backupfile.c inp.c mkpath.c patch.c pch.c util.c
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud