freebsd-ports/games/brainworkshop/Makefile
Dmitry Marakasov b3eaf193ab games/brainworkshop: update 5.0.git20191222 → 5.0.2
- Switch to latest pyglet
2022-03-16 23:33:11 +03:00

45 lines
1 KiB
Makefile

PORTNAME= brainworkshop
DISTVERSIONPREFIX= v
DISTVERSION= 5.0.2
CATEGORIES= games python
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Dual N-Back mental exercise
LICENSE= GPLv1+ # version not specified
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyglet/__init__.py:graphics/py-pyglet@${PY_FLAVOR}
USE_GITHUB= yes
GH_ACCOUNT= brain-workshop
USES= shebangfix python:run
SHEBANG_FILES= brainworkshop.py
NO_BUILD= yes
NO_ARCH= yes
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
PORTDOCS= *
DESKTOP_ENTRIES="Brain Workshop" \
"" \
"${DATADIR}/res/misc/brain/brain.png" \
"brainworkshop" \
"Game;LogicGame;" \
false
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/brainworkshop.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/brainworkshop.py ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@cd ${WRKSRC} && ${COPYTREE_SHARE} "res data" ${STAGEDIR}${DATADIR}/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Readme* ${WRKSRC}/data/Readme* ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>