1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

- Add stage support

- Add DOCS option
This commit is contained in:
Danilo Egea Gondolfo 2013-11-02 03:35:24 +00:00
parent 9dea9d2665
commit d33d5cb53e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332447

View File

@ -16,18 +16,17 @@ MAKE_ENV= GRAPHICPATH="${GRAPHICPATH}" LEVELPATH="${LEVELPATH}"
GRAPHICPATH= ${PREFIX}/share/hex/graphics
LEVELPATH= ${PREFIX}/share/hex/levels
NO_STAGE= yes
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hex ${PREFIX}/bin
@${MKDIR} ${GRAPHICPATH}
${INSTALL_DATA} ${WRKSRC}/graphics/*.png ${GRAPHICPATH}
@${MKDIR} ${LEVELPATH}
${INSTALL_DATA} ${WRKSRC}/levels/Level1 ${LEVELPATH}
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/hex
${INSTALL_PROGRAM} ${WRKSRC}/hex ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${GRAPHICPATH}
${INSTALL_DATA} ${WRKSRC}/graphics/*.png ${STAGEDIR}${GRAPHICPATH}
@${MKDIR} ${STAGEDIR}${LEVELPATH}
${INSTALL_DATA} ${WRKSRC}/levels/Level1 ${STAGEDIR}${LEVELPATH}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in HISTORY README TODO
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/hex
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>