summaryrefslogtreecommitdiff
path: root/chat/silc-client/options.mk
blob: 7b25fcad622184b6aa08a37845bd27324b18147e (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
# $NetBSD: options.mk,v 1.6 2012/06/12 15:45:55 wiz Exp $
#

PKG_OPTIONS_VAR=	PKG_OPTIONS.silc-client
PKG_SUPPORTED_OPTIONS=	debug inet6 perl
PKG_SUGGESTED_OPTIONS=	inet6 perl

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+=	--enable-debug
.endif

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.endif

.if !empty(PKG_OPTIONS:Mperl)
CONFIGURE_ARGS+=	--with-perl-lib=${PREFIX}/lib/${PKGBASE}/perl5
.  include "../../lang/perl5/buildlink3.mk"
DEPENDS+=		p5-File-MMagic>=1.20:../../misc/p5-File-MMagic
PLIST_SRC+=		${PKGDIR}/PLIST.perl
PLIST_SRC+=		${WRKDIR}/PLIST.perl
USE_TOOLS+=		perl
.else
CONFIGURE_ARGS+=	--with-perl=no
.endif