Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+48
View File
@@ -0,0 +1,48 @@
$NetBSD: patch-aa,v 1.2 2006/01/10 16:34:09 joerg Exp $
--- src/Makefile.orig 1995-08-23 12:12:48.000000000 +0000
+++ src/Makefile
@@ -2,16 +2,16 @@
### You need a C compiler that compiles ANSI C code.
-CC = gcc
-CFLAGS = -Wall -pedantic -O
+#CC = gcc
+#CFLAGS = -Wall -pedantic -O
### If you need additional linker flags add them here.
-LDFLAGS =
+LDFLAGS = -s
### The directory where the Elk installation resides on your system.
-ELKDIR = /usr/elk
+ELKDIR = ${PREFIX}/lib/elk
### Additional libraries. You may want to insert the output of the
### shell-script $(ELKDIR)/lib/ldflags here.
-LIBS = -lm
+LIBS = ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lelk -lm
### The makedepend program (it's usually installed with the X11 binaries).
@@ -19,5 +19,5 @@ MAKEDEP = makedepend
### The directory under which you will install the Scheme files.
-DIR = /usr/local/lib/unroff
+DIR = ${PREFIX}/share/unroff
### The default output format.
@@ -31,5 +31,5 @@ FORMAT = html
SHELL = /bin/sh
-INCLUDE = -I$(ELKDIR)/include
+INCLUDE = -I${PREFIX}/include/elk
ELK = $(ELKDIR)/lib/module.o
DEFS = -DDEFAULT_DIR=\"$(DIR)\" -DDEFAULT_FORMAT=\"$(FORMAT)\"
@@ -68,6 +68,5 @@ OBJECTS = \
subst.o\
table.o\
- unroff.o\
- $(ELK)
+ unroff.o
ALL = unroff
+15
View File
@@ -0,0 +1,15 @@
$NetBSD: patch-ab,v 1.2 2004/07/10 14:38:08 wiz Exp $
--- src/error.c.orig 1995-06-02 15:16:00.000000000 +0200
+++ src/error.c
@@ -38,8 +38,10 @@ void fatal_error(char *fmt, ...) {
}
static char *strerr(void) {
+#ifndef BSD
extern int sys_nerr;
extern char *sys_errlist[];
+#endif
return errno > 0 && errno < sys_nerr ?
sys_errlist[errno] : "unknown error";
+14
View File
@@ -0,0 +1,14 @@
$NetBSD: patch-ad,v 1.1 2006/01/10 16:34:09 joerg Exp $
--- src/error.h.orig 2006-01-10 16:20:51.000000000 +0000
+++ src/error.h
@@ -12,9 +12,5 @@ void read_error(char *) NORETURN;
void write_error(char *) NORETURN;
void open_error(char *) NORETURN;
-/* Redefined to add NORETURN
- */
-extern Primitive_Error() NORETURN;
-
char *printable_string(char *, int);
char *printable_char(char);