summaryrefslogtreecommitdiff
path: root/editors/bpatch/files/patch-Makefile
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>2016-11-16 23:03:20 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>2016-11-16 23:03:20 +0000
commit7c99dcb43583887ea270c8ebde2873924d0f7876 (patch)
tree681932d6f995fcb2a2cd34d2fb0a1590de382771 /editors/bpatch/files/patch-Makefile
parentReset edwin's ports, he has handed in his commit bit. (diff)
Resurrect bpatch, after moving the distfile to MASTER_SITE_LOCAL.
Inquired by email to John Rupley (fortunately still alive) about the license, and got permission to put it into public domain.
Diffstat (limited to 'editors/bpatch/files/patch-Makefile')
-rw-r--r--editors/bpatch/files/patch-Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/editors/bpatch/files/patch-Makefile b/editors/bpatch/files/patch-Makefile
new file mode 100644
index 000000000000..fab8ca2d7dce
--- /dev/null
+++ b/editors/bpatch/files/patch-Makefile
@@ -0,0 +1,42 @@
+--- Makefile.orig 2016-11-12 08:33:41 UTC
++++ Makefile
+@@ -0,0 +1,39 @@
++# This may have to change on your system.
++# You may have to fiddle with various combinations of curses, termcap,
++# terminfo, etc. Good luck!
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin
++MANDIR= ${PREFIX}/man/man1
++
++LIBS = -lncurses
++#LIBS = -ltermlib
++#LIBS = -lterminfo
++#for sysV
++#LIBS = -lcurses
++
++# However you need getopt.
++#GETOPT = -lgetopt
++#not for sysV! (nor for some BSD)
++#GETOPT =
++
++# If you're running on a 4.[23] system, you probably want this.
++#WORK = -DMOD_HAX
++#sysV
++#WORK =
++
++#BSD or thereabouts
++CFLAGS+= $(WORK)
++#Microport sysV/AT, large model, for sdb debugger
++#CFLAGS = -g -Ml
++
++all: bpatch
++
++clean:
++ rm -f bpatch bpatch.o *.core
++
++bpatch: bpatch.o
++ $(CC) -o bpatch $(CFLAGS) bpatch.o $(GETOPT) $(LIBS)
++
++install: bpatch bpatch.1
++ $(BSD_INSTALL_PROGRAM) bpatch $(DESTDIR)$(BINDIR)
++ $(BSD_INSTALL_MAN) bpatch.1 $(DESTDIR)$(MANDIR)