aboutsummaryrefslogtreecommitdiff
path: root/games/qstat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/qstat/Makefile')
-rw-r--r--games/qstat/Makefile20
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>