aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mmr/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/mail/mmr/Makefile b/mail/mmr/Makefile
index 50daa850450f..e4662ab67d5c 100644
--- a/mail/mmr/Makefile
+++ b/mail/mmr/Makefile
@@ -11,7 +11,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Curses based MIME Mail Reader
LICENSE= GPLv2
-LICENSE_FILE= ${WRKSRC}/COPYING
USES= iconv
MAKE_ARGS= LIBS='${LDFLAGS}' CXX='${CXX}' CXXFLAGS='${CXXFLAGS}'
@@ -27,21 +26,19 @@ CXXFLAGS+= -DTHREADMAIL \
-I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lcurses -lmd
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
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}
+ ${INSTALL_PROGRAM} ${WRKSRC}/mmr ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
-.if !defined(NOPORTEXAMPLES)
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/DOT-mmrc ${EXAMPLESDIR}/dot.mmrc.sample
-.endif
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/DOT-mmrc \
+ ${STAGEDIR}${EXAMPLESDIR}/dot.mmrc.sample
.include <bsd.port.mk>