summaryrefslogtreecommitdiff
path: root/mail/mmh/Makefile
blob: 227d95cad32684e7fc03aa1d7d15a91785beaff8 (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
PORTNAME=	mmh
PORTVERSION=	0.4
CATEGORIES=	mail
MASTER_SITES=	http://marmaro.de/prog/mmh/files/

MAINTAINER=	satanist+freebsd@bureaucracy.de
COMMENT=	CLI mail user agent, fork from nmh

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYRIGHT

USE=		iconv ncurses
HAS_CONFIGURE=	yes

CONFIGURE_ARGS=	--libdir=${PREFIX}/libexec/mmh \
				--sysconfdir=${ETCDIR} \
				--bindir=${PREFIX}/bin \
				--mandir=${PREFIX}/man \
				--docdir=${DOCSDIR} \

OPTIONS_SINGLE=	LOCKING
OPTIONS_SINGLE_LOCKING=	DOT FCNTL FLOCK LOCKF

DOT_DESC=		Dot file locking
DOT_CONFIGURE_ON=	--with-locking=dot
FCNTL_DESC=		fcntl() file locking
FCNTL_CONFIGURE_ON=	--with-locking=fcntl
FLOCK_DESC=		flock() file locking
FLOCK_CONFIGURE_ON=	--with-locking=flock
LOCKF_DESC=		lockf file locking
LOCKF_CONFIGURE_ON=	--with-locking=lockf

OPTIONS_DEFAULT=	FLOCK

.include <bsd.port.options.mk>

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--enable-debug
LDFLAGS+=		-g
DEBUG_FLAGS+=		-O0 -Wall -Wextra -g
.endif

CONFLICTS=		ja-mh nmh p5-Dist-Joseki

post-install:
	@${FIND} ${STAGEDIR}${ETCDIR} -type f -exec ${MV} {} {}.sample \;

.include <bsd.port.mk>