diff options
-rw-r--r-- | textproc/cawf/DESCR | 9 | ||||
-rw-r--r-- | textproc/cawf/Makefile | 32 | ||||
-rw-r--r-- | textproc/cawf/PLIST | 12 | ||||
-rw-r--r-- | textproc/cawf/distinfo | 5 | ||||
-rw-r--r-- | textproc/cawf/patches/patch-aa | 28 |
5 files changed, 86 insertions, 0 deletions
diff --git a/textproc/cawf/DESCR b/textproc/cawf/DESCR new file mode 100644 index 00000000000..914399f5963 --- /dev/null +++ b/textproc/cawf/DESCR @@ -0,0 +1,9 @@ +Cawf is a C version of awf, Henry Spencer's Amazingly Workable (text) +Formatter. (Awf is written in awk and appears in comp.sources.unix, +Volume 23, Issue 27.) Cawf and awf provide a usable subset of raw nroff +capabilities and the styles of the man(7), me(7) (only cawf supports +me(7)), and ms(7) macro sets. + +Like awf, cawf is completely independent of any licensed Unix source +code. In comparison to awf, cawf supports more nroff functions and one +more macro set, me(7). diff --git a/textproc/cawf/Makefile b/textproc/cawf/Makefile new file mode 100644 index 00000000000..9409d2f5ef2 --- /dev/null +++ b/textproc/cawf/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/01/20 17:59:12 tv Exp $ +# + +DISTNAME= cawf +PKGNAME= cawf-4.10 +CATEGORIES= textproc +MASTER_SITES= http://www.tux.org/pub/sites/vic.cc.purdue.edu/ +DIST_SUBDIR= ${PKGNAME_NOREV} +EXTRACT_SUFX= .zip + +MAINTAINER= tv@duh.org +HOMEPAGE= http://www.tux.org/pub/sites/vic.cc.purdue.edu/ +COMMENT= Simplistic nroff-like formatter in C, like "awf" + +WRKSRC= ${WRKDIR} + +PKG_INSTALLATION_TYPES= overwrite pkgviews +USE_BUILDLINK3= yes + +.include "../../mk/bsd.prefs.mk" + +CPPFLAGS+= -DUNIX -DUSG -DSTDLIB -DCAWFLIB='\"${PREFIX}/share/cawf\"' + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bsfilt ${WRKSRC}/cawf ${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/*.1 ${PREFIX}/man/man1/ + ${INSTALL_DATA_DIR} ${PREFIX}/share/cawf + ${INSTALL_DATA} ${WRKSRC}/device.cf ${PREFIX}/share/cawf/ + ${INSTALL_DATA} ${WRKSRC}/*.dev ${WRKSRC}/*.mac ${PREFIX}/share/cawf/ + ${INSTALL_DATA} ${WRKSRC}/00diffs ${PREFIX}/share/cawf/DIFFS + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/cawf/PLIST b/textproc/cawf/PLIST new file mode 100644 index 00000000000..99b5f3cc9f3 --- /dev/null +++ b/textproc/cawf/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/20 17:59:12 tv Exp $ +bin/bsfilt +bin/cawf +man/man1/bsfilt.1 +man/man1/cawf.1 +share/cawf/DIFFS +share/cawf/device.cf +share/cawf/dumb.dev +share/cawf/man.mac +share/cawf/me.mac +share/cawf/ms.mac +@dirrm share/cawf diff --git a/textproc/cawf/distinfo b/textproc/cawf/distinfo new file mode 100644 index 00000000000..14873a3e75c --- /dev/null +++ b/textproc/cawf/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/01/20 17:59:13 tv Exp $ + +SHA1 (cawf-4.10/cawf.zip) = c16985f79c5d9b11de62dff6ed24d210ca12eb40 +Size (cawf-4.10/cawf.zip) = 287677 bytes +SHA1 (patch-aa) = 21ff1ae5d3fb3a32cb855c2b4353ffbe62ebcd17 diff --git a/textproc/cawf/patches/patch-aa b/textproc/cawf/patches/patch-aa new file mode 100644 index 00000000000..9a45c33f8ac --- /dev/null +++ b/textproc/cawf/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/01/20 17:59:13 tv Exp $ + +--- Makefile.orig 2005-01-20 12:32:21.000000000 -0500 ++++ Makefile +@@ -34,10 +34,6 @@ + # + #DEFS = -DUNIX -DMALLOCH + +-DEFS = -DUNIX -DSTDLIB -D_NEXT_SOURCE -ansi -pedantic +- +-CFLAGS = -O ${DEFS} +- + HDR = ansi.h cawf.h cawflib.h proto.h regexp.h regmagic.h + + SRC = cawf.c device.c error.c expand.c expr.c getopt.c macsup.c nreq.c \ +@@ -49,10 +45,10 @@ OBJ = cawf.o device.o error.o expand.o e + all: bsfilt cawf + + bsfilt: bsfilt.c +- ${CC} ${CFLAGS} bsfilt.c -o bsfilt ++ ${COMPILE.c} -o bsfilt bsfilt.c + + cawf: ${OBJ} +- ${CC} ${CFLAGS} ${OBJ} -o cawf ++ ${LINK.c} -o cawf ${OBJ} + + clean: + rm -f *.o a.out core *errs bsfilt cawf |