blob: 07313cf231a6a204d3df481bbd3e3e835f81e541 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
|