mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Change Makefile header
- Change maintainer email to @FreeBSD.org - Support STAGEDIR - Simplify post-extract Approved by: pawel / wg (mentors, implicit)
This commit is contained in:
parent
6b84fcbfb8
commit
29e2507612
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=333052
@ -1,3 +1,4 @@
|
||||
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= krank
|
||||
@ -6,7 +7,7 @@ PORTREVISION= 4
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
|
||||
|
||||
MAINTAINER= nemysis@gmx.ch
|
||||
MAINTAINER= nemysis@FreeBSD.org
|
||||
COMMENT= Little casual game
|
||||
|
||||
LICENSE= GPLv2
|
||||
@ -23,30 +24,24 @@ PORTDOCS= CHANGELOG.txt README
|
||||
DESKTOP_ENTRIES="Krank" "${COMMENT}" "${PORTNAME}" \
|
||||
"${PORTNAME}" "Game;ArcadeGame;" false
|
||||
|
||||
NO_STAGE= yes
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-extract:
|
||||
@${FIND} ${WRKSRC} -name .cvsignore -type f -print0 -or -name .DS_Store -type f -print0 | \
|
||||
${XARGS} -0 ${RM} -rf
|
||||
@${FIND} ${WRKSRC} -name .cvsignore -delete -or -name .DS_Store -delete
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e 's|`dirname.*|${DATADIR}|' ${WRKSRC}/${PORTNAME}
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/krank ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/krank ${STAGEDIR}${PREFIX}/bin/
|
||||
|
||||
${MKDIR} ${DATADIR}
|
||||
.for d in art fonts html levels sounds src
|
||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
|
||||
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
|
||||
.endfor
|
||||
${INSTALL_DATA} ${WRKSRC}/krank.iss ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/logo.xcf ${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
|
||||
${INSTALL_DATA} ${WRKSRC}/krank.iss ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/logo.xcf ${STAGEDIR}${DATADIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/html/gfx/logo.png \
|
||||
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
|
||||
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||
.endif
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user