mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-01 22:05:08 +00:00
3629f1878c
HTML backend.
31 lines
684 B
Bash
31 lines
684 B
Bash
#!/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
|