freebsd-ports/textproc/2bsd-diff/files/patch-Makefile
Mathieu Arnold df8eeaffbc Convert to staging.
Sponsored by:	Absolight
2014-02-17 13:46:27 +00:00

36 lines
1 KiB
Text

--- ./Makefile.orig 1996-10-22 04:29:46.000000000 +0000
+++ ./Makefile 2014-02-17 13:43:18.000000000 +0000
@@ -1,9 +1,9 @@
# @(#)Makefile 4.1.1 1996/10/21
#
-DIFF= /bin/diff
-DIFFH= /usr/libexec/diffh
-PR= /bin/pr
-CFLAGS= -O -DDIFF='"${DIFF}"' -DDIFFH='"${DIFFH}"' -DPR='"${PR}"'
+DIFF= ${PREFIX}/bin/2diff
+DIFFH= ${PREFIX}/libexec/2diffh
+PR= /usr/bin/pr
+CFLAGS+=-DDIFF='"${DIFF}"' -DDIFFH='"${DIFFH}"' -DPR='"${PR}"'
SEPFLAG=-i
DESTDIR=
@@ -14,14 +14,15 @@
all: diff diffh
diff: ${OBJS}
- cc ${CFLAGS} -o diff ${OBJS} ${SEPFLAG} ${LDFLAGS}
+ ${CC} ${CFLAGS} -o diff ${OBJS} ${SEPFLAG} ${LDFLAGS}
diffh: diffh.o
- cc -o diffh diffh.o ${SEPFLAG} ${LDFLAGS}
+ ${CC} ${CFLAGS} -o diffh diffh.o ${SEPFLAG} ${LDFLAGS}
clean:
rm -f diff diffh ${OBJS} diffh.o
install: all
- install -s diff ${DESTDIR}/bin/diff
- install -s diffh ${DESTDIR}/usr/libexec/diffh
+ ${BSD_INSTALL_PROGRAM} diff ${DESTDIR}${DIFF}
+ ${BSD_INSTALL_PROGRAM} diffh ${DESTDIR}${DIFFH}
+ ${BSD_INSTALL_MAN} ../../man/man1/diff.1 ${DESTDIR}${MANPREFIX}/man/man1/2diff.1