mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
On FreeBSD 13 - current, the build failed with: cc: error: unknown argument: '-i' PR: 234362 Submitted by: risner@stdio.com (maintainer)
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
--- Makefile.orig 1996-10-22 04:29:46 UTC
|
|
+++ Makefile
|
|
@@ -1,10 +1,14 @@
|
|
# @(#)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}"'
|
|
-SEPFLAG=-i
|
|
+DIFF= ${PREFIX}/bin/2diff
|
|
+DIFFH= ${PREFIX}/libexec/2diffh
|
|
+PR= /usr/bin/pr
|
|
+CFLAGS+=-DDIFF='"${DIFF}"' -DDIFFH='"${DIFFH}"' -DPR='"${PR}"'
|
|
+# SEPFLAG should be:
|
|
+# not on a PDP-11: SEPFLAG =
|
|
+# PDP-11 with separate I&D: SEPFLAG = -i
|
|
+# PDP-11 without separate I&D: SEPFLAG = -n
|
|
+SEPFLAG=
|
|
DESTDIR=
|
|
|
|
SRCS= diff.c diffdir.c diffreg.c
|
|
@@ -14,14 +18,15 @@ OBJS= diff.o diffdir.o diffreg.o
|
|
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
|