1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/editors/beav/files/patch-a
Thomas Gellekum 1205669b85 Support compiling on {Open,Net}BSD.
Submitted by:	Berndt Josef Wulf <wulf@ping.net.au> via Warner Losh
1997-09-29 08:07:31 +00:00

92 lines
2.4 KiB
Plaintext

diff -c beav-140.orig/Makefile beav-140/Makefile
*** beav-140.orig/Makefile Wed Nov 30 19:19:47 1994
--- beav-140/Makefile Sat Jul 1 18:07:14 1995
***************
*** 1,5 ****
# This is the makefile for BSD UNIX
! CFLAGS= -O2 -DUNIX -DNOPROTO
OFILES= basic.o ebcdic.o fileio.o region.o text.o wangpc.o \
buffer.o echo.o language.o main.o search.o tty.o window.o \
--- 1,5 ----
# This is the makefile for BSD UNIX
! CFLAGS+= -DUNIX -DNOPROTO -DBSD
OFILES= basic.o ebcdic.o fileio.o region.o text.o wangpc.o \
buffer.o echo.o language.o main.o search.o tty.o window.o \
***************
*** 14,20 ****
HFILES= def.h
! beav: $(OFILES)
$(CC) $(CFLAGS) $(OFILES) -s -ltermcap -lc -o beav
! (OFILES): $(HFILES)
--- 14,27 ----
HFILES= def.h
! all beav: $(OFILES)
$(CC) $(CFLAGS) $(OFILES) -s -ltermcap -lc -o beav
! install: beav
! install -c -s -m 755 -g bin -o bin beav $(PREFIX)/bin
! mkdir -p $(PREFIX)/share/doc/beav
! install -c -m 644 -g bin -o bin beav140.txt $(PREFIX)/share/doc/beav/beav.txt
! install -c -m 644 -g bin -o bin beav.1 $(PREFIX)/man/man1
! gzip -9nf $(PREFIX)/man/man1/beav.1
!
! $(OFILES): $(HFILES)
diff -c beav-140.orig/termio.c beav-140/termio.c
*** beav-140.orig/termio.c Wed Nov 30 18:43:35 1994
--- beav-140/termio.c Sat Jul 1 17:56:09 1995
***************
*** 12,17 ****
--- 12,20 ----
#include <signal.h>
#ifdef BSD
#include <sys/ioctl.h>
+ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+ #include <sys/ioctl_compat.h>
+ #endif
#else
#ifdef OS2
#ifndef __EMX__
diff -c beav-140.orig/tcap.c beav-140/tcap.c
*** beav-140.orig/tcap.c Sat Jul 1 18:32:02 1995
--- beav-140/tcap.c Sat Jul 1 18:24:29 1995
***************
*** 38,44 ****
#ifdef BSD
#include <sys/ioctl.h>
! struct winsize ttysize;
#endif /* BSD */
#ifdef ULTRIX
struct winsize ttysize;
--- 38,44 ----
#ifdef BSD
#include <sys/ioctl.h>
! struct ttysize ttysize;
#endif /* BSD */
#ifdef ULTRIX
struct winsize ttysize;
diff -c beav-140.orig/beav.1 beav-140/beav.1
*** beav-140.orig/beav.1 Sun Mar 3 03:13:16 1996
--- beav-140/beav.1 Sun Mar 3 03:14:31 1996
***************
*** 59,63 ****
If there is any data that has not been saved you will be warned.
.PP
.SH FILES
! /usr/doc/beav/beav.txt
--- 59,63 ----
If there is any data that has not been saved you will be warned.
.PP
.SH FILES
! /usr/local/share/doc/beav/beav.txt