import of tornado-1.3:
Tornado is a clone of Ouranos (Weather War). The goal of the game is to destroy the opponent's house with certain weather phenomenons: rain, snow, hail, lightning, and tornadoes. The game can be played together (two players), against the computer (or two computer players against each other) or over a TCP connection. WWW: http://home.kcore.de/~kiza/linux/tornado/
This commit is contained in:
parent
6ba60fa6db
commit
2a87095093
30
games/tornado/Makefile
Normal file
30
games/tornado/Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
|
||||
COMMENT= "Ouranos (Weather War) clone; multiplayer"
|
||||
DISTNAME= tornado-1.3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${HOMEPAGE}download/
|
||||
|
||||
HOMEPAGE= http://home.kcore.de/~kiza/linux/tornado/
|
||||
|
||||
MAINTAINER= Jolan Luff <jolan@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
USE_GMAKE= Yes
|
||||
|
||||
MODULES= gettext
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tornado
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tornado
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tornado
|
||||
${INSTALL_DATA} ${WRKSRC}/tornado.scores \
|
||||
${PREFIX}/share/examples/tornado
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/tornado/distinfo
Normal file
3
games/tornado/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (tornado-1.3.tar.gz) = 149adcac75cb052c361d175bfc6d9f0f
|
||||
RMD160 (tornado-1.3.tar.gz) = 4368ebf80fe4eb3bf541b2bdb0de23aafaa46a5c
|
||||
SHA1 (tornado-1.3.tar.gz) = c7c1e2c684ffb2f560ffbf3611852d21617679d8
|
40
games/tornado/patches/patch-Makefile
Normal file
40
games/tornado/patches/patch-Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
--- Makefile.orig 2003-11-20 07:26:22.000000000 -0600
|
||||
+++ Makefile 2003-11-26 21:00:05.000000000 -0600
|
||||
@@ -1,10 +1,10 @@
|
||||
-CC = gcc
|
||||
-MAKE = make
|
||||
-LDFLAGS = -lncurses
|
||||
+#CC = gcc
|
||||
+#MAKE = make
|
||||
+LDFLAGS = -L${LOCALBASE}/lib -lncurses -lintl -liconv
|
||||
OBJFILES = main.o draw.o erwin.o network.o scores.o
|
||||
-PREFIX = /usr/local
|
||||
-LOCALEPATH = /usr/local/share/locale
|
||||
-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
|
||||
+#PREFIX = /usr/local
|
||||
+LOCALEPATH = ${PREFIX}/share/locale
|
||||
+CFLAGS+= -Wall -I${LOCALBASE}/include -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
|
||||
VERSION = `grep " VERSION" version.h | sed s/\"//g | sed s/\#define\ VERSION\ //`
|
||||
LOCALES = de
|
||||
MAN = doc/man
|
||||
@@ -50,19 +50,6 @@ install: tornado tornado.6 install-local
|
||||
|
||||
$(MAKE) -C $(MAN) install-man
|
||||
|
||||
- if [ -f "/var/games/tornado.scores" ]; then \
|
||||
- echo "Skipping install of the highscores file. File exists."; \
|
||||
- cat /var/games/tornado.scores | ./convert-highscorefile > score.tmp; \
|
||||
- mv -f score.tmp /var/games/tornado.scores; \
|
||||
- chmod a+rw-x "/var/games/tornado.scores"; \
|
||||
- else \
|
||||
- if [ ! -d "/var/games" ]; then \
|
||||
- mkdir /var/games; \
|
||||
- fi; \
|
||||
- install tornado.scores /var/games; \
|
||||
- chmod a+w-x "/var/games/tornado.scores"; \
|
||||
- fi
|
||||
-
|
||||
install-locale-data:
|
||||
$(MAKE) -C po install-locale-data
|
||||
|
18
games/tornado/patches/patch-Makefile_inc
Normal file
18
games/tornado/patches/patch-Makefile_inc
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-Makefile_inc,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
--- Makefile.inc.orig 2003-11-20 04:55:50.000000000 -0600
|
||||
+++ Makefile.inc 2003-11-20 20:35:42.000000000 -0600
|
||||
@@ -1,9 +1,9 @@
|
||||
-CC = gcc
|
||||
-MAKE = make
|
||||
+#CC = gcc
|
||||
+#MAKE = make
|
||||
LDFLAGS = -lncurses
|
||||
OBJFILES = main.o draw.o erwin.o network.o scores.o
|
||||
-PREFIX = /usr/local
|
||||
-LOCALEPATH = /usr/local/share/locale
|
||||
-CFLAGS = -Wall -O2 -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
|
||||
+#PREFIX = /usr/local
|
||||
+LOCALEPATH = ${PREFIX}/share/locale
|
||||
+CFLAGS+= -Wall -DPREFIX="\"$(PREFIX)\"" -DLOCALEPATH="\"$(LOCALEPATH)\""
|
||||
LOCALES = de
|
||||
MAN = doc/man
|
15
games/tornado/patches/patch-doc_man_tornado_6_in
Normal file
15
games/tornado/patches/patch-doc_man_tornado_6_in
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-doc_man_tornado_6_in,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
--- doc/man/tornado.6.in.orig 2003-11-20 05:00:47.000000000 -0600
|
||||
+++ doc/man/tornado.6.in 2003-11-26 22:24:05.000000000 -0600
|
||||
@@ -92,9 +92,9 @@ PREFIX/man/man6/tornado.6
|
||||
.P
|
||||
/var/games/tornado.scores
|
||||
.P
|
||||
-/usr/local/share/locale/de/LC_MESSAGES/tornado.mo
|
||||
+PREFIX/share/locale/de/LC_MESSAGES/tornado.mo
|
||||
.P
|
||||
-/usr/local/share/locale/fr/LC_MESSAGES/tornado.mo
|
||||
+PREFIX/share/locale/fr/LC_MESSAGES/tornado.mo
|
||||
.SH NOTES
|
||||
When you run the game in network mode you should have the same game versions
|
||||
on client and server side. Versions prior 1.0pre4 won't work at all due to
|
22
games/tornado/pkg/DEINSTALL
Normal file
22
games/tornado/pkg/DEINSTALL
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
SCORE_FILE=/var/games/tornado.scores
|
||||
|
||||
if [ -f $SCORE_FILE ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -f $SCORE_FILE"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
5
games/tornado/pkg/DESCR
Normal file
5
games/tornado/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Tornado is a clone of Ouranos (Weather War). The goal of the game is to
|
||||
destroy the opponent's house with certain weather phenomenons: rain,
|
||||
snow, hail, lightning, and tornadoes. The game can be played together
|
||||
(two players), against the computer (or two computer players against
|
||||
each other) or over a TCP connection.
|
34
games/tornado/pkg/INSTALL
Normal file
34
games/tornado/pkg/INSTALL
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
EXAMPLE_SCORE=$PREFIX/share/examples/tornado/tornado.scores
|
||||
SCORE_FILE=/var/games/tornado.scores
|
||||
|
||||
do_install()
|
||||
{
|
||||
install -o root -g games -m 660 $EXAMPLE_SCORE $SCORE_FILE
|
||||
}
|
||||
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ ! -f $SCORE_FILE ]; then
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
54
games/tornado/pkg/PLIST
Normal file
54
games/tornado/pkg/PLIST
Normal file
@ -0,0 +1,54 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/11/27 06:07:37 jolan Exp $
|
||||
@group games
|
||||
@mode 2555
|
||||
bin/tornado
|
||||
@mode
|
||||
@group
|
||||
man/de/man6/tornado.6
|
||||
man/fr/man6/tornado.6
|
||||
man/it/man6/tornado.6
|
||||
man/man6/tornado.6
|
||||
man/nl/man6/tornado.6
|
||||
man/no/man6/tornado.6
|
||||
man/ru/man6/tornado.6
|
||||
share/doc/tornado/README
|
||||
share/examples/tornado/tornado.scores
|
||||
share/locale/de/LC_MESSAGES/tornado.mo
|
||||
share/locale/es/LC_MESSAGES/tornado.mo
|
||||
share/locale/fr/LC_MESSAGES/tornado.mo
|
||||
share/locale/it/LC_MESSAGES/tornado.mo
|
||||
share/locale/nl/LC_MESSAGES/tornado.mo
|
||||
share/locale/no/LC_MESSAGES/tornado.mo
|
||||
share/locale/pt/LC_MESSAGES/tornado.mo
|
||||
share/locale/ru/LC_MESSAGES/tornado.mo
|
||||
@comment @dirrm share/locale/ru/LC_MESSAGES
|
||||
@comment @dirrm share/locale/ru
|
||||
@comment @dirrm share/locale/pt/LC_MESSAGES
|
||||
@comment @dirrm share/locale/pt
|
||||
@comment @dirrm share/locale/no/LC_MESSAGES
|
||||
@comment @dirrm share/locale/no
|
||||
@comment @dirrm share/locale/nl/LC_MESSAGES
|
||||
@comment @dirrm share/locale/nl
|
||||
@comment @dirrm share/locale/it/LC_MESSAGES
|
||||
@comment @dirrm share/locale/it
|
||||
@comment @dirrm share/locale/fr/LC_MESSAGES
|
||||
@comment @dirrm share/locale/fr
|
||||
@comment @dirrm share/locale/es/LC_MESSAGES
|
||||
@comment @dirrm share/locale/es
|
||||
@comment @dirrm share/locale/de/LC_MESSAGES
|
||||
@comment @dirrm share/locale/de
|
||||
@comment @dirrm share/locale
|
||||
@dirrm share/examples/tornado
|
||||
@dirrm share/doc/tornado
|
||||
@dirrm man/ru/man6
|
||||
@dirrm man/ru
|
||||
@dirrm man/no/man6
|
||||
@dirrm man/no
|
||||
@dirrm man/nl/man6
|
||||
@dirrm man/nl
|
||||
@dirrm man/it/man6
|
||||
@dirrm man/it
|
||||
@dirrm man/fr/man6
|
||||
@dirrm man/fr
|
||||
@dirrm man/de/man6
|
||||
@dirrm man/de
|
Loading…
Reference in New Issue
Block a user