1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/games/robocalypto/Makefile
Dmitry Marakasov 94817f0784 Add Public Domain support to ports license framework. You can now use
LICENSE=  PD

Note that although Public Domain is not technically a license, it's
handled in the same way as licenses here, which is a common practice
(Arch, Gentoo, Fedora, Debian, even FOSSology do the same).

Convert all ports which redefine Public Domain LICENSE to LICENSE=PD.

Approved by:	portmgr (bapt)
Differential Revision:	D4149
2016-01-12 14:33:21 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= robocalypto
PORTVERSION= 0.08
DISTVERSIONSUFFIX= -alpha4c
PORTREVISION= 1
CATEGORIES= games python
MASTER_SITES= GOOGLE_CODE \
SF/nemysisfreebsdp/games/:icons
PROJECTHOST= pyggel
DISTFILES= PYGGEL-V${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= python
EXTRACT_ONLY= PYGGEL-V${DISTVERSION}${DISTVERSIONSUFFIX}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= PYGGEL demo game
LICENSE= PD
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyggel>=0:${PORTSDIR}/graphics/py-pyggel
WRKSRC= ${WRKDIR}/PYGGEL-V${DISTVERSION}${DISTVERSIONSUFFIX}/Robocalypto
USES= python:run zip
NO_BUILD= yes
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Robocalypto" "" "${PORTNAME}" \
"${PORTNAME}" "Game;StrategyGame;" ""
post-patch:
.for f in run_game.py gamelib/main.py gamelib/game.py
@${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' \
${WRKSRC}/${f}
.endfor
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
${WRKDIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "data gamelib" ${STAGEDIR}${DATADIR})
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>