summaryrefslogtreecommitdiff
path: root/www/dillo2/Makefile
blob: 11e5e4684df8ecb58a893d3c4aa50cdf7df9b04f (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
# New ports collection makefile for:   dillo
# Date created:        28 August 2008
# Whom:                bf <bf2006a@yahoo.com>
#
# $FreeBSD$

PORTNAME=	dillo
PORTVERSION=	3.0.2
PORTREVISION=	1
CATEGORIES=	www ipv6
MASTER_SITES=	http://www.dillo.org/download/ LOCAL/bf

MAINTAINER=	bf@FreeBSD.org
COMMENT=	A fast, small graphical Web browser built upon fltk

LICENSE=	GPLv3

LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk
RUN_DEPENDS=	wget:${PORTSDIR}/ftp/wget

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
MAN1=		dillo.1
.ifndef(NOPORTDOCS)
PORTDOCS=	*
.endif
CONFIGURE_ARGS=	--libdir=${PREFIX}/libexec
CONFLICTS=	dillo-i18n-[0-9]* \
		dillo-0*
LATEST_LINK=	dillo2

OPTIONS=	COOKIES 	"Enable cookies" On \
		DEBUG		"Enable profiling and extra logging" Off \
		IPV6		"Enable ipv6"	On \
		SSL		"Enable (experimental) https support" On \
		THREADED_DNS	"Enable re-entrant resolver library" On

.include <bsd.port.options.mk>

.ifdef(WITH_COOKIES)
CONFIGURE_ARGS+=	--enable-cookies
.else
CONFIGURE_ARGS+=	--disable-cookies
.endif

.ifdef(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-gprof --enable-rtfl
.else
CONFIGURE_ARGS+=	--disable-gprof --disable-rtfl
.endif

.ifdef(WITH_IPV6)
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.ifdef(WITH_SSL)
CONFIGURE_ARGS+=	--enable-ssl
USE_OPENSSL=	yes
.else
CONFIGURE_ARGS+=	--disable-ssl
.endif

.ifdef(WITH_THREADED_DNS)
CONFIGURE_ARGS+=	--enable-threaded-dns
CFLAGS+=	${PTHREAD_CFLAGS}
.else
CONFIGURE_ARGS+=	--disable-threaded-dns
.endif

post-patch:
	@${MV} ${WRKSRC}/dillorc ${WRKSRC}/dillorc.dist
	@${MV} ${WRKSRC}/dpid/dpidrc.in ${WRKSRC}/dpid/dpidrc.dist.in
	@${MV} ${WRKSRC}/src/keysrc ${WRKSRC}/src/keysrc.dist
	@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/configure
	@${REINPLACE_CMD} -e "s|dillorc|dillorc.dist|g" ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e "s|dpidrc|dpidrc.dist|g" ${WRKSRC}/dpid/Makefile.in
	@${REINPLACE_CMD} -e "s|keysrc|keysrc.dist|g" ${WRKSRC}/src/Makefile.in
.ifdef(NOPORTDOCS)
	@${REINPLACE_CMD} -e "\|install-data-am:|s|install-dist_docDATA||" ${WRKSRC}/doc/Makefile.in
.endif

post-install:
.for f in dillorc dpidrc keysrc
. if !exists(${PREFIX}/etc/dillo/${f})
	${INSTALL_DATA} ${PREFIX}/etc/dillo/${f}.dist ${PREFIX}/etc/dillo/${f}
. endif
.endfor
.ifndef(NOPORTDOCS)
	${INSTALL_MAN} ${WRKSRC}/doc/* ${DOCSDIR}
.endif

.include <bsd.port.mk>