aboutsummaryrefslogtreecommitdiff
path: root/www/gurlchecker/Makefile
blob: 3cbf0cc297c4d3310b0ccee023da9f16994448b2 (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
66
67
68
69
70
71
72
73
74
75
# Created by: Koop Mast <einekoai@chello.nl>
# $FreeBSD$

PORTNAME=	gurlchecker
PORTVERSION=	0.10.1
PORTREVISION=	22
CATEGORIES=	www gnome
MASTER_SITES=	http://labs.libre-entreprise.org/frs/download.php/%SUBDIR%/
MASTER_SITE_SUBDIR=	547

MAINTAINER=	clsung@FreeBSD.org
COMMENT=	Gnome program to check a page/website for broken links

LIB_DEPENDS=	libgnet-2.0.so:${PORTSDIR}/net/gnet2

OPTIONS_DEFINE=	CROCO TIDY CLAMAV GNUTLS
CROCO_DESC=Library for CSS2 validation
TIDY_DESC=Library for HTML w3c validation
CLAMAV_DESC=Library for virii scan
GNUTLS_DESC=Library for HTTPS check

OPTIONS_DEFAULT=	CLAMAV GNUTLS

USE_GNOME=	gnomeprefix intlhack libgnomeui
USES=	pathfix gmake pkgconfig
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MNLS}
USES+=		gettext
PLIST_SUB+=	NLS=""
.else
PLIST_SUB+=	NLS="@comment "
.endif

.if ${PORT_OPTIONS:MCROCO}
LIB_DEPENDS+=	libcroco-0.6.so:${PORTSDIR}/textproc/libcroco
.else
CONFIGURE_ARGS+=	--disable-croco
.endif

.if ${PORT_OPTIONS:MTIDY}
LIB_DEPENDS+=	libtidy-0.99.so:${PORTSDIR}/www/tidy-lib
.else
CONFIGURE_ARGS+=	--disable-tidy
.endif

.if ${PORT_OPTIONS:MCLAMAV}
LIB_DEPENDS+=	libclamav.so:${PORTSDIR}/security/clamav
.else
CONFIGURE_ARGS+=	--disable-clamav
.endif

.if ${PORT_OPTIONS:MGNUTLS}
LIB_DEPENDS+=	libgnutls.so:${PORTSDIR}/security/gnutls
.else
CONFIGURE_ARGS+=	--disable-gnutls
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		'/maxratio/s|^.*||' ${WRKSRC}/src/ucclam.c
	@${REINPLACE_CMD} -e \
		'/^SUBDIRS/s|doc ui man|ui|g' ${WRKSRC}/Makefile.in
	@${REINPLACE_CMD} -e \
		's|-lresolv||g' ${WRKSRC}/src/Makefile.in
.if ! ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} -e \
		'/^SUBDIRS/s|po ui|ui|g' ${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>