summaryrefslogtreecommitdiff
path: root/net/lftp/options.mk
blob: 884830761b42b0c5d1be9a2d704fd230796c5636 (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
# $NetBSD: options.mk,v 1.12 2012/01/09 14:53:31 drochner Exp $
#

PKG_OPTIONS_VAR=	PKG_OPTIONS.lftp

PKG_OPTIONS_OPTIONAL_GROUPS=	ssl
PKG_OPTIONS_GROUP.ssl=	gnutls ssl

PKG_SUPPORTED_OPTIONS=	perl dnssec
PKG_SUGGESTED_OPTIONS=	ssl

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

###
### SSL support
###
.if !empty(PKG_OPTIONS:Mgnutls)
CONFIGURE_ARGS+=	--without-openssl
USE_TOOLS+=	pkg-config
.  include "../../security/gnutls/buildlink3.mk"
.elif !empty(PKG_OPTIONS:Mssl)
CONFIGURE_ARGS+=	--without-gnutls
CONFIGURE_ARGS+=	--with-openssl=${SSLBASE:Q}
.  include "../../security/openssl/buildlink3.mk"
.else
CONFIGURE_ARGS+=	--without-gnutls
CONFIGURE_ARGS+=	--without-openssl
.endif

.PHONY: post-install-perl

.if !empty(PKG_OPTIONS:Mperl)
USE_TOOLS+=		perl:run
DEPENDS+=		p5-Digest-MD5-[0-9]*:../../security/p5-Digest-MD5
DEPENDS+=		p5-String-CRC32-[0-9]*:../../textproc/p5-String-CRC32
REPLACE_PERL+=		src/convert-mozilla-cookies src/verify-file
PLIST_SRC+=		${PKGDIR}/PLIST.perl

post-install-perl:
	${INSTALL_SCRIPT} ${WRKSRC}/src/convert-mozilla-cookies \
		${WRKSRC}/src/verify-file ${DESTDIR}${PREFIX}/share/lftp
.else
post-install-perl:
.endif

###
### DNSSEC support
###
.if !empty(PKG_OPTIONS:Mdnssec)
. include "../../security/dnssec-tools/buildlink3.mk"
CONFIGURE_ARGS+=	--with-dnssec-local-validation
.endif