summaryrefslogtreecommitdiff
path: root/www/lynx/Makefile
blob: b7a2a4877663de43cd4738a2b736f385d269ced8 (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
# $NetBSD: Makefile,v 1.25 2000/04/07 18:52:25 scottr Exp $
#

DISTNAME=       lynx2-8-2
PKGNAME=        lynx-2.8.2
WRKSRC=         ${WRKDIR}/lynx2-8-2
CATEGORIES=	www
MASTER_SITES=   http://www.slcc.edu/lynx/release2-8-2/

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.slcc.edu/lynx/

DEPENDS+=	libslang-*:../../devel/libslang

GNU_CONFIGURE=  YES
CONFIGURE_ARGS+= --with-screen=slang --with-zlib --libdir="${PREFIX}/etc"
# see if PASSIVE_FETCH is defined in /etc/mk.conf.  If so compile
# with the ftp code set to passive mode (-DNOPORT)
.include "../../mk/bsd.prefs.mk"

.if defined(PASSIVE_FETCH)
CONFIGURE_ENV+=	LIBS="-lm -ltermcap" CPPFLAGS="-Dunix -DNOPORT"
.else
CONFIGURE_ENV+=	LIBS="-lm -ltermcap" CPPFLAGS=-Dunix
.endif

# Include SOCKS firewall support
.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
CONFIGURE_ENV+=        CFLAGS=-I${PREFIX}/include # XXX
.if ${USE_SOCKS} == 4
CONFIGURE_ARGS+= 	--with-socks
DEPENDS+=		socks4-2.2:../../net/socks4
.else
CONFIGURE_ARGS+= 	--with-socks5
DEPENDS+=		socks5-1.0.2:../../net/socks5
.endif
.endif

# The patches for this code are from the KAME project:
# ftp://ftp.kame.net/pub/kame/misc/lynx-282-v6-19991008b.diff.gz
.include "../../mk/bsd.prefs.mk"
.if defined(USE_INET6) && ${USE_INET6} == YES
CC+=		-DINET6
PATCHDIR=	${WRKDIR}/.patches
.endif

BUILD_DEFS+=	USE_INET6

INSTALL_TARGET= install install-help
MAKEFILE=       makefile

pre-patch:
.if defined(USE_INET6) && ${USE_INET6} == YES
	${MKDIR} ${WRKDIR}/.patches
	${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches
	${CP} ${.CURDIR}/patches.v6/patch-* ${WRKDIR}/.patches
.endif

post-install:
	${RM} -rf ${PREFIX}/etc/lynx_doc
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/etc/lynx_help

.include "../../mk/bsd.pkg.mk"