- Respect CC.

- Include prototypes for str*().
- Don't hardcode /usr/local.

ok kevlo@
This commit is contained in:
naddy 2002-09-13 11:22:30 +00:00
parent 0d18a6e810
commit 2e8f9cdd82
4 changed files with 26 additions and 11 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2002/08/02 03:45:17 kevlo Exp $
# $OpenBSD: Makefile,v 1.20 2002/09/13 11:22:30 naddy Exp $
COMMENT= "binary editor and viewer"
@ -17,4 +17,7 @@ MASTER_SITES= ftp://ftp.debian.org/debian/pool/main/b/beav/
WRKDIST= ${WRKDIR}/beav-1.40
post-install:
@perl -i -pe 's:%%PREFIX%%:${TRUEPREFIX}:' ${PREFIX}/man/man1/beav.1
.include <bsd.port.mk>

View File

@ -1,15 +1,16 @@
$OpenBSD: patch-Makefile,v 1.1 2002/08/02 03:45:19 kevlo Exp $
--- Makefile.orig Sat Dec 13 08:34:59 1997
+++ Makefile Thu Aug 1 15:26:10 2002
@@ -1,6 +1,6 @@
$OpenBSD: patch-Makefile,v 1.2 2002/09/13 11:22:30 naddy Exp $
--- Makefile.orig Sat Dec 13 09:34:59 1997
+++ Makefile Fri Sep 13 02:49:34 2002
@@ -1,7 +1,6 @@
# This is the makefile for BSD UNIX
#CFLAGS= -g -DUNIX
-CFLAGS= -O2 -DUNIX
-CC=gcc
+CFLAGS+= -DUNIX -DBSD
CC=gcc
OFILES= basic.o ebcdic.o fileio.o region.o text.o wangpc.o \
@@ -16,10 +16,16 @@ CFILES= basic.c ebcdic.c fileio.c re
buffer.o echo.o language.o main.o search.o tty.o window.o \
@@ -16,10 +15,16 @@ CFILES= basic.c ebcdic.c fileio.c re
HFILES= def.h prototyp.h

View File

@ -1,10 +1,10 @@
$OpenBSD: patch-beav_1,v 1.1 2002/08/02 03:45:19 kevlo Exp $
--- beav.1.orig Sun Aug 20 18:05:22 1995
+++ beav.1 Thu Aug 1 15:26:10 2002
$OpenBSD: patch-beav_1,v 1.2 2002/09/13 11:22:30 naddy Exp $
--- beav.1.orig Sun Aug 20 20:05:22 1995
+++ beav.1 Fri Sep 13 02:51:05 2002
@@ -59,5 +59,5 @@ The \fIquit-no-save\fR command,\fB Ctl-X
If there is any data that has not been saved you will be warned.
.PP
.SH FILES
-/usr/doc/beav/beav.txt
+/usr/local/share/doc/beav/beav.txt
+%%PREFIX%%/share/doc/beav/beav.txt

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-def_h,v 1.1 2002/09/13 11:22:30 naddy Exp $
--- def.h.orig Fri Sep 13 02:58:58 2002
+++ def.h Fri Sep 13 02:59:18 2002
@@ -13,6 +13,7 @@
#define DEF_DEF
#define LINT_ARGS 1 /* enable lint type checking */
#include "stdio.h"
+#include "string.h"
#ifdef UNIX
#include "sys/types.h"