blob: 00b1cf01d60b67b827f582e9b4291e1d2b6c151a (
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
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
# $NetBSD: Makefile.common,v 1.21 2003/07/17 22:56:06 grant Exp $
#
DISTNAME= w3m-${W3M_VERS}
WRKSRC= ${WRKDIR}/w3m-${W3M_VERS}
CATEGORIES= www
MASTER_SITES= http://www2u.biglobe.ne.jp/~hsaka/w3m/patch/
MAINTAINER= kei@NetBSD.org
HOMEPAGE= http://www2u.biglobe.ne.jp/~hsaka/w3m/
USE_BUILDLINK2= yes
W3M_VERS= ${W3M_BASE_VERS}-m17n-${W3M_M17N_VERS}
W3M_BASE_VERS= 0.4
W3M_M17N_VERS= 20030224
# w3m source with m17n patch applied.
W3M_SRC= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES+= ${W3M_SRC}
EXTRACT_ONLY= ${W3M_SRC}
PATCHDIR= ${.CURDIR}/../w3m/patches
DISTINFO_FILE= ${.CURDIR}/../w3m/distinfo
# For manuals
USE_PERL5= # defined
# multibyte/wide character support was split into libwc in latest version of
# w3m-m17n.
#LIBWC_SRC= libwc-latest.tar.gz
#LIBWC_WRKSRC= ${WRKDIR}/w3m-${W3M_VERS}
#DISTFILES+= ${LIBWC_SRC}
#EXTRACT_ONLY+= ${LIBWC_SRC}
HELPDIR= share/doc/w3m
HELPERDIR= lib/w3m
# configure will check IPv6 readiness automatically
BUILD_DEFS+= USE_INET6
.include "../../mk/bsd.prefs.mk"
# Always enable multiligualization.
W3M_USE_M17N= YES
# Set this to YES if you want unicode support.
W3M_USE_UNICODE?= YES
# set this to YES to use Japanese messages.
W3M_USE_JAPANESE_MESSAGES?= NO
# Set this to YES to use lynx like key binding.
W3M_USE_LYNX_KEY?= NO
# set this to YES if you want HTTPS support.
W3M_USE_SSL?= YES
# set this to YES if you want HTTP cookie support.
W3M_USE_COOKIE?= YES
# set this to YES if you want mouse support.
W3M_USE_MOUSE?= YES
# set this to YES if you want color support.
W3M_USE_COLOR?= YES
# set this to YES if you want image support.
W3M_USE_IMAGE?= NO
CONFIGURE_ENV+= use_m17n=y
.if ${W3M_USE_UNICODE} == YES
CONFIGURE_ENV+= use_unicode=y
.else
CONFIGURE_ENV+= use_unicode=n
.endif
CONFIGURE_ENV+= charset=ISO-2022-JP-2
.if ${W3M_USE_JAPANESE_MESSAGES} == YES
CONFIGURE_ARGS+= --lang=ja
HELP_LANG= _ja
.else
CONFIGURE_ARGS+= --lang=en
HELP_LANG= _en
.endif
.if ${W3M_USE_COLOR} == YES
CONFIGURE_ENV+= use_color=y
.else
CONFIGURE_ENV+= use_color=n
.endif
.if ${W3M_USE_MOUSE} == YES
CONFIGURE_ENV+= use_mouse=y
.else
CONFIGURE_ENV+= use_mouse=n
.endif
.if ${W3M_USE_COOKIE} == YES
CONFIGURE_ENV+= use_cookie=y
.else
CONFIGURE_ENV+= use_cookie=n
.endif
.if ${W3M_USE_SSL} == YES
CONFIGURE_ENV+= use_ssl=y use_ssl_verify=y
CONFIGURE_ARGS+= --ssl-includedir=${SSLBASE}/include/openssl
CONFIGURE_ARGS+= --ssl-libdir=${SSLBASE}/lib
.include "../../security/openssl/buildlink2.mk"
.else
CONFIGURE_ENV+= use_ssl=n use_ssl_verify=n
.endif
.if ${W3M_USE_LYNX_KEY} == YES
CONFIGURE_ENV+= lynx_key=y
HELP_W3M= -lynx
.else
CONFIGURE_ENV+= lynx_key=n
HELP_W3M= -w3m
.endif
.if ${W3M_USE_IMAGE} == YES
CONFIGURE_ENV+= use_image=y
.else
CONFIGURE_ENV+= use_image=n
.endif
CONFIGURE_ENV+= use_menu=y use_matrix=n use_ansi_color=y
CONFIGURE_ENV+= use_help_cgi=n use_migemo=n
CONFIGURE_ENV+= ded=vi dmail=Mail dbrowser=
CONFIGURE_ENV+= dcc="${CC}"
.if ${OPSYS} == "Darwin"
CONFIGURE_ENV+= dtermlib="-lcurses"
.else
CONFIGURE_ENV+= dtermlib="-ltermcap"
.endif
CONFIGURE_ENV+= dmodel=6
CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
CONFIGURE_ARGS+= --yes
CONFIGURE_ARGS+= --suffix=
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --bindir=${PREFIX}/bin
CONFIGURE_ARGS+= --auxbindir=${PREFIX}/${HELPERDIR}
CONFIGURE_ARGS+= --libdir=${PREFIX}/${HELPERDIR}
CONFIGURE_ARGS+= --helpdir=${PREFIX}/${HELPDIR}
CONFIGURE_ARGS+= --gc-includedir=${BUILDLINK_PREFIX.boehm-gc}/include
CONFIGURE_ARGS+= --gc-libdir=${BUILDLINK_PREFIX.boehm-gc}/lib
.if ${W3M_USE_IMAGE} == YES
PLIST_SUBST+= USE_IMAGE=''
.else
PLIST_SUBST+= USE_IMAGE='@comment '
.endif
post-extract:
@cd ${WRKSRC}/doc; ${RM} -fr CVS
@cd ${WRKSRC}/doc-jp; ${RM} -fr CVS
@cd ${WRKSRC}; ${RM} -fr gc
# @${LN} ${LIBWC_WRKSRC} ${WRKSRC}/libwc
post-patch:
@${FIND} ${WRKSRC} -type f -name '*.orig' | ${XARGS} ${RM}
# do not look at previous configuration
do-configure:
@cd ${WRKSRC} && CC="${CC}" ac_cv_path_CC="${CC}" \
INSTALL="${INSTALL_SCRIPT}" \
CFLAGS="${CFLAGS}" INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
${CONFIGURE_ENV} ${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
pre-build:
@cd ${WRKSRC}; \
${MAKE} XXMakefile; \
${MV} XXMakefile XXMakefile.gen; \
${SED} -e '/^GCLIB/s|gc/gc.a|-lgc|' -e '/^GCTARGET/s|gc/gc.a||' \
XXMakefile.gen > XXMakefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/w3m ${LOCALBASE}/bin
${INSTALL_MAN} ${WRKSRC}/doc/w3m.1 ${LOCALBASE}/man/man1
${INSTALL_MAN} ${WRKSRC}/doc-jp/w3m.1 ${LOCALBASE}/man/ja_JP.EUC/man1
${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPDIR}
${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_en.html ${LOCALBASE}/${HELPDIR}
${INSTALL_DATA} ${WRKSRC}/w3mhelp-w3m_ja.html ${LOCALBASE}/${HELPDIR}
${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_en.html ${LOCALBASE}/${HELPDIR}
${INSTALL_DATA} ${WRKSRC}/w3mhelp-lynx_ja.html ${LOCALBASE}/${HELPDIR}
# Use ${PAX} to discard uid/gid
cd ${WRKSRC}; ${PAX} -w doc doc-jp | \
(cd ${LOCALBASE}/${HELPDIR}; ${PAX} -r)
${INSTALL_DATA_DIR} ${LOCALBASE}/${HELPERDIR}
${INSTALL_PROGRAM} ${WRKSRC}/inflate ${LOCALBASE}/${HELPERDIR}
${INSTALL_PROGRAM} ${WRKSRC}/w3mbookmark ${LOCALBASE}/${HELPERDIR}
${INSTALL_PROGRAM} ${WRKSRC}/w3mhelperpanel ${LOCALBASE}/${HELPERDIR}
.if ${W3M_USE_IMAGE} == YES
${INSTALL_PROGRAM} ${WRKSRC}/w3mimgdisplay ${LOCALBASE}/${HELPERDIR}
.endif
post-install:
@cd ${LOCALBASE}/${HELPDIR}; \
${RM} -f w3mhelp.html; \
${LN} -s w3mhelp${HELP_W3M}${HELP_LANG}.html w3mhelp.html
.if ${W3M_USE_IMAGE} == YES
.include "../../graphics/gdk-pixbuf/buildlink2.mk"
.endif
.include "../../devel/boehm-gc/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|