0ab36cf8d9
- Preserve pyglet 1.x as graphics/py-pyglet1 - Add mutual conflicts between graphics/py-pyglet1 and graphics/py-pyglet - Switch all consumers to graphics/py-pyglet1 as it's likely that no consumer is compatible with pyglet 2.x yet
47 lines
1.1 KiB
Makefile
47 lines
1.1 KiB
Makefile
PORTNAME= brainworkshop
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 5.0.2
|
|
PORTREVISION= 1
|
|
CATEGORIES= games python
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Dual N-Back mental exercise
|
|
WWW= https://github.com/samcv/brainworkshop
|
|
|
|
LICENSE= GPLv1+ # version not specified
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyglet1>=0:graphics/py-pyglet1@${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>
|