aboutsummaryrefslogtreecommitdiff
path: root/mail/sma
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-10-27 22:29:46 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-10-27 22:29:46 +0000
commit338eecf23761d8a27351a0657ead88ab54a8f9da (patch)
tree2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /mail/sma
parent2078f2a7ae31de5a4474e59c2d813276c225277f (diff)
downloadports-338eecf23761d8a27351a0657ead88ab54a8f9da.tar.gz
ports-338eecf23761d8a27351a0657ead88ab54a8f9da.zip
Notes
Diffstat (limited to 'mail/sma')
-rw-r--r--mail/sma/Makefile33
1 files changed, 16 insertions, 17 deletions
diff --git a/mail/sma/Makefile b/mail/sma/Makefile
index 7523e21d61d5..18007ad04998 100644
--- a/mail/sma/Makefile
+++ b/mail/sma/Makefile
@@ -10,32 +10,31 @@ MASTER_SITE_SUBDIR= dinoex
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Program that analyses Sendmail log entries
-NO_STAGE= yes
-
-MAN8= sma.8
-DOCSFILES= BUGS COPYRIGHT HISTORY README TODO
-SAMPLEFILES= sma.conf
+USES= manpages:install
ALL_TARGET= sma
+SAMPLEFILES= sma.conf
+DOCSFILES= BUGS COPYRIGHT HISTORY README TODO
+MAN8= sma.8
+
+.include <bsd.port.options.mk>
do-configure:
- @${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.sed
- ${SED} -e "s,CC =,CC?= ," \
+ ${REINPLACE_CMD} -e "s,CC =,CC?= ," \
-e "s,CFLAGS = -Wall -O,CFLAGS+= ," \
- ${WRKSRC}/Makefile.sed > ${WRKSRC}/Makefile
+ ${WRKSRC}/Makefile
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/sma ${PREFIX}/bin/sma
- ${INSTALL_MAN} ${WRKSRC}/sma.8 ${PREFIX}/man/man8/
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+do-install: install-all-manpages
+ ${INSTALL_PROGRAM} ${WRKSRC}/sma ${STAGEDIR}${PREFIX}/bin/sma
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCSFILES}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
-.if !defined(NOPORTEXAMPLES)
- ${MKDIR} ${EXAMPLESDIR}
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${SAMPLEFILES}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${EXAMPLESDIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/
.endfor
.endif