summaryrefslogtreecommitdiff
path: root/devel/sfio/patches
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-11-02 14:43:17 +0000
committeragc <agc@pkgsrc.org>1998-11-02 14:43:17 +0000
commit6e9d97ee5e2398259e7e6fced5371cd6f374eb01 (patch)
treeeb1f17f141e4f05abecdf4f6433d6f96375ab226 /devel/sfio/patches
parent1af4afef7f94f9d98ccb4b65a081fc3f18caa98d (diff)
downloadpkgsrc-6e9d97ee5e2398259e7e6fced5371cd6f374eb01.tar.gz
Initial import of sfio-1998, the Safe and Fast IO library from AT&T,
into the NetBSD packages collection. This package includes a stdio-compatible library.
Diffstat (limited to 'devel/sfio/patches')
-rw-r--r--devel/sfio/patches/patch-aa22
-rw-r--r--devel/sfio/patches/patch-ab20
-rw-r--r--devel/sfio/patches/patch-ac44
3 files changed, 86 insertions, 0 deletions
diff --git a/devel/sfio/patches/patch-aa b/devel/sfio/patches/patch-aa
new file mode 100644
index 00000000000..ce9f95e63db
--- /dev/null
+++ b/devel/sfio/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 1998/11/02 14:43:17 agc Exp $
+
+--- src/lib/sfio/Makefile 1998/10/27 17:01:58 1.1
++++ src/lib/sfio/Makefile 1998/10/27 17:03:57
+@@ -9,6 +9,8 @@
+
+ CCFLAGS = -O
+
++BINDIR= ../../../bin
++
+ SFIO= sfexit.c sfclose.c sfclrlock.c sfcvt.c sfdlen.c sfexcept.c sfextern.c \
+ sffilbuf.c sfflsbuf.c sfprints.c sfgetd.c sfgetl.c sfgetr.c sfgetu.c \
+ sfllen.c sfmode.c sfmove.c sfnew.c sfnputc.c sfopen.c sfpeek.c \
+@@ -41,7 +43,7 @@
+ stdio $(VERSION) :LIBRARY: $(STDIO_B)
+
+ ast_common.h : features/common
+- iffe - run features/common > ast_common.h
++ ${BINDIR}/iffe - run features/common > ast_common.h
+ sfstdgen : sfstdio.c
+ $(CC) -I. $(*) -o sfstdgen
+ sfstdhdr.h :
diff --git a/devel/sfio/patches/patch-ab b/devel/sfio/patches/patch-ab
new file mode 100644
index 00000000000..7c33e6034eb
--- /dev/null
+++ b/devel/sfio/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1.1.1 1998/11/02 14:43:17 agc Exp $
+
+Installation commands, mainly.
+
+--- /dev/null Tue Oct 27 17:12:04 1998
++++ Makefile Tue Oct 27 17:16:13 1998
+@@ -0,0 +1,13 @@
++all:
++ cd src/lib/sfio; make
++
++install:
++ ${INSTALL} -c -m 0644 lib/libsfio.a ${PREFIX}/lib
++ ${RANLIB} ${PREFIX}/lib/libsfio.a
++ ${INSTALL} -c -m 0644 lib/libstdio.a ${PREFIX}/lib
++ ${RANLIB} ${PREFIX}/lib/libstdio.a
++ ${INSTALL} -c -m 0644 man/man3/sfio.3 ${PREFIX}/man/man3
++ -mkdir ${PREFIX}/include/sfio
++ for f in ast_common.h sfio.h sfio_t.h stdio.h; do \
++ ${INSTALL} -c -m 0644 include/$$f ${PREFIX}/include/sfio; \
++ done
diff --git a/devel/sfio/patches/patch-ac b/devel/sfio/patches/patch-ac
new file mode 100644
index 00000000000..82c1001cbf7
--- /dev/null
+++ b/devel/sfio/patches/patch-ac
@@ -0,0 +1,44 @@
+$NetBSD: patch-ac,v 1.1.1.1 1998/11/02 14:43:17 agc Exp $
+
+We install the sfio header files into their own directory, to protect
+any casual compilation which includes the standard include/ directory,
+and so update the documentation to reflect this.
+
+--- man/man3/sfio.3 1998/11/02 14:29:31 1.1
++++ man/man3/sfio.3 1998/11/02 14:29:57
+@@ -15,7 +15,7 @@
+ .ta 1.0i 2.0i 3.0i 4.0i 5.0i
+ .nf
+ .ft 5
+-#include <sfio.h>
++#include <sfio/sfio.h>
+ .ft 1
+ .fi
+ .Ss "DATA TYPES"
+@@ -175,7 +175,7 @@
+ .Ss "FULL STRUCTURE SFIO_T"
+ .nf
+ .ft 5
+-#include <sfio_t.h>
++#include <sfio/sfio_t.h>
+ #define SFNEW(buf,size,file,flags,disc)
+ .ft 1
+ .fi
+@@ -197,7 +197,7 @@
+ .Ss "STDIO-COMPATIBILITY"
+ .nf
+ .ft 5
+-#include <stdio.h>
++#include <sfio/stdio.h>
+ cc ... -lstdio -lsfio
+ .ft 1
+ .fi
+@@ -1642,7 +1642,7 @@
+ .PP
+ .Ss "FULL STRUCTURE SFIO_T"
+ .PP
+-.Ss " #include <sfio_t.h>"
++.Ss " #include <sfio/sfio_t.h>"
+ Most applications based on \fISfio\fP only need to include
+ the header file \f5sfio.h\fP which defines an abbreviated \f5Sfio_t\fP
+ structure without certain fields private to \fISfio\fP.