blob: 00e06f3e13e3ba6d28408cbbc796dcaaef92b8ff (
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
|
# $NetBSD: options.mk,v 1.12 2011/12/02 12:33:53 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.msmtp
PKG_OPTIONS_OPTIONAL_GROUPS= ssl
PKG_OPTIONS_GROUP.ssl= gnutls ssl
PKG_SUPPORTED_OPTIONS= gnome-keyring gsasl idn inet6 scripts
PKG_SUGGESTED_OPTIONS= ssl
.include "../../mk/bsd.options.mk"
###
### SSL support
###
.if !empty(PKG_OPTIONS:Mssl)
. include "../../security/openssl/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=openssl
CONFIGURE_ARGS+= --with-libssl-prefix=${BUILDLINK_PREFIX.openssl}
.elif !empty(PKG_OPTIONS:Mgnutls)
. include "../../security/gnutls/buildlink3.mk"
CONFIGURE_ARGS+= --with-ssl=gnutls
CONFIGURE_ARGS+= --with-libgnutls-prefix=${BUILDLINK_PREFIX.gnutls}
.else
CONFIGURE_ARGS+= --disable-ssl
.endif
###
### GNUsasl support
###
.if !empty(PKG_OPTIONS:Mgsasl)
. include "../../security/gsasl/buildlink3.mk"
CONFIGURE_ARGS+= --with-libgsasl
CONFIGURE_ARGS+= --with-libgsasl-prefix=${BUILDLINK_PREFIX.gsasl}
.else
CONFIGURE_ARGS+= --without-libgsasl
.endif
###
### Internationalized Domain Names (IDN) support
###
.if !empty(PKG_OPTIONS:Midn)
. include "../../devel/libidn/buildlink3.mk"
CONFIGURE_ARGS+= --with-libidn
CONFIGURE_ARGS+= --with-libidn-prefix=${BUILDLINK_PREFIX.libidn}
.else
CONFIGURE_ARGS+= --without-libidn
.endif
###
### GNOME keyring support
###
.if !empty(PKG_OPTIONS:Mgnome-keyring)
. include "../../security/gnome-keyring/buildlink3.mk"
CONFIGURE_ARGS+= --with-gnome-keyring
USE_TOOLS+= pkg-config
.else
CONFIGURE_ARGS+= --without-gnome-keyring
.endif
###
### Install additional scripts
###
.if !empty(PKG_OPTIONS:Mscripts)
CHECK_INTERPRETER_SKIP+= share/msmtp/find_alias/find_alias_for_msmtp.sh \
share/msmtp/msmtpq/msmtp-queue \
share/msmtp/msmtpq/msmtpq \
share/msmtp/msmtp-gnome-tool/msmtp-gnome-tool.py \
share/msmtp/msmtpqueue/msmtp-enqueue.sh \
share/msmtp/msmtpqueue/msmtp-listqueue.sh \
share/msmtp/msmtpqueue/msmtp-runqueue.sh \
share/msmtp/set_sendmail/set_sendmail.sh
PLIST.scripts= yes
USE_TOOLS+= pax
INSTALLATION_DIRS+= share/msmtp
install-msmtp-scripts:
cd ${WRKSRC}/scripts && \
pax -rw find_alias msmtp-gnome-tool msmtpq msmtpqueue \
set_sendmail vim \
${DESTDIR}${PREFIX}/share/msmtp
.else
install-msmtp-scripts:
.endif
|