aboutsummaryrefslogtreecommitdiff
path: root/print/dvi2tty/files/patch-aa
diff options
context:
space:
mode:
authorMatthew Hunt <mph@FreeBSD.org>2000-10-19 15:53:29 +0000
committerMatthew Hunt <mph@FreeBSD.org>2000-10-19 15:53:29 +0000
commit029171324046dcbbff5f88d0465f5faee8475839 (patch)
tree4d7da516abe1ceab07d8387c0322fcdbbabeb2ee /print/dvi2tty/files/patch-aa
parentf468fec16449d1aa05fd6d7b10650e5a4b99394d (diff)
Notes
Diffstat (limited to 'print/dvi2tty/files/patch-aa')
-rw-r--r--print/dvi2tty/files/patch-aa59
1 files changed, 17 insertions, 42 deletions
diff --git a/print/dvi2tty/files/patch-aa b/print/dvi2tty/files/patch-aa
index 9dffcb02b3e9..e9ac71517cef 100644
--- a/print/dvi2tty/files/patch-aa
+++ b/print/dvi2tty/files/patch-aa
@@ -1,13 +1,20 @@
-
---- Makefile.orig Fri Mar 12 01:05:10 1993
-+++ Makefile Mon May 6 03:03:51 1996
-@@ -6,17 +6,20 @@
+--- Makefile.orig Thu Mar 11 06:00:00 1993
++++ Makefile Mon Oct 16 11:41:01 2000
+@@ -1,4 +1,5 @@
+ # Makefile for dvi2tty and disdvi 23/01/89 M.J.E. Mol
++# Modified by Joel Sutton <suttonj@interconnect.com.au> 8th Feb, 1997
+ #
+ # For BSD Unix use the following CFLAGS definition
+ # CFLAGS = -Dstrchr=index
+@@ -6,17 +7,26 @@
# This Makefile does not work for MSDOS. Make your
# own one, or compile by hand.
#
-CFLAGS =
-+CFLAGS = -O2
-+CC = gcc
++
++PREFIX?= /usr/local
++BINDIR= ${PREFIX}/bin/
++MANDIR= ${PREFIX}/man/man
all: dvi2tty disdvi
@@ -25,41 +32,9 @@
dvistuff.o: dvistuff.c dvi2tty.h commands.h
++install: all
++ ${BSD_INSTALL_PROGRAM} dvi2tty ${BINDIR}
++ ${BSD_INSTALL_MAN} dvi2tty.1 ${MANDIR}1/
++
+clean:
+ rm -f dvi2tty disdvi *.o
---- dvistuff.c.orig Fri Mar 12 01:05:35 1993
-+++ dvistuff.c Mon May 6 04:48:49 1996
-@@ -996,13 +996,14 @@
- }
- else
- free(fnt->name); /* free old name */
-- if ((name = (char *) malloc(namelen * sizeof(char))) == NULL) {
-+ if ((name = (char *) malloc((namelen + 1) * sizeof(char))) == NULL) {
- perror("fontdef");
- exit(1);
- }
-
- for (i = 0; i < namelen; i++)
- name[i] = get1();
-+ name[namelen] = '\0';
- fnt->name = name;
- if (new) {
- fnt->next = fonts;
---- disdvi.c.orig Fri Mar 12 01:05:11 1993
-+++ disdvi.c Mon May 6 04:47:36 1996
-@@ -348,13 +348,14 @@
- }
- else
- free(fnt->name); /* free old name */
-- if ((name = (char *) malloc(namelen * sizeof(char))) == NULL) {
-+ if ((name = (char *) malloc((namelen + 1) * sizeof(char))) == NULL) {
- perror("fontdef");
- exit(1);
- }
-
- for (i = 0; i < namelen; i++)
- name[i] = get1();
-+ name[namelen] = '\0';
- fnt->name = name;
- if (new) {
- fnt->next = fonts;