- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2015-09-20 19:23:36 +00:00
parent 6179e5ed58
commit e65591bfdc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=397389

View file

@ -26,18 +26,14 @@ CONFLICTS_INSTALL= qstat-[0-9]* zh-qterm-[0-9]*
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
pre-configure:
@${REINPLACE_CMD} -E 's|ps[ \t]+-ef|ps -ax|g' ${WRKSRC}/torque.setup
@${REINPLACE_CMD} -E 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/torque-config ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MEXAMPLES}
post-install-EXAMPLES-on:
${INSTALL_SCRIPT} ${WRKSRC}/torque.setup ${STAGEDIR}${EXAMPLESDIR}
.else
${RM} -rf ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>