summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-12-08 18:57:40 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-12-08 18:57:40 +0000
commite8ca1d40300ec507fccd0d7dd7f4e8d50b2562d2 (patch)
tree61023fc9e8002dac4514fce65e1b3bab058409a7
parentremove GCC version check to support GCC versions 4.7 and up (diff)
SchwarzWeiss is german and means "black/white".
This game was created 2010 during a 48-hour-game-creating contest at Viennas Metalab computer lab. The theme was "black and white" (or was it "grid"?) and only public available resources were allowed. Lucky for me, that included ThePythonGameBook. In effect I worked around 3 hours in the evening and around 4 hours in the next morning. After that I lost interest and presented the game to the other participants in the Metalab to make use of the weekend for non-computer related activities. While I'm proud to report that I was the first participant to present a "playable" game (way before the deadline) I'm less proud to report the results of test-playing against the other coders. It turned out that while my game is playable, it is simply boring and not much fun. Also I got beaten in my own game by people who never played the game before. WWW: http://thepythongamebook.com/en:resources:games:schwarzweiss PR: ports/171236 Submitted by: nemysis (self) Approved by: pawel (mentor)
Notes
Notes: svn path=/head/; revision=335920
-rw-r--r--games/Makefile1
-rw-r--r--games/schwarzweiss/Makefile60
-rw-r--r--games/schwarzweiss/distinfo4
-rw-r--r--games/schwarzweiss/files/schwarzweiss.in7
-rw-r--r--games/schwarzweiss/pkg-descr15
-rw-r--r--games/schwarzweiss/pkg-plist33
6 files changed, 120 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index 5f9d6aad158a..42936d953b82 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -842,6 +842,7 @@
SUBDIR += sarien
SUBDIR += sauerbraten
SUBDIR += scare
+ SUBDIR += schwarzweiss
SUBDIR += scid
SUBDIR += scorched3d
SUBDIR += scourge
diff --git a/games/schwarzweiss/Makefile b/games/schwarzweiss/Makefile
new file mode 100644
index 000000000000..13234395e1c1
--- /dev/null
+++ b/games/schwarzweiss/Makefile
@@ -0,0 +1,60 @@
+# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= schwarzweiss
+PORTVERSION= 20110806
+CATEGORIES= games python
+MASTER_SITES= SF/nemysisfreebsdp/games/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+DIST_SUBDIR= python
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
+COMMENT= Tank game for 2 players
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= ${PYGAME}
+
+USE_GITHUB= yes
+GH_ACCOUNT= horstjens
+GH_PROJECT= schwarzweiss
+GH_TAGNAME= ${GH_COMMIT}
+GH_COMMIT= d95263f
+
+USE_PYTHON= 2.7
+
+PORTDOCS= readme.txt
+
+OPTIONS_DEFINE= DOCS
+
+INSTALLS_ICONS= yes
+
+SUB_FILES= ${PORTNAME}
+
+DESKTOP_ENTRIES="SchwarzWeiss" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
+
+do-build:
+ @${PYTHON_CMD} -m compileall ${WRKSRC}
+ @${PYTHON_CMD} -O -m compileall ${WRKSRC}
+
+do-install:
+ @${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' \
+ ${WRKDIR}/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR})
+
+.for d in *.py *.pyc *.pyo
+ @(cd ${WRKSRC} ; ${INSTALL_SCRIPT} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/games/schwarzweiss/distinfo b/games/schwarzweiss/distinfo
new file mode 100644
index 000000000000..d940af889cff
--- /dev/null
+++ b/games/schwarzweiss/distinfo
@@ -0,0 +1,4 @@
+SHA256 (python/schwarzweiss-20110806.tar.gz) = 7c37ef23d07c1e8b162accafcf921ba5d6c144d1042835f53c1a686da08b78c5
+SIZE (python/schwarzweiss-20110806.tar.gz) = 285380
+SHA256 (python/schwarzweiss.png) = 6d0bd5b654aad3b84c7ec72e443bce6dc1e860aee116e2b640c5a9b90926339a
+SIZE (python/schwarzweiss.png) = 3710
diff --git a/games/schwarzweiss/files/schwarzweiss.in b/games/schwarzweiss/files/schwarzweiss.in
new file mode 100644
index 000000000000..92b8a00cbdc0
--- /dev/null
+++ b/games/schwarzweiss/files/schwarzweiss.in
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec %%PYTHON_CMD%% ./schwarzweiss_start.py "${@}"
diff --git a/games/schwarzweiss/pkg-descr b/games/schwarzweiss/pkg-descr
new file mode 100644
index 000000000000..8871549b389b
--- /dev/null
+++ b/games/schwarzweiss/pkg-descr
@@ -0,0 +1,15 @@
+SchwarzWeiss is german and means "black/white".
+This game was created 2010 during a 48-hour-game-creating contest at Viennas
+Metalab computer lab. The theme was "black and white" (or was it "grid"?)
+and only public available resources were allowed.
+Lucky for me, that included ThePythonGameBook. In effect I worked around 3 hours
+in the evening and around 4 hours in the next morning.
+After that I lost interest and presented the game to the other participants
+in the Metalab to make use of the weekend for non-computer related activities.
+While I'm proud to report that I was the first participant to present a
+"playable" game (way before the deadline) I'm less proud to report the results
+of test-playing against the other coders. It turned out that while my game is
+playable, it is simply boring and not much fun.
+Also I got beaten in my own game by people who never played the game before.
+
+WWW: http://thepythongamebook.com/en:resources:games:schwarzweiss
diff --git a/games/schwarzweiss/pkg-plist b/games/schwarzweiss/pkg-plist
new file mode 100644
index 000000000000..efd313b6434c
--- /dev/null
+++ b/games/schwarzweiss/pkg-plist
@@ -0,0 +1,33 @@
+bin/schwarzweiss
+share/pixmaps/schwarzweiss.png
+%%DATADIR%%/data/__init__.py
+%%DATADIR%%/data/__init__.pyc
+%%DATADIR%%/data/__init__.pyo
+%%DATADIR%%/data/blip1.ogg
+%%DATADIR%%/data/blip2.ogg
+%%DATADIR%%/data/convert1.ogg
+%%DATADIR%%/data/convert2.ogg
+%%DATADIR%%/data/explo3.ogg
+%%DATADIR%%/data/explo4.ogg
+%%DATADIR%%/data/explo5.ogg
+%%DATADIR%%/data/ezmenu.py
+%%DATADIR%%/data/ezmenu.pyc
+%%DATADIR%%/data/ezmenu.pyo
+%%DATADIR%%/data/flattr_schwarzweiss.png
+%%DATADIR%%/data/gameover.ogg
+%%DATADIR%%/data/hit2.ogg
+%%DATADIR%%/data/menupic.png
+%%DATADIR%%/data/mg1.ogg
+%%DATADIR%%/data/schuss1.ogg
+%%DATADIR%%/data/schuss2.ogg
+%%DATADIR%%/data/schuss3.ogg
+%%DATADIR%%/data/schwarzweiss-flattr.pdf
+%%DATADIR%%/data/schwarzweiss.py
+%%DATADIR%%/data/schwarzweiss.pyc
+%%DATADIR%%/data/schwarzweiss.pyo
+%%DATADIR%%/data/vampir1.ogg
+%%DATADIR%%/schwarzweiss_start.py
+%%DATADIR%%/schwarzweiss_start.pyc
+%%DATADIR%%/schwarzweiss_start.pyo
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%