aboutsummaryrefslogtreecommitdiffstats
path: root/www/lynx/Makefile
blob: 62b3d9acea4a438355996b99cb000ce9838db422 (plain) (blame)
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
# Created by: Andrey Chernov <ache@FreeBSD.org>
# $FreeBSD$

PORTNAME=   lynx
PORTVERSION=    2.8.8.2
PORTEPOCH=  1
CATEGORIES= www ipv6
MASTER_SITES=   http://lynx.isc.org/current/ \
        http://bitrote.org/distfiles/
DISTNAME=   ${PORTNAME}${PORTVERSION:R}rel.${PORTVERSION:E}

MAINTAINER= jharris@widomaker.com
COMMENT=    Non-graphical, text-based World-Wide Web client

LICENSE=    GPLv2

CONFLICTS=  lynx-2.8.[8-9]d*

USES=       tar:bzip2
USE_OPENSSL=    yes
WRKSRC=     ${WRKDIR}/${PORTNAME}2-8-8
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--with-zlib --libdir="${L_LIB}" \
        --enable-nsl-fork --enable-persistent-cookies \
        --enable-nested-tables --enable-gzip-help \
        --with-screen=ncursesw

MAKE_JOBS_UNSAFE=   yes

OPTIONS_DEFINE= DEFAULT_COLORS IPV6 NLS SSL DOCS
OPTIONS_DEFAULT=    SSL
DEFAULT_COLORS_DESC=    Colors support
OPTIONS_SUB=    yes

NLS_USES=   gettext iconv
NLS_CONFIGURE_ENABLE=   nls
NLS_CONFIGURE_ON=   ${ICONV_CONFIGURE_ARG}

IPV6_CONFIGURE_ENABLE=  ipv6

DEFAULT_COLORS_CONFIGURE_ENABLE=    default-colors

DOCS_CONFIGURE_ENABLE=  local-docs
DOCS_INSTALL_TARGET=    install-full
DOCS_MAKE_ARGS=     helpdir=${L_HELP} docdir=${DOCSDIR}
L_HELP=         ${PREFIX}/share/lynx_help

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSSL}
CONFIGURE_ARGS+=    --with-ssl=${OPENSSLBASE}
.endif

MAKEFILE=   makefile

L_LIB=      ${PREFIX}/etc

SUB_FILES=  pkg-message

post-install:
# Fix some stage symlinks
    ${LN} -sf ${DOCSDIR}/COPYHEADER ${STAGEDIR}${L_HELP}
    ${LN} -sf ${DOCSDIR}/COPYING ${STAGEDIR}${L_HELP}

.include <bsd.port.mk>