1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- Support staging

This commit is contained in:
Dmitry Marakasov 2014-05-14 03:17:03 +00:00
parent ca537f38bd
commit 003dcf829e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354018
2 changed files with 7 additions and 21 deletions

View File

@ -18,30 +18,14 @@ WRKSRC= ${WRKDIR}
DATADIR= ${PREFIX}/share/smc
NO_BUILD= yes
PORTDOCS= Addon_-_Music_Readme.txt
NO_STAGE= yes
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
# The pointyhat build system doesn't like spaces in $PORTDOCS,
# so this makes it happier
${MV} ${WRKSRC}/docs/Addon\ -\ Music\ Readme.txt \
${WRKSRC}/docs/Addon_-_Music_Readme.txt
do-install:
cd ${WRKSRC}/data && \
${FIND} music | ${CPIO} -pdmvu ${DATADIR}
post-install:
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
.endfor
.endif
cd ${WRKSRC}/data && ${COPYTREE_SHARE} music ${STAGEDIR}${DATADIR}
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/Addon\ -\ Music\ Readme.txt \
${STAGEDIR}${DOCSDIR}/Addon_-_Music_Readme.txt
.include <bsd.port.mk>

View File

@ -48,3 +48,5 @@
@dirrm %%DATADIR%%/music/overworld
@dirrm %%DATADIR%%/music/land
@dirrm %%DATADIR%%/music/game
@dirrmtry %%DATADIR%%/music
@dirrmtry %%DATADIR%%