1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= nmh |
4 |
PORTVERSION= 1.6 |
5 |
PORTREVISION= 1 |
6 |
CATEGORIES= mail |
7 |
MASTER_SITES= SAVANNAH |
8 |
|
9 |
MAINTAINER= ports@MidnightBSD.org |
10 |
COMMENT= Cleaned up MH mailer suite |
11 |
|
12 |
LICENSE= bsd3 |
13 |
|
14 |
USES= cpe gmake iconv ncurses shebangfix |
15 |
SHEBANG_FILES= docs/contrib/ml docs/contrib/replyfilter docs/contrib/vpick |
16 |
GNU_CONFIGURE= yes |
17 |
CONFIGURE_ARGS= --libdir=${PREFIX}/libexec/nmh \ |
18 |
--sysconfdir=${PREFIX}/etc/nmh \ |
19 |
--docdir=${DOCSDIR} |
20 |
|
21 |
OPTIONS_DEFINE= DOCS HASH_BKP SASL2 TLS REPLYFILTER |
22 |
OPTIONS_SINGLE= MTS LOCKING |
23 |
OPTIONS_SINGLE_MTS= SMTP SENDMAIL_SMTP SENDMAIL_PIPE |
24 |
OPTIONS_SINGLE_LOCKING= DOT FCNTL FLOCK LOCKF |
25 |
|
26 |
SASL2_DESC= SASL2 support |
27 |
SASL2_CONFIGURE_WITH= cyrus-sasl |
28 |
SASL2_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 |
29 |
SASL2_LDFLAGS=-L${LOCALBASE}/lib |
30 |
SASL2_CPPFLAGS=-I${LOCALBASE}/include |
31 |
|
32 |
HASH_BKP_DESC= Use hash as backup prefix (default is a comma) |
33 |
HASH_BKP_CONFIGURE_WITH= hash-backup |
34 |
|
35 |
REPLYFILTER_DESC= Install dependencies for contrib/replyfilter |
36 |
REPLYFILTER_RUN_DEPENDS= p5-MIME-Tools>=0:mail/p5-MIME-Tools \ |
37 |
p5-Mail-Tools>=0:mail/p5-Mail-Tools \ |
38 |
w3m>=0:www/w3m \ |
39 |
par>=0:textproc/par |
40 |
|
41 |
SMTP_DESC= Use remote SMTP |
42 |
SMTP_CONFIGURE_ON= --with-mts=smtp |
43 |
SENDMAIL_SMTP_DESC= Use local sendmail (connect through socket) |
44 |
SENDMAIL_SMTP_CONFIGURE_ON= --with-mts=sendmail/smtp |
45 |
SENDMAIL_PIPE_DESC= Use local sendmail (connect through pipe) |
46 |
SENDMAIL_PIPE_CONFIGURE_ON= --with-mts=sendmail/pipe |
47 |
|
48 |
DOT_DESC= Dot file locking |
49 |
DOT_CONFIGURE_ON= --with-locking=dot |
50 |
FCNTL_DESC= fcntl() file locking |
51 |
FCNTL_CONFIGURE_ON= --with-locking=fcntl |
52 |
FLOCK_DESC= flock() file locking |
53 |
FLOCK_CONFIGURE_ON= --with-locking=flock |
54 |
LOCKF_DESC= lockf file locking |
55 |
LOCKF_CONFIGURE_ON= --with-locking=lockf |
56 |
|
57 |
OPTIONS_DEFAULT= SMTP FLOCK |
58 |
|
59 |
.include <bsd.mport.options.mk> |
60 |
|
61 |
.if ${PORT_OPTIONS:MTLS} |
62 |
CONFIGURE_ARGS+= --with-tls |
63 |
EXTENSIONS+= ssl |
64 |
.endif |
65 |
|
66 |
.if defined(WITH_DEBUG) |
67 |
CONFIGURE_ARGS+= --enable-debug |
68 |
LDFLAGS+= -g |
69 |
DEBUG_FLAGS+= -O0 -Wall -Wextra -g |
70 |
.endif |
71 |
|
72 |
CONFLICTS= ja-mh-[0-9]* |
73 |
|
74 |
.include <bsd.port.mk> |