View | Details | Raw Unified | Return to bug 36291
Collapse All | Expand All

(-)editors/beav/Makefile (-4 / +21 lines)
Lines 6-19 Link Here
6
#
6
#
7
7
8
PORTNAME=	beav
8
PORTNAME=	beav
9
PORTVERSION=	1.40.13
9
PORTVERSION=	1.40.15
10
CATEGORIES=	editors
10
CATEGORIES=	editors
11
MASTER_SITES=	ftp://ftp.debian.org/debian/dists/stable/main/source/editors/
11
MASTER_SITES=	ftp://ftp.debian.org/debian/pool/main/b/beav/
12
DISTNAME=	${PORTNAME}_1.40-13
12
DISTNAME=	${PORTNAME}_${PORTVERSION:R}-${PORTVERSION:E}
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
15
16
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
17
18
ALL_TARGET=	beav
19
16
MAN1=		beav.1
20
MAN1=		beav.1
17
WRKSRC=		${WRKDIR}/beav-1.40
21
22
post-patch:
23
	@${PERL} -pi -e 's|^CFLAGS=|CFLAGS+=-DUNIX -DBSD #|g ; \
24
		 s|^CC=|CC?=|g ; \
25
		 s|^\(|\$$\(|g' ${WRKSRC}/Makefile
26
	@${PERL} -pi -e 's|/usr/doc/beav|${DOCSDIR}|g' ${WRKSRC}/beav.1
27
28
do-install:
29
	${INSTALL_PROGRAM} ${WRKSRC}/beav ${PREFIX}/bin/beav
30
	${INSTALL_MAN} ${WRKSRC}/beav.1 ${MANPREFIX}/man/man1/beav.1
31
.if !defined(NOPORTDOCS)
32
	@${MKDIR} ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/beav140.txt ${DOCSDIR}/beav.txt
34
.endif
18
35
19
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)editors/beav/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (beav_1.40-13.tar.gz) = ab8df8acd024d4ae3bd2bdd3e1b85031
1
MD5 (beav_1.40-15.tar.gz) = b261419faed615c500c30af464fce01d
(-)editors/beav/files/patch-a (-78 lines)
Lines 1-78 Link Here
1
--- Makefile.orig	Sat Dec 13 09:34:59 1997
2
+++ Makefile	Mon Aug 10 10:45:21 1998
3
@@ -1,6 +1,6 @@
4
 # This is the makefile for BSD UNIX
5
 #CFLAGS=     -g -DUNIX
6
-CFLAGS=     -O2 -DUNIX
7
+CFLAGS+=     -DUNIX -DBSD
8
 CC=gcc
9
 
10
 OFILES=		basic.o ebcdic.o fileio.o region.o text.o wangpc.o \
11
@@ -16,10 +16,16 @@
12
 
13
 HFILES=     def.h prototyp.h
14
 
15
-beav:     $(OFILES)
16
-	$(CC) $(CFLAGS) $(OFILES) -lncurses -o beav
17
+all beav:     $(OFILES)
18
+	$(CC) $(CFLAGS) $(OFILES) -ltermcap -o beav
19
+
20
+install: beav
21
+	$(BSD_INSTALL_PROGRAM) beav $(PREFIX)/bin
22
+	mkdir -p $(PREFIX)/share/doc/beav
23
+	$(BSD_INSTALL_DATA) beav140.txt $(PREFIX)/share/doc/beav/beav.txt
24
+	$(BSD_INSTALL_MAN) beav.1 $(PREFIX)/man/man1
25
 
26
 clean:
27
 	rm -f *.o beav
28
 
29
-(OFILES):  $(HFILES)
30
+$(OFILES):  $(HFILES)
31
*** beav-140.orig/termio.c	Wed Nov 30 18:43:35 1994
32
--- termio.c	Sat Jul  1 17:56:09 1995
33
***************
34
*** 12,17 ****
35
--- 12,20 ----
36
  #include    <signal.h>
37
  #ifdef BSD
38
  #include    <sys/ioctl.h>
39
+ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
40
+ #include <sys/ioctl_compat.h>
41
+ #endif
42
  #else
43
  #ifdef OS2
44
  #ifndef __EMX__
45
*** beav-140.orig/tcap.c	Sat Jul  1 18:32:02 1995
46
--- tcap.c	Sat Jul  1 18:24:29 1995
47
***************
48
*** 38,44 ****
49
  
50
  #ifdef BSD
51
  #include <sys/ioctl.h>
52
! struct winsize ttysize;
53
  #endif /* BSD */
54
  #ifdef ULTRIX
55
  struct winsize ttysize;
56
--- 38,44 ----
57
  
58
  #ifdef BSD
59
  #include <sys/ioctl.h>
60
! struct ttysize ttysize;
61
  #endif /* BSD */
62
  #ifdef ULTRIX
63
  struct winsize ttysize;
64
*** beav-140.orig/beav.1	Sun Mar  3 03:13:16 1996
65
--- beav.1	Sun Mar  3 03:14:31 1996
66
***************
67
*** 59,63 ****
68
  If there is any data that has not been saved you will be warned.
69
  .PP
70
  .SH FILES
71
! /usr/doc/beav/beav.txt
72
  
73
--- 59,63 ----
74
  If there is any data that has not been saved you will be warned.
75
  .PP
76
  .SH FILES
77
! /usr/local/share/doc/beav/beav.txt
78
  
(-)editors/beav/files/patch-tcap.c (+11 lines)
Line 0 Link Here
1
--- tcap.c.orig	Sat Dec 13 17:34:59 1997
2
+++ tcap.c	Thu Mar 21 03:53:02 2002
3
@@ -39,7 +39,7 @@
4
 
5
 #ifdef BSD
6
 #include <sys/ioctl.h>
7
-struct winsize ttysize;
8
+struct ttysize ttysize;
9
 #endif /* BSD */
10
 #ifdef ULTRIX
11
 struct winsize ttysize;
(-)editors/beav/files/patch-termio.c (+12 lines)
Line 0 Link Here
1
--- termio.c.orig	Sat Jul 21 22:35:05 2001
2
+++ termio.c	Thu Mar 21 03:52:16 2002
3
@@ -12,6 +12,9 @@
4
 #include    <signal.h>
5
 #ifdef BSD
6
 #include    <sys/ioctl.h>
7
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
8
+#include <sys/ioctl_compat.h>
9
+#endif
10
 #else
11
 #ifdef OS2
12
 #ifndef __EMX__
(-)editors/beav/pkg-plist (-2 / +2 lines)
Lines 1-3 Link Here
1
bin/beav
1
bin/beav
2
share/doc/beav/beav.txt
2
%%PORTDOCS%%share/doc/beav/beav.txt
3
@dirrm share/doc/beav
3
%%PORTDOCS%%@dirrm share/doc/beav

Return to bug 36291