diff options
author | jraynard <jraynard@FreeBSD.org> | 1997-11-09 18:32:51 +0800 |
---|---|---|
committer | jraynard <jraynard@FreeBSD.org> | 1997-11-09 18:32:51 +0800 |
commit | a3a5612b357a42ad971b7566f748c42f5afae36f (patch) | |
tree | 246f42d2c25f090297241cdc577c94dcfeebd33d /devel | |
parent | 396cb44dbfb31969096807d35799371dad6978b2 (diff) | |
download | freebsd-ports-gnome-a3a5612b357a42ad971b7566f748c42f5afae36f.tar.gz freebsd-ports-gnome-a3a5612b357a42ad971b7566f748c42f5afae36f.tar.zst freebsd-ports-gnome-a3a5612b357a42ad971b7566f748c42f5afae36f.zip |
Safe/Fast I/O Library
Diffstat (limited to 'devel')
-rw-r--r-- | devel/sfio/Makefile | 48 | ||||
-rw-r--r-- | devel/sfio/distinfo | 1 | ||||
-rw-r--r-- | devel/sfio/files/patch-aa | 139 | ||||
-rw-r--r-- | devel/sfio/pkg-comment | 1 | ||||
-rw-r--r-- | devel/sfio/pkg-descr | 15 | ||||
-rw-r--r-- | devel/sfio/pkg-plist | 10 |
6 files changed, 214 insertions, 0 deletions
diff --git a/devel/sfio/Makefile b/devel/sfio/Makefile new file mode 100644 index 000000000000..5e56eeb7f233 --- /dev/null +++ b/devel/sfio/Makefile @@ -0,0 +1,48 @@ +# New ports collection makefile for: sfio +# Version required: 97 +# Date created: 8 November 1997 +# Whom: jraynard +# +# $Id$ +# + +DISTNAME= sfio97 +CATEGORIES= devel +MASTER_SITES= http://www.research.att.com/sw/tools/sfio/ +EXTRACT_SUFX= .src.unix.tar.Z + +MAINTAINER= jraynard@freebsd.org + +NO_WRKSUBDIR= yes +MAN3= sfio.3 sfdisc.3 + +do-fetch: + @if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ + ${ECHO} ""; \ + ${ECHO} "Please read http://www.research.att.com/sw/tools/sfio/"; \ + ${ECHO} "for details of how to obtain the SFIO source. Put the"; \ + ${ECHO} "file ${DISTNAME}${EXTRACT_SUFX} in the directory"; \ + ${ECHO} "${DISTDIR} and run make again."; \ + ${ECHO} ""; \ + exit 1;\ + fi + +# Remove a test that's too clever for its own good +# from the distribution, and a junk binary while we're at it. +post-extract: + @${RM} ${WRKDIR}/src/lib/sfio/Sfio_t/tmmap2read.c + @${RM} ${WRKDIR}/lib/libvdelta.a + +do-build: + @cd ${WRKDIR}/src/lib/sfio && ${MAKE} all -f makefile + @cd ${WRKDIR}/src/lib/sfdisc && ${MAKE} all + +do-install: + ${INSTALL_DATA} ${WRKDIR}/include/* ${PREFIX}/include + ${INSTALL_DATA} ${WRKDIR}/lib/libsfdisc.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKDIR}/lib/libsfio.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKDIR}/lib/libstdio.a ${PREFIX}/lib + ${INSTALL_MAN} ${WRKDIR}/man/man3/sfio.3 ${PREFIX}/man/man3 + ${INSTALL_MAN} ${WRKDIR}/man/man3/sfdisc.3 ${PREFIX}/man/man3 + +.include <bsd.port.mk> diff --git a/devel/sfio/distinfo b/devel/sfio/distinfo new file mode 100644 index 000000000000..858605d1845b --- /dev/null +++ b/devel/sfio/distinfo @@ -0,0 +1 @@ +MD5 (sfio97.src.unix.tar.Z) = 25cf92a15ee55062fa5d715a434f8cf7 diff --git a/devel/sfio/files/patch-aa b/devel/sfio/files/patch-aa new file mode 100644 index 000000000000..eedcd29865b8 --- /dev/null +++ b/devel/sfio/files/patch-aa @@ -0,0 +1,139 @@ +--- src/lib/sfio/makefile.orig Sat Nov 8 12:15:30 1997 ++++ src/lib/sfio/makefile Sat Nov 8 12:43:09 1997 +@@ -9,7 +9,7 @@ + # Compiler and flags to use + CXFLAGS= + CCMODE= -O +-CCFLAGS= -I. $(CCMODE) $(CXFLAGS) ++CFLAGS+= -I. $(CXFLAGS) + AR= ar + CC= cc + +@@ -44,7 +44,7 @@ + Stdio_s/stdscanf.o Stdio_s/stdsprintf.o Stdio_s/stdvbuf.o + + .c.o: +- $(CC) -c $(CCFLAGS) $*.c ++ $(CC) -c $(CFLAGS) $*.c + + all: install + +@@ -56,12 +56,12 @@ + ast_common.h: features/ast_common + export CC; CC=$(CC); $(BINDIR)/iffe - run features/ast_common > ast_common.h + sfio_f: +- cd Sfio_f; make -f Makefile CC="$(CC)" CCMODE="$(CCMODE)" CXFLAGS="$(CXFLAGS)" ++ cd Sfio_f; make + stdio_s: +- cd Stdio_s; make -f Makefile CC="$(CC)" CCMODE="$(CCMODE)" CXFLAGS="$(CXFLAGS)" ++ cd Stdio_s; make + + libstdio.a: +- cd Stdio_b; make -f Makefile CC="$(CC)" CCMODE="$(CCMODE)" CXFLAGS="$(CXFLAGS)" ++ cd Stdio_b; make + + install: libsfio.a libstdio.a + cp sfio.h ast_common.h sfio_t.h Stdio_s/stdio.h $(INCDIR) +--- src/lib/sfio/sfhdr.h.orig Sat Nov 8 12:18:29 1997 ++++ src/lib/sfio/sfhdr.h Sat Nov 8 12:19:25 1997 +@@ -136,7 +136,7 @@ + #if _typ_long_double + + #if _hdr_values +-#include <values.h> ++#include <float.h> + #endif + #if _hdr_math + #include <math.h> +--- src/lib/sfdisc/Makefile.orig Sat Nov 8 12:02:59 1997 ++++ src/lib/sfdisc/Makefile Sat Nov 8 12:04:14 1997 +@@ -11,7 +11,7 @@ + # Compiler and flags to use + CXFLAGS= + CCMODE= -O +-CCFLAGS= -I. -I$(INCDIR) $(CCMODE) $(CXFLAGS) ++CFLAGS+= -I. -I$(INCDIR) $(CXFLAGS) + AR= ar + CC= cc + +@@ -20,7 +20,7 @@ + OBJS= sfdcfilter.o sfdclzw.o sfdcskable.o sfdcsubstream.o sfdctee.o sfdcunion.o + + .c.o: +- $(CC) -c $(CCFLAGS) $*.c ++ $(CC) -c $(CFLAGS) $*.c + + all: install + +--- src/lib/sfio/Sfio_f/Makefile.orig Sat Nov 8 14:29:20 1997 ++++ src/lib/sfio/Sfio_f/Makefile Sat Nov 8 14:29:54 1997 +@@ -6,8 +6,7 @@ + AR= ar + CC= cc + CXFLAGS= +-CCMODE= -O +-CCFLAGS= -I.. $(CCMODE) $(CXFLAGS) ++CFLAGS+= -I.. $(CXFLAGS) + + SRCS= _sfclrerr.c _sfdlen.c _sfeof.c _sferror.c _sffileno.c _sfgetc.c \ + _sfgetl.c _sfgetu.c _sfllen.c _sfputc.c _sfputd.c _sfputl.c _sfputu.c \ +@@ -16,7 +17,7 @@ + _sfslen.o _sfstacked.o _sfulen.o _sfvalue.o + + .c.o: +- $(CC) -c $(CCFLAGS) $*.c ++ $(CC) -c $(CFLAGS) $*.c + + must: $(OBJS) + +--- src/lib/sfio/Stdio_b/Makefile.orig Sat Nov 8 14:30:33 1997 ++++ src/lib/sfio/Stdio_b/Makefile Sat Nov 8 14:31:14 1997 +@@ -6,8 +6,7 @@ + AR= ar + CC= cc + CXFLAGS= +-CCMODE= -O +-CCFLAGS= -I.. $(CCMODE) $(CXFLAGS) ++CFLAGS+= -I.. $(CXFLAGS) + BINDIR= ../../../../bin + + SRCS= doprnt.c doscan.c fclose.c fdopen.c fflush.c fgetc.c fgets.c filbuf.c \ +@@ -29,7 +28,7 @@ + cleanup.o vsnprintf.o snprintf.o + + .c.o: +- $(CC) -c $(CCFLAGS) $*.c ++ $(CC) -c $(CFLAGS) $*.c + + libstdio.a: FEATURE/stdio must $(OBJS) + $(AR) cr libstdio.a $(OBJS) +--- src/lib/sfio/Stdio_s/Makefile.orig Sat Nov 8 14:31:35 1997 ++++ src/lib/sfio/Stdio_s/Makefile Sat Nov 8 14:32:06 1997 +@@ -6,14 +6,13 @@ + AR= ar + CC= cc + CXFLAGS= +-CCMODE= -O +-CCFLAGS= -I.. $(CCMODE) $(CXFLAGS) ++CFLAGS+= -I.. $(CXFLAGS) + + SRCS= stdgets.c stdopen.c stdprintf.c stdscanf.c stdsprintf.c stdvbuf.c + OBJS= stdgets.o stdopen.o stdprintf.o stdscanf.o stdsprintf.o stdvbuf.o + + .c.o: +- $(CC) -c $(CCFLAGS) $*.c ++ $(CC) -c $(CFLAGS) $*.c + + must: $(OBJS) + +--- src/lib/sfio/Sfio_t/runtest.orig Sat Nov 8 15:27:24 1997 ++++ src/lib/sfio/Sfio_t/runtest Sat Nov 8 15:27:43 1997 +@@ -32,7 +32,7 @@ + if $CC -g -I.. -I$INCLUDE $i $LIB/libsfio.a -o t + then + if ./t +- then rm t; status=passed ++ then rm -f t; status=passed + else status=failed + fi + else status="Not compiled" diff --git a/devel/sfio/pkg-comment b/devel/sfio/pkg-comment new file mode 100644 index 000000000000..a59565713290 --- /dev/null +++ b/devel/sfio/pkg-comment @@ -0,0 +1 @@ +The Safe/Fast I/O Library diff --git a/devel/sfio/pkg-descr b/devel/sfio/pkg-descr new file mode 100644 index 000000000000..480b4e8385bc --- /dev/null +++ b/devel/sfio/pkg-descr @@ -0,0 +1,15 @@ +This is a portable library for performing stream I/O. It provides similar +functionality to the ANSI C Standard I/O functions collectively known as +Stdio. However, it is generally faster and more robust than most Stdio +implementations. + +This version of the +library has been ported to all known UNIX platforms including various +flavors of IRIX, SUNOS, Solaris, Ultrix, MVS/OpenEdition, Linux and BSDI. +The library handles 64-bit streams on platforms that support 64-bit files. + +A set of regression tests is available in the subdirectory +$(WRKDIR)/src/lib/sfio/Sfio_t. These tests can be exercised by running +the shell script runtest after building the library. + +See $(WRKDIR)/NOTICE/sfio.notice for copyright. diff --git a/devel/sfio/pkg-plist b/devel/sfio/pkg-plist new file mode 100644 index 000000000000..f841ec33d616 --- /dev/null +++ b/devel/sfio/pkg-plist @@ -0,0 +1,10 @@ +include/ast_common.h +include/sfdisc.h +include/sfio.h +include/sfio_t.h +include/stdio.h +lib/libsfdisc.a +lib/libsfio.a +lib/libstdio.a +man/man3/sfdisc.3.gz +man/man3/sfio.3.gz |