aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-28 15:16:42 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-28 15:16:42 +0800
commitaaa1fbdf0e048810261a27035c19f641a2a23573 (patch)
tree13ae775e903b00182ef7d91ae3ffaf9666659d5f /misc
parent5c2b8ed235bacc862ab683fab68d6fd45bf1f0ca (diff)
downloadfreebsd-ports-gnome-aaa1fbdf0e048810261a27035c19f641a2a23573.tar.gz
freebsd-ports-gnome-aaa1fbdf0e048810261a27035c19f641a2a23573.tar.zst
freebsd-ports-gnome-aaa1fbdf0e048810261a27035c19f641a2a23573.zip
Support staging
Diffstat (limited to 'misc')
-rw-r--r--misc/mtail/Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/misc/mtail/Makefile b/misc/mtail/Makefile
index 393c799d6239..46b544b76ae4 100644
--- a/misc/mtail/Makefile
+++ b/misc/mtail/Makefile
@@ -16,24 +16,17 @@ PLIST_FILES= bin/${PORTNAME}
PORTDOCS= CHANGES LICENSE README
PORTEXAMPLES= mtailrc
-NO_STAGE= yes
-
OPTIONS_DEFINE= DOCS EXAMPLES
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e '1s|/.*|${PYTHON_CMD}|' ${WRKSRC}/${PORTNAME}
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
-.if ${PORT_OPTIONS:MDOCS}
- @${INSTALL} -d ${DOCSDIR}/
- @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
-.endif
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${INSTALL} -d ${EXAMPLESDIR}/
- @${INSTALL_DATA} ${WRKSRC}/mtailrc.sample ${EXAMPLESDIR}/mtailrc
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} $ ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/mtailrc.sample \
+ ${STAGEDIR}${EXAMPLESDIR}/mtailrc
.include <bsd.port.mk>