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
19 lines
283 B
Makefile
19 lines
283 B
Makefile
# $FreeBSD$
|
|
|
|
.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
|
|
|
|
.include <bsd.prog.mk>
|