aboutsummaryrefslogtreecommitdiff
path: root/games/brainworkshop/Makefile
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2008-10-31 12:37:08 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2008-10-31 12:37:08 +0000
commitbdad8b88ec4583cc8b9366cffa9ecc6879329259 (patch)
tree9497c06b26a08867c7373569725af1f2bf29551b /games/brainworkshop/Makefile
parent3aca875aca523f2f22a01a46ba13713aa4eefe33 (diff)
downloadports-bdad8b88ec4583cc8b9366cffa9ecc6879329259.tar.gz
ports-bdad8b88ec4583cc8b9366cffa9ecc6879329259.zip
Notes
Diffstat (limited to 'games/brainworkshop/Makefile')
-rw-r--r--games/brainworkshop/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/games/brainworkshop/Makefile b/games/brainworkshop/Makefile
new file mode 100644
index 000000000000..0cc6d5c398fa
--- /dev/null
+++ b/games/brainworkshop/Makefile
@@ -0,0 +1,37 @@
+# New ports collection makefile for: brainworkshop
+# Date created: 27 Oct 2008
+# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= brainworkshop
+PORTVERSION= 4.1
+CATEGORIES= games
+MASTER_SITES= SF
+
+MAINTAINER= amdmi3@FreeBSD.org
+COMMENT= Free open-source version of the Dual N-Back mental exercise
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pyglet/__init__.py:${PORTSDIR}/graphics/py-pyglet
+
+USE_ZIP= yes
+NO_BUILD= yes
+USE_DOS2UNIX= brainworkshop.pyw
+
+USE_PYTHON= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+post-patch:
+ @${REINPLACE_CMD} -e '/^FOLDER_RES = / s|res|${DATADIR}|' \
+ ${WRKSRC}/brainworkshop.pyw
+ @${REINPLACE_CMD} -e '/^FOLDER_DATA = / s|.data.|os.environ["HOME"]+"/.brainworkshop"|' \
+ ${WRKSRC}/brainworkshop.pyw
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/brainworkshop.pyw ${PREFIX}/bin/${PORTNAME}
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/res/* ${DATADIR}/
+
+.include <bsd.port.mk>