Extensible formatted print C library; ok lebel@

CVS ----------------------------------------------------------------------
This commit is contained in:
markus 2003-02-16 14:58:14 +00:00
parent 479a1ec91a
commit d0af769740
6 changed files with 66 additions and 0 deletions

22
devel/libfmt/Makefile Normal file
View File

@ -0,0 +1,22 @@
# $OpenBSD: Makefile,v 1.1.1.1 2003/02/16 14:58:14 markus Exp $
COMMENT= "Extensible formatted print C library"
VERSION= 2.0
DISTNAME= libfmt-${VERSION}
CATEGORIES= devel plan9
MASTER_SITES= http://pdos.lcs.mit.edu/~rsc/software/
HOMEPAGE= http://pdos.lcs.mit.edu/~rsc/software/
MAINTAINER= Markus Friedl <markus@openbsd.org>
EXTRACT_SUFX= .tgz
LIB_DEPENDS= utf::devel/libutf
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FAKE_FLAGS= PREFIX=${WRKINST}${PREFIX}
.include <bsd.port.mk>

3
devel/libfmt/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (libfmt-2.0.tgz) = 229cba061b369c1f9272cccde17616ff
RMD160 (libfmt-2.0.tgz) = 2fdd0b7687508988323c864192e371c62c26c751
SHA1 (libfmt-2.0.tgz) = 3ac6675eaa44607c0dc6d11575ba81ac3bf19eba

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Make_OpenBSD-386,v 1.1.1.1 2003/02/16 14:58:14 markus Exp $
--- Make.OpenBSD-386.orig Fri Feb 14 18:43:41 2003
+++ Make.OpenBSD-386 Fri Feb 14 18:43:41 2003
@@ -0,0 +1,8 @@
+CC=gcc
+CFLAGS+=-Wall -Wno-missing-braces -Wno-parentheses -Wno-switch -O2 -g -c -I. -I$(PREFIX)/include
+O=o
+AR=ar
+ARFLAGS=rvc
+NAN=nan64.$O # default, can be overriden by Make.$(SYSNAME)
+NAN=nan64.$O
+RANLIB=ranlib

View File

@ -0,0 +1,10 @@
--- Makefile.orig Thu Feb 13 16:04:39 2003
+++ Makefile Fri Feb 14 18:40:50 2003
@@ -83,6 +83,7 @@ test: $(LIB) test.$O
$(LIB): $(OFILES)
$(AR) $(ARFLAGS) $(LIB) $(OFILES)
+ $(RANLIB) $(LIB)
NUKEFILES+=$(LIB)
.c.$O:

14
devel/libfmt/pkg/DESCR Normal file
View File

@ -0,0 +1,14 @@
Libfmt is a port of Plan 9's formatted print library.
As a base it provides all the syntax of ANSI printf
but adds the ability for client programs to install
new print verbs. One such print verb (installed by
default) is %r, which prints the system error string.
Instead of perror("foo"), you can write fprint(2, "foo: %r\n").
This is especially nice when you write verbs to format
the data structures used by your particular program.
WWW: http://pdos.lcs.mit.edu/~rsc/software/#libfmt
http://plan9.bell-labs.com/magic/man2html/2/print
Russ Cox
rsc@post.harvard.edu

5
devel/libfmt/pkg/PLIST Normal file
View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/02/16 14:58:14 markus Exp $
include/fmt.h
lib/libfmt.a
man/man3/fmtinstall.3
man/man3/print.3