freebsd-ports/games/krank/Makefile
Dmitry Marakasov 73bb391909 - Simplify MASTER_SITES
- Add NO_ARCH
- Switch to options helpers
- Silince post-patch
2016-05-18 13:19:27 +00:00

48 lines
1.1 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= krank
PORTVERSION= 07
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Little casual game
RUN_DEPENDS= ${PYGAME} \
${PYNUMPY}
USES= python:run tar:bzip2
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= CHANGELOG.txt README
DESKTOP_ENTRIES="Krank" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
OPTIONS_DEFINE= DOCS
post-extract:
@${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}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
.for d in art fonts html levels sounds src
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.iss ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/logo.xcf ${STAGEDIR}${DATADIR}
${LN} -sf ${DATADIR}/html/gfx/logo.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>