mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- adopt optionsNG for DOCS
- use INSTALL_DATA over CP PR: 170740 Submitted by: maintainer, nemysis@gmx.ch
This commit is contained in:
parent
2658e99d2e
commit
32f3307a3f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303267
@ -31,6 +31,8 @@ PORTDOCS= CREDITS DOC NEW_FEATURES README STRATEGY
|
|||||||
|
|
||||||
ALL_TARGET=
|
ALL_TARGET=
|
||||||
|
|
||||||
|
.include <bsd.port.options.mk>
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e 's|data:/usr/local/games/scavenger|data:${DATADIR}/data|' \
|
@${REINPLACE_CMD} -e 's|data:/usr/local/games/scavenger|data:${DATADIR}/data|' \
|
||||||
${WRKSRC}/names.h
|
${WRKSRC}/names.h
|
||||||
@ -39,15 +41,15 @@ do-install:
|
|||||||
# Executable
|
# Executable
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${PREFIX}/bin/sdlscavenger
|
${INSTALL_PROGRAM} ${WRKSRC}/sdlscav ${PREFIX}/bin/sdlscavenger
|
||||||
|
|
||||||
# Pixmaps
|
|
||||||
${CP} ${WRKSRC}/data/scav.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
||||||
|
|
||||||
# Data
|
# Data
|
||||||
${MKDIR} ${DATADIR}
|
${MKDIR} ${DATADIR}
|
||||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
|
||||||
|
|
||||||
# Documentations
|
# Pixmaps
|
||||||
.if !defined(NOPORTDOCS)
|
${INSTALL_DATA} ${WRKSRC}/data/scav.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
|
||||||
|
|
||||||
|
# Documentation
|
||||||
|
.if ${PORT_OPTIONS:MDOCS}
|
||||||
${MKDIR} ${DOCSDIR}
|
${MKDIR} ${DOCSDIR}
|
||||||
.for f in ${PORTDOCS}
|
.for f in ${PORTDOCS}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user