summaryrefslogtreecommitdiff
path: root/textproc/unroff/patches
diff options
context:
space:
mode:
authoragc <agc>1998-03-31 12:51:46 +0000
committeragc <agc>1998-03-31 12:51:46 +0000
commit1256d07aad74698c6084c3049b34613e9cf132cc (patch)
treea04c57c7ae0b7c578c098ab73f6fbff9c692ae10 /textproc/unroff/patches
parent93e47080f4f83105b4b38f7b07f1b581183ddf8e (diff)
downloadpkgsrc-1256d07aad74698c6084c3049b34613e9cf132cc.tar.gz
Initial import of unroff-1.0.2, a troff-like text formatter which can
output html, into the NetBSD packages collection, from the FreeBSD port.
Diffstat (limited to 'textproc/unroff/patches')
-rw-r--r--textproc/unroff/patches/patch-a68
-rw-r--r--textproc/unroff/patches/patch-b15
2 files changed, 83 insertions, 0 deletions
diff --git a/textproc/unroff/patches/patch-a b/textproc/unroff/patches/patch-a
new file mode 100644
index 00000000000..0a5259af6f6
--- /dev/null
+++ b/textproc/unroff/patches/patch-a
@@ -0,0 +1,68 @@
+diff -cr unroff-1.0.orig/src/Makefile unroff-1.0/src/Makefile
+*** unroff-1.0.orig/src/Makefile Wed Aug 23 14:12:48 1995
+--- unroff-1.0/src/Makefile Mon Feb 12 18:51:08 1996
+***************
+*** 1,14 ****
+ # $Revision: 1.1.1.1 $
+
+ ### You need a C compiler that compiles ANSI C code.
+! CC = gcc
+! CFLAGS = -Wall -pedantic -O
+
+ ### If you need additional linker flags add them here.
+! LDFLAGS =
+
+ ### The directory where the Elk installation resides on your system.
+! ELKDIR = /usr/elk
+
+ ### Additional libraries. You may want to insert the output of the
+ ### shell-script $(ELKDIR)/lib/ldflags here.
+--- 1,14 ----
+ # $Revision: 1.1.1.1 $
+
+ ### You need a C compiler that compiles ANSI C code.
+! #CC = gcc
+! #CFLAGS = -Wall -pedantic -O
+
+ ### If you need additional linker flags add them here.
+! LDFLAGS = -s
+
+ ### The directory where the Elk installation resides on your system.
+! ELKDIR = ${PREFIX}/share/elk
+
+ ### Additional libraries. You may want to insert the output of the
+ ### shell-script $(ELKDIR)/lib/ldflags here.
+***************
+*** 18,24 ****
+ MAKEDEP = makedepend
+
+ ### The directory under which you will install the Scheme files.
+! DIR = /usr/local/lib/unroff
+
+ ### The default output format.
+ FORMAT = html
+--- 18,24 ----
+ MAKEDEP = makedepend
+
+ ### The directory under which you will install the Scheme files.
+! DIR = ${PREFIX}/share/unroff
+
+ ### The default output format.
+ FORMAT = html
+***************
+*** 30,36 ****
+ ### -------------------------------------------------------------------------
+
+ SHELL = /bin/sh
+! INCLUDE = -I$(ELKDIR)/include
+ ELK = $(ELKDIR)/lib/module.o
+ DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
+ CTAGS = ctags -t -w
+--- 30,36 ----
+ ### -------------------------------------------------------------------------
+
+ SHELL = /bin/sh
+! INCLUDE = -I${PREFIX}/include/elk
+ ELK = $(ELKDIR)/lib/module.o
+ DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
+ CTAGS = ctags -t -w
diff --git a/textproc/unroff/patches/patch-b b/textproc/unroff/patches/patch-b
new file mode 100644
index 00000000000..d846348ec27
--- /dev/null
+++ b/textproc/unroff/patches/patch-b
@@ -0,0 +1,15 @@
+diff -cr unroff-1.0.orig/src/error.c unroff-1.0/src/error.c
+*** unroff-1.0.orig/src/error.c Fri Jun 2 15:16:00 1995
+--- unroff-1.0/src/error.c Mon Feb 12 18:53:17 1996
+***************
+*** 39,45 ****
+--- 39,47 ----
+
+ static char *strerr(void) {
+ extern int sys_nerr;
++ #ifndef BSD
+ extern char *sys_errlist[];
++ #endif
+
+ return errno > 0 && errno < sys_nerr ?
+ sys_errlist[errno] : "unknown error";