aboutsummaryrefslogtreecommitdiffstats
path: root/www/links/Makefile
blob: 3b238730d0563d997f5cc461de96f71217d783ac (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
# New ports collection makefile for:    links
# Date created:     21 January 2000
# Whom:         Michael Vasilenko <acid@stu.cn.ua>
#
# $FreeBSD$
#

PORTNAME=   links
PORTVERSION=    2.1.p21
PORTEPOCH=  1
CATEGORIES?=    www
MASTER_SITES=   http://links.twibright.com/download/
DISTNAME=   ${PORTNAME}-2.1pre21

MAINTAINER?=    demon@FreeBSD.org
COMMENT=    Lynx-like text WWW browser

GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=    --enable-javascript --with-ssl
CONFIGURE_ENV+= CPPFLAGS='-I${LOCALBASE}/include'
LDFLAGS+=   -L${LOCALBASE}/lib

USE_OPENSSL=    yes
USE_BZIP2=  yes

OPTIONS=    SVGALIB "non-X11 graphics support" off \
        X11 "X11 graphics support" on

.include <bsd.port.pre.mk>

.if defined(WITH_SVGALIB)
LIB_DEPENDS+=   vga.1:${PORTSDIR}/graphics/svgalib \
        png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        tiff.4:${PORTSDIR}/graphics/tiff
CONFIGURE_ARGS+=    --enable-graphics
OPTIONS_MESG=   "non-X11 graphics support enabled, "
.else
CONFIGURE_ARGS+=    --without-svgalib
OPTIONS_MESG=   "non-X11 graphics support disabled, "
.endif

.if !defined(WITHOUT_X11)
LIB_DEPENDS+=   png.5:${PORTSDIR}/graphics/png \
        jpeg.9:${PORTSDIR}/graphics/jpeg \
        tiff.4:${PORTSDIR}/graphics/tiff
USE_XLIB=   yes
CONFIGURE_ARGS+=    --enable-graphics --with-x
OPTIONS_MESG+=  "X11 graphics support enabled."
.else
CONFIGURE_ARGS+=    --without-x
OPTIONS_MESG+=  "X11 graphics support disabled."
.endif

MAN1=       links.1
PLIST_FILES=    bin/links

pre-everything::
        @${ECHO_MSG} ${OPTIONS_MESG}

post-patch:
    @${REINPLACE_CMD} -e "s!/etc/!${PREFIX}/etc/!" ${WRKSRC}/default.c

.include <bsd.port.post.mk>