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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
# New ports collection makefile for: ja-groff
# Date created: 14 April 1995
# Whom: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp>
#
# $FreeBSD$
#
PORTNAME= groff
PORTVERSION= 1.18.1
PORTREVISION= 6
CATEGORIES= japanese print
MASTER_SITES= ${MASTER_SITE_LOCAL:S,%SUBDIR%,okazaki/&,} \
${MASTER_SITE_DEBIAN:S,$,:debian,}
MASTER_SITE_SUBDIR= groff/:DEFAULT pool/main/g/groff/:debian
DISTFILES= ${DISTNAME:S,-,_,}.orig${EXTRACT_SUFX}:debian ${TMAC_DISTNAME}.tar.gz
PATCH_SITES= ${MASTER_SITE_DEBIAN}
PATCH_SITE_SUBDIR= pool/main/g/groff
PATCHFILES= ${DISTNAME:S,-,_,}-11.diff.gz
PATCH_DIST_STRIP= -p1
MAINTAINER= okazaki@FreeBSD.org
COMMENT= Japanese enhancement of GNU groff
BUILD_DEPENDS= pnmcut:${PORTSDIR}/graphics/netpbm
RUN_DEPENDS= pnmcut:${PORTSDIR}/graphics/netpbm
TMAC_DATE= 20030521
TMAC_DISTNAME= tmac-${TMAC_DATE}_2
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_ICONV= yes
USE_REINPLACE= yes
CONFIGURE_ARGS= --enable-multibyte
CONFIGURE_ENV= INSTALL_MAN="${INSTALL_MAN}" \
LIBS="-L${LOCALBASE}/lib -liconv"
CFLAGS+= -I${LOCALBASE}/include
TMACBASE= ${WRKDIR}/${TMAC_DISTNAME}
TMACDIR= share/groff/${PORTVERSION}/tmac
SITETMACDIR= share/groff/site-tmac
MDOCDIR= ${TMACDIR}/mdoc
INFODIR= ${PREFIX}/info
DOCSDIR= ${PREFIX}/share/doc/groff/${PORTVERSION}
PLIST_SUB= GROFF_VERSION=${PORTVERSION}
MAN1= addftinfo.1 afmtodit.1 \
eqn.1 eqn2graph.1 \
grn.1 grodvi.1 groff.1 groffer.1 grog.1 \
grohtml.1 grolbp.1 grolj4.1 grops.1 grotty.1 \
hpftodit.1 indxbib.1 lkbib.1 lookbib.1 mmroff.1 \
neqn.1 nroff.1 pfbtops.1 pic.1 pic2graph.1 \
refer.1 soelim.1 tbl.1 tfmtodit.1 troff.1
MAN5= groff_font.5 groff_out.5 groff_tmac.5
MAN7= ditroff.7 groff.7 groff_char.7 groff_diff.7 \
groff_man.7 groff_mdoc.7 \
groff_me.7 groff_mm.7 groff_mmse.7 groff_mom.7 groff_ms.7 \
groff_trace.7 groff_www.7 roff.7
SITETMACFILES= mdoc.local
TMACFILES= tmac.orig_me tmac.vgrind \
an-old.tmac doc.tmac e.tmac
MDOCFILES= ja.eucJP doc-common doc-syms
DOCUMENTS= ChangeLog.jp NEWS PROBLEMS README README.jp
.include <bsd.port.pre.mk>
# nl_langinfo(CODESET) drops the support of ja_JP.EUC after 5.1-RELEASE
.if ${OSVERSION} > 501100
LOCALE_CMD?= /usr/bin/locale
.if exists(${LOCALE_CMD})
CHARMAP!= ${LOCALE_CMD} charmap
.if (${CHARMAP} == "EUC")
MAKE_ENV= LC_ALL=C
pre-build:
@${ECHO_CMD} "Warning: Your current locale setting is not supported by the system."
.endif
.endif
.endif
# formatting groff.info requires texinfo 4.2
.if ${OSVERSION} < 470000
WITHOUT_INFO= yes
.endif
.if defined(WITHOUT_INFO)
PLIST_SUB+= INFO="@comment "
.else
PLIST_SUB+= INFO=""
.endif
# wchar.h is exist since 4.4-RELEASE
.if ${OSVERSION} < 440000
WITHOUT_WCHAR_H= yes
.endif
post-patch:
.if defined(WITHOUT_WCHAR_H)
${REINPLACE_CMD} -e 's|#include <wchar[.]h>||g;' \
${WRKSRC}/src/libs/libgroff/encoding.cc
.endif
post-build:
${RM} -f ${WRKSRC}/doc/groff ${WRKSRC}/doc/groff-*
.if !defined(WITHOUT_INFO)
cd ${WRKSRC}/doc && makeinfo --no-split groff.texinfo
.endif
cd ${WRKSRC} && ${FIND} font -name DESC \
| ${XARGS} ${REINPLACE_CMD} -e 's|pro \(.*\)|pro ${PREFIX}/bin/\1|g;'
POST_INSTALL_SEQ= install-links
.if !defined(WITHOUT_INFO)
POST_INSTALL_SEQ+= install-info
.endif
.if !defined(NOPORTDOCS)
POST_INSTALL_SEQ+= install-documents
.endif
post-install: ${POST_INSTALL_SEQ}
.for F in ${SITETMACFILES}
${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${SITETMACDIR}
.endfor
.for F in ${TMACFILES}
${INSTALL_DATA} ${TMACBASE}/${F} ${PREFIX}/${TMACDIR}
.endfor
.for F in ${MDOCFILES}
${INSTALL_DATA} ${TMACBASE}/mdoc/${F} ${PREFIX}/${MDOCDIR}
.endfor
install-documents:
@${MKDIR} ${DOCSDIR}
.for F in ${DOCUMENTS}
${INSTALL_DATA} ${INSTALL_WRKSRC}/${F} ${DOCSDIR}
.endfor
install-info:
${INSTALL_DATA} ${WRKSRC}/doc/groff ${INFODIR}
install-info ${INFODIR}/groff ${INFODIR}/dir
install-links:
.for F in eqn neqn pic tbl
${LN} -sf ${F} ${PREFIX}/bin/g${F}
.endfor
.include <bsd.port.post.mk>
|