blob: 609a9cf7d4827e0b48b58336fd68e65b2f681128 (
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
|
# $NetBSD: Makefile,v 1.56 2003/07/13 13:53:49 wiz Exp $
#
DISTNAME= lynx2.8.4rel.1
PKGNAME= lynx-2.8.4.1.4
PKGREVISION= 1
WRKSRC= ${WRKDIR}/lynx2-8-4
CATEGORIES= www
MASTER_SITES= http://lynx.isc.org/lynx2.8.4/ \
ftp://lynx.isc.org/lynx2.8.4/ \
ftp://ftp.nl.uu.net/pub/unix/www/lynx/lynx2.8.4/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/WWW/lynx/lynx2.8.4/
EXTRACT_SUFX= .tar.bz2
PATCH_SITES= http://lynx.isc.org/lynx2.8.4/patches/ \
ftp://lynx.isc.org/lynx/lynx2.8.4/patches/ \
ftp://ftp.nl.uu.net/pub/unix/www/lynx/lynx2.8.4/patches/ \
ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/WWW/lynx/lynx2.8.4/patches/
PATCHFILES= lynx2.8.4rel.1a.patch lynx2.8.4rel.1b.patch \
lynx2.8.4rel.1c.patch lynx2.8.4rel.1d.patch
PATCH_DIST_STRIP= -p1
MAINTAINER= fredb@netbsd.org
HOMEPAGE= http://lynx.browser.org/
COMMENT= Alphanumeric display oriented World-Wide Web Client
BUILD_USES_MSGFMT= yes
USE_BUILDLINK2= yes
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-bin install-cfg install-help install-lss
INSTALL_TARGET+= install-doc install-man
MAKEFILE= makefile
BUILD_DEFS+= LYNX_SCREEN_LIB USE_SOCKS USE_INET6
# For nls/gettext
CONFIGURE_ARGS+= --enable-nls
CONFIGURE_ARGS+= --with-nls-datadir=${PREFIX}/share
CONFIGURE_ARGS+= --without-included-gettext
# With SSL, lynx can get https:// and snews:// URL's.
CONFIGURE_ARGS+= --with-ssl
# Note: --enable-{default-colors,scrollbar} are simply ignored
# for certain settings of --with-screen.
CONFIGURE_ARGS+= --with-screen=${LYNX_SCREEN_LIB}
CONFIGURE_ARGS+= --enable-default-colors
CONFIGURE_ARGS+= --enable-scrollbar
# Install gzip'ed help files to ${PREFIX}/share/lynx
CONFIGURE_ARGS+= --libdir="${PREFIX}/share/lynx"
CONFIGURE_ARGS+= --enable-gzip-help --with-zlib
# Miscellaneous
CONFIGURE_ARGS+= --enable-externs
CONFIGURE_ARGS+= --enable-source-cache
# Experimental features
CONFIGURE_ARGS+= --enable-file-upload
CONFIGURE_ARGS+= --enable-justify-elts
CONFIGURE_ARGS+= --enable-prettysrc
CONFIGURE_ARGS+= --enable-read-eta
pre-install:
${RM} -f ${WRKSRC}/CHANGES.orig
post-install:
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/lynx
.include "../../mk/bsd.prefs.mk"
.if (${LYNX_SCREEN_LIB} == slang)
. include "../../devel/libslang/buildlink2.mk"
.elif (${LYNX_SCREEN_LIB} == ncurses)
USE_NCURSES= color
. include "../../devel/ncurses/buildlink2.mk"
CONFIGURE_ARGS+= --enable-color-style
.elif (${LYNX_SCREEN_LIB} != curses)
pre-configure:
@${ECHO} '****************************************************'
@${ECHO} '* Invalid value for LYNX_SCREEN_LIB. Please choose *'
@${ECHO} '* one of "slang", "ncurses", or "curses"! *'
@${ECHO} '****************************************************'
@${FALSE}
.endif
# Include SOCKS firewall support, if desired.
.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
.if (${LYNX_SCREEN_LIB} == slang)
pre-configure:
@${ECHO} '******************************************************'
@${ECHO} '* Socks may not be enabled together with the "slang" *'
@${ECHO} '* screen library. If socks support is desired, *'
@${ECHO} '* please also set LYNX_SCREEN_LIB to one of "curses" *'
@${ECHO} '* or "ncurses"! *'
@${ECHO} '******************************************************'
@${FALSE}
.endif
.if ${USE_SOCKS} == 4
CONFIGURE_ARGS+= --with-socks
. include "../../net/socks4/buildlink2.mk"
.else
CONFIGURE_ARGS+= --with-socks5
. include "../../net/socks5/buildlink2.mk"
.endif
.endif
# Do IPV6 on systems which can support it.
.if defined(USE_INET6) && ${USE_INET6} == YES
CONFIGURE_ARGS+= --enable-ipv6
.endif
.include "../../devel/ncurses/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
|