blob: aaf124e1c15d2b30c9ba003749fa70a9c8ad991d (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# $NetBSD: Makefile,v 1.3 1999/11/02 11:11:42 sakamoto Exp $
DISTNAME= NetBSD1.3I-jman-19990531
PKGNAME= ja-man-19990531
CATEGORIES= japanese
MASTER_SITES= ftp://ftp.spa.is.uec.ac.jp/pub/NetBSD/jman/archives/
MAINTAINER= sakamoto@netbsd.org
HOMEPAGE= ftp://ftp.spa.is.uec.ac.jp/pub/NetBSD/jman/index.html
DEPENDS= ja-less-332:../../japanese/less \
ja-groff-0.99:../../japanese/groff
JAMANDIR= ja_JP.EUC
PLIST_SUBST+= JAMANDIR=${JAMANDIR}
MAKE_ENV+= JAMANDIR=${JAMANDIR}
PLIST_SRC= ${WRKDIR}/PLIST
MESSAGE_SRC= ${PKGDIR}/MESSAGE
MESSAGE_FILE= ${WRKDIR}/.MESSAGE
.include "../../mk/bsd.prefs.mk"
.ifdef MANZ
MANCOMPRESSED= yes
.endif
post-extract:
@${GTAR} cCf ${PREFIX}/share/groff/tmac - tmac.andoc tmac.doc \
mdoc/doc-common mdoc/doc-ditroff mdoc/doc-nroff mdoc/doc-syms | \
${GTAR} xCf ${WRKSRC} -
post-patch:
@${PATCH} -s -p2 -d ${WRKSRC}/mdoc < \
${WRKSRC}/jgroff-for-netbsd-jman.dif
do-build:
@${SED} -e 's|$${BINDIR}|${PREFIX}/bin|g' \
-e 's|$${JMANCONFDIR}|${PREFIX}/etc|g' ${WRKSRC}/jman/jman.sh \
> ${WRKSRC}/jman/jman
@${SED} -e 's|$${PREFIX}|${PREFIX}|g' \
-e 's|$${LOCALBASE}|${LOCALBASE}|g' \
-e 's|$${X11BASE}|${X11BASE}|g' \
-e 's|$${JAMANDIR}|${JAMANDIR}|g' \
${WRKSRC}/jman/jman.conf \
> ${WRKSRC}/jman/jman.conf.t
pre-install:
@${SED} -e 's|$${PREFIX}|${PREFIX}|' ${MESSAGE_SRC} > ${MESSAGE_FILE}
.if ${MKCATPAGES} == no
@${SED} -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST > ${PLIST_SRC}
.if exists(${PKGDIR}/PLIST.${MACHINE})
@${SED} -e '/\/cat[1-9]\//d' ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
.endif
.else
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
.if exists(${PKGDIR}/PLIST.${MACHINE})
@${CAT} ${PKGDIR}/PLIST.${MACHINE} >> ${PLIST_SRC}
.endif
.endif
do-install:
for f in tmac.andoc tmac.doc \
mdoc/doc-common mdoc/doc-ditroff mdoc/doc-nroff mdoc/doc-syms; do \
${INSTALL_DATA} ${WRKSRC}/$${f} \
${PREFIX}/share/groff/tmac/$${f}j; \
done
${INSTALL_SCRIPT} ${WRKSRC}/jman/jman ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/jman/jman.conf.t ${PREFIX}/etc/jman.conf
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jman
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/jman
@(cd ${WRKSRC}/man; ${MAKE} PREFIX='${PREFIX}' install)
.include "../../mk/bsd.pkg.mk"
|