aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mmr/Makefile
blob: 0d96f082c4bbf3e22c78e7cb549f3c80c2fbd645 (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
49
50
51
# New ports collection makefile for:    mmr
# Date created:             23 October 1997
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   mmr
PORTVERSION=    1.6.0
CATEGORIES= mail
MASTER_SITES=   http://www.sourcefiles.org/Internet/Mail/Clients/Console/ \
        http://slouken.libsdl.org/projects/mmr/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Curses based MIME Mail Reader

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

USE_ICONV=  yes
MAKE_ARGS=  LIBS='${LDFLAGS}' CXX='${CXX}' CXXFLAGS='${CXXFLAGS}'
ALL_TARGET= ${PORTNAME}
MAKE_JOBS_SAFE= yes

PORTDOCS=   BUGS CHANGES Features README TODO
PORTEXAMPLES=   dot.mmrc.sample
PLIST_FILES=    bin/mmr

CXXFLAGS+=  -DTHREADMAIL \
        -DMAILPATH=\"/var/mail\" \
        -DMAILER=\"/usr/sbin/sendmail\ -t\" \
        -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -liconv -lcurses -lmd

post-patch:
    @${REINPLACE_CMD} -e 's|md5/libmd5.a||g' ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mmr ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/DOT-mmrc ${EXAMPLESDIR}/dot.mmrc.sample
.endif

.include <bsd.port.mk>