60522dd811
is to be provided by --suffix). Looking at the usage here in diffutils, it seems that we can just get rid of the -b .orig stuff. This resolves a problem that can triggered if we move toward to a more permissively licensed patch(1) program.
28 lines
703 B
Makefile
28 lines
703 B
Makefile
# $FreeBSD$
|
|
|
|
DIFFSRC=${.CURDIR}/../../../contrib/diff/src
|
|
.PATH: ${DIFFSRC} \
|
|
${.CURDIR}/../../../contrib/diff/lib \
|
|
${.CURDIR}/../../../contrib/diff/man
|
|
|
|
PROG= diff3
|
|
SRCS= diff3.c version-etc.c \
|
|
xmalloc.c error.c c-stack.c exitfail.c cmpbuf.c
|
|
|
|
# Important for ctype macros!
|
|
CFLAGS+=-funsigned-char
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/src
|
|
CFLAGS+=-I${.CURDIR}/../../../contrib/diff/lib
|
|
CFLAGS+=-DHAVE_CONFIG_H
|
|
CFLAGS+=-DDEFAULT_DIFF_PROGRAM=\"/usr/bin/diff\"
|
|
|
|
.for f in diff3.c
|
|
${f}: ${DIFFSRC}/${f} ${.CURDIR}/${f}.diff
|
|
patch -s -o ${.TARGET} < ${.CURDIR}/${f}.diff ${DIFFSRC}/${f}
|
|
CLEANFILES+= ${f}
|
|
.endfor
|
|
|
|
.include <bsd.prog.mk>
|