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

PORTNAME=   links
PORTVERSION=    2.1.p7
PORTEPOCH=  1
CATEGORIES= www
MASTER_SITES=   http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/download/
DISTNAME=   ${PORTNAME}-2.1pre7

MAINTAINER= demon@FreeBSD.org

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

USE_OPENSSL=    yes
USE_BZIP2=  yes
USE_REINPLACE=  yes

.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
.endif

MAN1=       links.1

pre-everything::
        @${ECHO_MSG} "Define WITHOUT_X11 to disable graphics support."

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

.include <bsd.port.mk>