1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Stage support

PR:		ports/186323
Submitted by:	maintainer
This commit is contained in:
Pawel Pekala 2014-02-02 16:27:35 +00:00
parent dcbd60b39b
commit f5a989d8ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342331

View File

@ -20,15 +20,13 @@ PORTEXAMPLES= example1.png example1.tex example2.png example2.tex \
example3.png example3.tex example4.png example4.tex \
fig_1.eps
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e "s,^#!/bin/bash,#!${LOCALBASE}/bin/bash,g" ${WRKSRC}/tex2im
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/tex2im ${PREFIX}/bin
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
.endif
${INSTALL_SCRIPT} ${WRKSRC}/tex2im ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>