mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
e324362ea9
- Utilize USES=localbase - Pet portclippy Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
PORTNAME= mmr
|
|
PORTVERSION= 1.6.0
|
|
PORTREVISION= 1
|
|
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
|
|
WWW= https://slouken.libsdl.org/projects/mmr/
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= iconv localbase ncurses
|
|
USE_CXXSTD= c++14
|
|
|
|
MAKE_ARGS= LIBS='${LIBS}' CXX='${CXX}' CXXFLAGS='${CXXFLAGS}'
|
|
ALL_TARGET= ${PORTNAME}
|
|
|
|
CXXFLAGS+= -DTHREADMAIL \
|
|
-DMAILPATH=\"/var/mail\" \
|
|
-DMAILER=\"/usr/sbin/sendmail\ -t\"
|
|
LIBS+= ${ICONV_LIB} -lncurses -lmd
|
|
|
|
PLIST_FILES= bin/mmr
|
|
PORTDOCS= BUGS CHANGES Features README TODO
|
|
PORTEXAMPLES= dot.mmrc.sample
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|md5/libmd5.a||g' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mmr ${STAGEDIR}${PREFIX}/bin
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/DOT-mmrc \
|
|
${STAGEDIR}${EXAMPLESDIR}/dot.mmrc.sample
|
|
|
|
.include <bsd.port.mk>
|