diff options
author | agc <agc@pkgsrc.org> | 1998-03-31 12:51:46 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1998-03-31 12:51:46 +0000 |
commit | f532fb058842685485c0b8e5a96bcbc20ee0b1f2 (patch) | |
tree | a04c57c7ae0b7c578c098ab73f6fbff9c692ae10 /textproc/unroff/scripts | |
parent | 88b64fc31b85456baea81d40bedbfda6c9a65e86 (diff) | |
download | pkgsrc-f532fb058842685485c0b8e5a96bcbc20ee0b1f2.tar.gz |
Initial import of unroff-1.0.2, a troff-like text formatter which can
output html, into the NetBSD packages collection, from the FreeBSD
port.
Diffstat (limited to 'textproc/unroff/scripts')
-rw-r--r-- | textproc/unroff/scripts/configure | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/textproc/unroff/scripts/configure b/textproc/unroff/scripts/configure new file mode 100644 index 00000000000..07313cf231a --- /dev/null +++ b/textproc/unroff/scripts/configure @@ -0,0 +1,30 @@ +#!/bin/sh + +# write a small makefile to ${WRKSRC} + +cat >${WRKSRC}/Makefile <<EOF +CFLAGS+= -DBSD +BINDIR= \${PREFIX}/bin +LIBDIR= \${PREFIX}/share/unroff +MANDIR= \${PREFIX}/man/man1 + +all: + (cd src; make 'CFLAGS=\${CFLAGS}' 'PREFIX=\${PREFIX}' all) + +install: + @mkdir -p \${BINDIR} \${LIBDIR} \${MANDIR} + install -c -o bin -g bin src/unroff \${PREFIX}/bin/unroff + cp -R scm \${LIBDIR} + @mkdir -p \${LIBDIR}/doc + cp doc/manual.ms \${LIBDIR}/doc + @mkdir -p \${LIBDIR}/misc + cp doc/tmac.hyper misc/sample.unroff \${LIBDIR}/misc + @chown -R bin.bin \${LIBDIR} + install -c -m 644 -o bin -g bin doc/*.1 \${MANDIR} +.if !defined(NOMANCOMPRESS) + gzip -9nf \${MANDIR}/unroff*.1 +.endif + +EOF + +exit 0 |