aboutsummaryrefslogtreecommitdiff
path: root/games/vitetris
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2008-09-23 08:05:46 +0000
committerMartin Wilke <miwi@FreeBSD.org>2008-09-23 08:05:46 +0000
commit23b363a6f8ece854acd3d23916563051fe160a2a (patch)
tree19e849bf28ff88a361eb19d172ff4c01e0b8f26a /games/vitetris
parentc3acfba1ed835e098f426009b3d100f807fc9ba4 (diff)
downloadports-23b363a6f8ece854acd3d23916563051fe160a2a.tar.gz
ports-23b363a6f8ece854acd3d23916563051fe160a2a.zip
Notes
Diffstat (limited to 'games/vitetris')
-rw-r--r--games/vitetris/Makefile29
-rw-r--r--games/vitetris/distinfo3
-rw-r--r--games/vitetris/files/patch-Makefile59
-rw-r--r--games/vitetris/pkg-descr9
4 files changed, 100 insertions, 0 deletions
diff --git a/games/vitetris/Makefile b/games/vitetris/Makefile
new file mode 100644
index 000000000000..e4250d3ec8cd
--- /dev/null
+++ b/games/vitetris/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: vitetris
+# Date created: 2008-09-22
+# Whom: Martin Wilke <miwi@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= vitetris
+PORTVERSION= 0.51
+CATEGORIES= games
+MASTER_SITES= http://victornils.net/tetris/
+
+MAINTAINER= miwi@FreeBSD.org
+COMMENT= Terminal-based tetris clone in vein of nintendo tetris
+
+HAS_CONFIGURE= yes
+ALL_TARGET= #
+CONFIGURE_ARGS= curses="-lncurses" \
+ xlib=no
+
+PLIST_FILES= bin/vitetris \
+ share/allegro/licence.txt
+PLIST_DIRS= share/allegro
+
+post-patch:
+ @${REINPLACE_CMD} -e 's,docdir,datadir,g' \
+ ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/games/vitetris/distinfo b/games/vitetris/distinfo
new file mode 100644
index 000000000000..6128e0a4f239
--- /dev/null
+++ b/games/vitetris/distinfo
@@ -0,0 +1,3 @@
+MD5 (vitetris-0.51.tar.gz) = 7674b536021139c100600ddb992fe2dc
+SHA256 (vitetris-0.51.tar.gz) = d339774210ab7a41c0c0bdd64c5b8fa0ac4f796a1a2248874f6eddb350e696f2
+SIZE (vitetris-0.51.tar.gz) = 93522
diff --git a/games/vitetris/files/patch-Makefile b/games/vitetris/files/patch-Makefile
new file mode 100644
index 000000000000..559d883e96b6
--- /dev/null
+++ b/games/vitetris/files/patch-Makefile
@@ -0,0 +1,59 @@
+--- Makefile.orig Sat Sep 13 11:45:37 2008
++++ Makefile Mon Sep 22 09:31:15 2008
+@@ -1,11 +1,11 @@
+ include config.mk
+
+-PROGNAME = tetris$(EXE)
++PROGNAME = vitetris$(EXE)
+
+ # Uncomment to change the default. (Only used in Unix-like systems.)
+-#HISCORE_FILENAME = /var/games/vitetris-hiscores
++HISCORE_FILENAME = /var/games/vitetris-hiscores
+
+-INSTALL = install -oroot -groot
++INSTALL = install -oroot -gwheel
+
+ default: build
+ @echo Done.
+@@ -15,13 +15,13 @@ $(PROGNAME):
+ $(MAKE) build
+
+ build: src/src-conf.mk
+- $(MAKE) -Csrc tetris
++ cd src; $(MAKE) tetris
+ mv -f src/tetris$(EXE) $(PROGNAME)
+ @echo stripping symbols to reduce program size:
+ -strip --strip-all $(PROGNAME)
+
+ gameserver: src/netw/gameserver.c
+- $(MAKE) -Csrc/netw gameserver
++ cd src/netw; $(MAKE) gameserver
+ mv -f src/netw/gameserver .
+
+ src/src-conf.mk: config.mk Makefile src-conf.sh
+@@ -54,12 +54,12 @@ src/src-conf.mk: config.mk Makefile src-conf.sh
+ ./src-conf.sh obj pctimer $(PCTIMER)
+
+ install: $(PROGNAME)
+- $(INSTALL) -d $(bindir) $(docdir)
+- $(INSTALL) -m755 $(PROGNAME) $(bindir)
+- $(INSTALL) -m644 README licence.txt $(docdir)
++ $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(docdir)
++ $(INSTALL) -m755 $(PROGNAME) $(DESTDIR)$(bindir)
++ $(INSTALL) -m644 licence.txt $(DESTDIR)$(docdir)
+ if [ -n "$(ALLEGRO)" ]; then \
+- $(INSTALL) -d $(datadir); \
+- $(INSTALL) -m644 pc8x16.fnt $(datadir); \
++ $(INSTALL) -d $(DESTDIR)$(datadir); \
++ $(INSTALL) -m644 pc8x16.fnt $(DESTDIR)$(datadir); \
+ fi
+ @echo Done.
+ @echo You may also wish to create the system-wide highscore file
+@@ -84,6 +84,6 @@ uninstall:
+ -rmdir $(datadir)
+ clean:
+ rm -f systest systest.exe
+- $(MAKE) -Csrc clean
++ cd src; $(MAKE) clean
+
+ .PHONY: default build install install-hiscores uninstall clean
diff --git a/games/vitetris/pkg-descr b/games/vitetris/pkg-descr
new file mode 100644
index 000000000000..32781939601b
--- /dev/null
+++ b/games/vitetris/pkg-descr
@@ -0,0 +1,9 @@
+vitetris is a terminal-based Tetris clone by Victor Nilsson. Gameplay is
+much like the early Tetris games by Nintendo. Features include:
+
+ -Configurable keys
+ -Highscore table
+ -Two-player mode with garbage
+ -Network play
+
+WWW: http://victornils.net/tetris/