diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-10-20 16:24:04 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2013-10-20 16:24:04 +0000 |
commit | e0d2e1b9ecce10af1e8f84fc4da58ef03da855ec (patch) | |
tree | 361d971a6d23534f5c945f780ff6620b64c9c69d /games/qstat/Makefile | |
parent | 0cabc679a94ac3684d7b5f3143d4a484d7f2827c (diff) | |
download | ports-e0d2e1b9ecce10af1e8f84fc4da58ef03da855ec.tar.gz ports-e0d2e1b9ecce10af1e8f84fc4da58ef03da855ec.zip |
Notes
Diffstat (limited to 'games/qstat/Makefile')
-rw-r--r-- | games/qstat/Makefile | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/games/qstat/Makefile b/games/qstat/Makefile index 0b0c90e20a16..4e008e0e152b 100644 --- a/games/qstat/Makefile +++ b/games/qstat/Makefile @@ -15,26 +15,18 @@ CONFLICTS_INSTALL= torque-[0-9]* OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include <bsd.port.options.mk> - post-extract: @${MV} ${WRKSRC}/qstat.cfg ${WRKSRC}/qstat.cfg.default post-patch: - @${REINPLACE_CMD} -e 's|\(qstat\.cfg\)|\1\.default|' \ - ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e 's|OpenBSD|FreeBSD|' ${WRKSRC}/qstat.c + @${REINPLACE_CMD} -e 's|qstat\.cfg|&.default|' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|OpenBSD|${OPSYS}|' ${WRKSRC}/qstat.c post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR}/info ${DOCSDIR}/template - ${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR}/info ${STAGEDIR}${DOCSDIR}/template + ${INSTALL_DATA} ${WRKSRC}/qstatdoc.html ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/template/*.html ${WRKSRC}/template/*.txt \ - ${DOCSDIR}/template - ${INSTALL_DATA} ${WRKSRC}/info/*.txt ${DOCSDIR}/info -.endif - @[ -f ${PREFIX}/etc/qstat.cfg ] || \ - ${CP} ${PREFIX}/etc/qstat.cfg.default ${PREFIX}/etc/qstat.cfg + ${STAGEDIR}${DOCSDIR}/template + ${INSTALL_DATA} ${WRKSRC}/info/*.txt ${STAGEDIR}${DOCSDIR}/info .include <bsd.port.mk> |