1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- adopt optionsNG for DOCS

- use INSTALL_DATA over CP

PR:	170740
Submitted by:	maintainer, nemysis@gmx.ch
This commit is contained in:
Jason Helfman 2012-08-28 01:06:56 +00:00
parent 2658e99d2e
commit 32f3307a3f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303267

View File

@ -31,6 +31,8 @@ PORTDOCS= CREDITS DOC NEW_FEATURES README STRATEGY
ALL_TARGET=
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|data:/usr/local/games/scavenger|data:${DATADIR}/data|' \
${WRKSRC}/names.h
@ -39,15 +41,15 @@ do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${PREFIX}/bin/sdlscavenger
# Pixmaps
${CP} ${WRKSRC}/data/scav.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
# Data
${MKDIR} ${DATADIR}
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
# Documentations
.if !defined(NOPORTDOCS)
# Pixmaps
${INSTALL_DATA} ${WRKSRC}/data/scav.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
# Documentation
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}