aboutsummaryrefslogtreecommitdiffstats
path: root/mail/sma
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
committerdinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
commita9ff4b49c10701f4d22eb1a173e03064089672bb (patch)
tree2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /mail/sma
parentaa3da1c84cdb0e5dfb190c16f74ea3d9def166a7 (diff)
downloadfreebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.gz
freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.zst
freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.zip
- use STAGEDIR
- use OPTIONS_DEFINE
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