--- etw-3.6+svn140.orig/debian/changelog +++ etw-3.6+svn140/debian/changelog @@ -0,0 +1,153 @@ +etw (3.6+svn140-3) unstable; urgency=low + + * Team upload. + * Fix build problem on GNU/kFreeBSD + + -- Christoph Egger Sun, 15 May 2011 00:09:13 +0200 + +etw (3.6+svn140-2) unstable; urgency=low + + * 100_pthread_linking.diff: fix pthread linking (Closes: #554332). + * debian/control: add ${misc:Depends}. + + -- Sam Hocevar Tue, 10 May 2011 00:27:59 +0200 + +etw (3.6+svn140-1) unstable; urgency=low + + [ Barry deFreese ] + * Update my e-mail address. + * New upstream release. (Closes: #495162). + + Take from SVN since upstream doesn't provide a tarball. + * Update 200_datadir.diff for new source. + * Add copyright holder. + * Bump Standards Version to 3.8.1. (No changes needed). + + -- Barry deFreese Wed, 08 Apr 2009 20:50:38 -0400 + +etw (3.2+svn125-1) unstable; urgency=low + + [ Barry deFreese ] + * Add watch file + * Bump debhelper build-dep to match compat + * Add homepage field in control + * Add simple man page + * New upstream snapshot + + Update versioning to 3.2 to reflect upstream + * Reconfigure build system + * Add get-orig-source target in debian/rules + * Remove deprecated encoding field from desktop file + * Update 200_datadir.diff for new upstream + * Add myself to uploaders + * Remove XS- from VCS fields in control + + [ Alexander Schmehl ] + * Bumpting standards to 3.7.3 (no change needed) + + -- Barry deFreese Wed, 13 Feb 2008 10:56:07 +0100 + +etw (3.0.svn20071018-1) unstable; urgency=low + + [ Sam Hocevar ] + * New upstream snapshot. + * Game is still buggy, but has become pretty enjoyable and is therefore fit + for unstable. + + * debian/rules: + + Don’t ignore make clean errors. + * debian/control: + + Use ${source:Version} instead of ${Source-Version}. + + * debian/patches/200_datadir.diff: + + New patch. Set data directory to /usr/share/games/etw. + + [ Eddy Petrișor ] + * added a RO translation to the desktop file strings + * correct category name is "Game" not "Games" + + [ Gonéri Le Bouder ] + * remove the Applications category from the desktop file since + it's not an official category. Add SportsGame category. + http://standards.freedesktop.org/menu-spec/latest/apa.html + * call dh_desktop to run update-desktop-database + + [ Jon Dowland ] + * update menu section to "Games/Action" for menu transition + (thanks Linas Žvirblis) + + [ Cyril Brulebois ] + * Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file. + + -- Sam Hocevar (Debian packages) Thu, 18 Oct 2007 00:28:48 +0000 + +etw (3.0.cvs20050714-3) experimental; urgency=low + + * debian/control: + + Removed the etw/etw-data dependency loop. + + -- Sam Hocevar (Debian packages) Sat, 27 May 2006 09:22:58 +0200 + +etw (3.0.cvs20050714-2) experimental; urgency=low + + * Maintainer upload. + * Acknowledging previous NMU (Closes: #335719). Thanks to Steffen Joeris. + * Moved packaging to the Debian Games Team. + * Use quilt for patch management. + * debian/control: + + Set policy to 3.7.2. + + Build-depend on quilt. + * debian/copyright: + + Fixed the FSF address. + + -- Sam Hocevar (Debian packages) Wed, 17 May 2006 04:03:55 +0200 + +etw (3.0.cvs20050714-1.1) experimental; urgency=low + + * Non-maintainer upload + * Add build-dependency against sharutils to make sure uudecode + is available during build time (Closes: #335719) + + -- Steffen Joeris Sat, 29 Apr 2006 15:44:47 +0200 + +etw (3.0.cvs20050714-1) experimental; urgency=low + + * New CVS snapshot. + * debian/control: + + Set policy to 3.6.2.1. + + Build-depend on libgtk2.0-dev instead of libgtk1.2-dev (Closes: #272006, + Closes: #281550). + * include/mydebug.h os_init.c: + + Changed kprintf's prototype to use char * instead of unsigned char *. + + -- Sam Hocevar (Debian packages) Thu, 14 Jul 2005 01:08:27 +0300 + +etw (3.0.0beta2-1) experimental; urgency=low + + * New CVS snapshot. + * debian/control: + + No longer build-depend on unzip. + * Makefile: + + Switched to GTK+ 2.0 (no source changes required). + * debian/etw.xpm: + + Drew an icon for EtW. + + -- Sam Hocevar (Debian packages) Fri, 28 May 2004 11:02:33 -0300 + +etw (3.0.0beta-2) experimental; urgency=low + + * Fixed old timestamps in /usr/share/games/etw. + + -- Sam Hocevar (Debian packages) Tue, 18 Nov 2003 14:28:42 +0100 + +etw (3.0.0beta-1) experimental; urgency=low + + * First Debian upload (Closes: #215945). + * Experimental upload. Will crash at unexpected moments, but it starts to + be rather playable.. + * ChangeLog: created a CVS changelog using "cvs2cl --no-wrap -w --stdout". + * Various global changes: + + Use ~/.etw/ as the temporary directory. + + Invert J1 and J2 because we're not on an Amiga where J1's the mouse. + + Start by default in windowed mode. + + -- Sam Hocevar (Debian packages) Tue, 18 Nov 2003 10:25:12 +0100 + --- etw-3.6+svn140.orig/debian/etw-data.preinst +++ etw-3.6+svn140/debian/etw-data.preinst @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e + +DOCDIR="/usr/share/doc/etw-data" + +if [ -L "$DOCDIR" ]; then + rm -f "$DOCDIR" +fi + +#DEBHELPER# + --- etw-3.6+svn140.orig/debian/control +++ etw-3.6+svn140/debian/control @@ -0,0 +1,42 @@ +Source: etw +Section: games +Priority: optional +Maintainer: Debian Games Team +Uploaders: Sam Hocevar , Barry deFreese +Build-Depends: debhelper (>= 5.0), quilt, libgtk2.0-dev, libsdl1.2-dev, sharutils +Standards-Version: 3.9.1 +Homepage: http://www.ggsoft.org/etw/ +Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/etw/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/etw/?op=log + +Package: etw +Architecture: any +Depends: etw-data (>= ${source:Version}), ${shlibs:Depends}, ${misc:Depends} +Description: arcade-style soccer game + Eat The Whistle is an arcade soccer game similar to famous Amiga titles such + as Kick Off or Sensible Soccer. It features several game modes where you can + play either as the whole team or as a single player, and you can also manage + teams that take part in cups and leagues. There is even an arcade mode with + powerups and bonuses, like in the game SpeedBall 2. + . + Eat The Whistle features 30 different field types and numerous sound effects. + The game is viewed from the side and can be controlled with either a joystick + or the keyboard. + . + Most in-game settings are configurable, such as the pitch, weather and game + daytime, which will impact on the gameplay. There is a replay mode that lets + you load and save best moments, a game tactics editor, and teams from the + game Sensible World of Soccer can be directly imported. + +Package: etw-data +Architecture: all +Depends: ${misc:Depends} +Description: graphics and audio data for etw + Eat The Whistle is an arcade soccer game similar to famous Amiga titles such + as Kick Off or Sensible Soccer. It features several game modes where you can + play either as the whole team or as a single player, and you can also manage + teams that take part in cups and leagues. There is even an arcade mode with + powerups and bonuses, like in the game SpeedBall 2. + . + This package contains the architecture-independent data for etw. For more + information, see the etw package. --- etw-3.6+svn140.orig/debian/etw.postinst +++ etw-3.6+svn140/debian/etw.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +DOCDIR="/usr/share/doc/etw" + +if [ -d "$DOCDIR" -a ! -L "$DOCDIR" ]; then + rmdir --ignore-fail-on-non-empty "$DOCDIR" + if [ ! -d "$DOCDIR" ]; then + ln -s etw-data "$DOCDIR" + fi +fi + +#DEBHELPER# + --- etw-3.6+svn140.orig/debian/docs +++ etw-3.6+svn140/debian/docs @@ -0,0 +1 @@ +etw/bugs.txt --- etw-3.6+svn140.orig/debian/menu +++ etw-3.6+svn140/debian/menu @@ -0,0 +1,3 @@ +?package(etw):needs="X11" section="Games/Action" \ + title="Eat the Whistle" command="/usr/games/etw" \ + icon="/usr/share/games/etw/etw.xpm" --- etw-3.6+svn140.orig/debian/etw.install +++ etw-3.6+svn140/debian/etw.install @@ -0,0 +1,5 @@ +etw/etw usr/games/ +debian/etw.xpm usr/share/games/etw/ +debian/etw.xpm usr/share/pixmaps/ +debian/etw.desktop usr/share/applications/ + --- etw-3.6+svn140.orig/debian/etw.6 +++ etw-3.6+svn140/debian/etw.6 @@ -0,0 +1,41 @@ +.\" Hey, EMACS: -*- nroff -*- +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH ETW 6 "October 29, 2007" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +etw \- Eat The Whistle soccer game +.SH SYNOPSIS +.B etw +.I + +.SH DESCRIPTION +This manual page documents briefly the +.B etw +command. +This manual page was written for the Debian/Ubuntu distributions +because the original program does not include them. +Please see the in-game help menu instead. +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBetw\fP is an OpenSource soccer game originally developed by Hurricane +Studios. + +.SH AUTHOR +etw was written by Gabriele Greco . +.PP +This manual page was written by Barry deFreese . --- etw-3.6+svn140.orig/debian/etw.desktop +++ etw-3.6+svn140/debian/etw.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Type=Application +Name=Eat The Whistle +GenericName=Soccer Game +GenericName[fr]=Jeu de football +GenericName[ro]=Joc de fotbal +Comment=Arcade Soccer Game +Comment[ro]=Fotbal, joc de arcadă +Icon=etw +TryExec=etw +Exec=etw +Terminal=false +Categories=Game;SportsGame; --- etw-3.6+svn140.orig/debian/etw.xpm +++ etw-3.6+svn140/debian/etw.xpm @@ -0,0 +1,194 @@ +/* XPM */ +static char * etw_xpm[] = { +"32 32 159 2", +" c None", +". c #FFFFFF", +"+ c #F6F6F6", +"@ c #555555", +"# c #000000", +"$ c #319A00", +"% c #EFEEEF", +"& c #8E8E8E", +"* c #1C1C1C", +"= c #434243", +"- c #302F30", +"; c #868686", +"> c #9F9F9F", +", c #E3E3E3", +"' c #C7C6C7", +") c #AAAAAA", +"! c #EDECED", +"~ c #B5C9AB", +"{ c #2C9000", +"] c #176400", +"^ c #041300", +"/ c #C1D0BD", +"( c #1B6C00", +"_ c #2A8B00", +": c #145D00", +"< c #227B00", +"[ c #268300", +"} c #498239", +"| c #D1D0D1", +"1 c #2C7513", +"2 c #1F7400", +"3 c #2D9200", +"4 c #679D55", +"5 c #DAD9DA", +"6 c #5F5E5F", +"7 c #639555", +"8 c #A3D28E", +"9 c #C6C6C6", +"0 c #E4E3E4", +"a c #020202", +"b c #23421C", +"c c #105500", +"d c #B7D6AA", +"e c #A3A1A3", +"f c #131313", +"g c #8F8E8F", +"h c #051C00", +"i c #AFC6AA", +"j c #85B871", +"k c #56A730", +"l c #B3CEAA", +"m c #3A393A", +"n c #9CC38E", +"o c #B8C6B4", +"p c #76BC55", +"q c #727172", +"r c #C8C6C8", +"s c #0B2D00", +"t c #D6E1D0", +"u c #4C4C4C", +"v c #B6B3B6", +"w c #ADAAAD", +"x c #375530", +"y c #83957B", +"z c #DBD9DB", +"A c #63A943", +"B c #D0D0D0", +"C c #ABAAAB", +"D c #BFBDBF", +"E c #798E73", +"F c #B7BDB5", +"G c #B5B3B5", +"H c #565556", +"I c #ACAAAC", +"J c #708E69", +"K c #6DB24C", +"L c #125300", +"M c #020900", +"N c #696869", +"O c #8A9787", +"P c #C9D0C7", +"Q c #AAC5A1", +"R c #449E1C", +"S c #196300", +"T c #747B72", +"U c #9A979A", +"V c #485E43", +"W c #C0C6BE", +"X c #509239", +"Y c #195700", +"Z c #205513", +"` c #737173", +" . c #2E4C26", +".. c #215E13", +"+. c #3C7130", +"@. c #9DB398", +"#. c #256613", +"$. c #9CA19A", +"%. c #605E60", +"&. c #1E4C13", +"*. c #44713A", +"=. c #336826", +"-. c #367F1C", +";. c #CEE1C6", +">. c #5F8456", +",. c #878487", +"'. c #626860", +"). c #0E4C00", +"!. c #567B4D", +"~. c #678460", +"{. c #0C4200", +"]. c #0D3700", +"^. c #608E55", +"/. c #82977C", +"(. c #3A6830", +"_. c #647160", +":. c #757B73", +"<. c #4D4C4D", +"[. c #151C13", +"}. c #43683A", +"|. c #2F4A26", +"1. c #2E701C", +"2. c #A1BB98", +"3. c #8BA186", +"4. c #A5B3A2", +"5. c #4A6843", +"6. c #072600", +"7. c #192F13", +"8. c #2A3926", +"9. c #262626", +"0. c #092F00", +"a. c #52684D", +"b. c #1B6100", +"c. c #41961C", +"d. c #C4D7BD", +"e. c #93A190", +"f. c #3F553A", +"g. c #0E4000", +"h. c #7EA871", +"i. c #799772", +"j. c #2C4226", +"k. c #1A3913", +"l. c #0B3900", +"m. c #DFEADA", +"n. c #415E3A", +"o. c #657B60", +"p. c #A5AAA3", +"q. c #2F5526", +"r. c #4F554D", +"s. c #1E4013", +"t. c #124800", +"u. c #407930", +"v. c #3A7726", +"w. c #315E26", +"x. c #3D4C3A", +"y. c #145100", +"z. c #092400", +"A. c #0E3500", +"B. c #103F00", +" ", +" ", +" . + . @ # # # $ ", +" % + . . . . & * # # # # $ ", +" . . . . . . . . + = # # # - ; $ ", +" > , . . . . . . . . + - - ' . . . $ ", +" # # ) . . . . . . . . . ! . . . . . . $ ", +" # # # ) . . . . . . . . . + . . . . . . . $ ", +" # # # ) . . . . . . . . . . . . . . . . . ~ { ", +"] ] ^ # # # ) . . . . . . . . + . . . . . . . . / ] ( _ ( : < _ ", +"[ } # # # * + . . . . . . . . | , . . . . . . . . 1 2 ( : 2 ( 3 ", +"[ 4 @ # - , . . . . . . . 5 6 # = . . . . . . . . 7 ( ( 2 ( ] _ ", +"( 8 9 @ + . . . . 0 . 5 6 # a # # @ . . . . . . . b ( ( c : 2 _ ", +"2 d + . . . . . . + e f # # # # # # g . . . . . , h ] ( 2 ] 2 $ ", +"] i + . . . . . . . @ # # # # # # # # ) . . . . ) h : ] 2 : j k ", +"[ l . . . . . . . . @ # # # # # # # # m 0 ! . . & h : ] n o . p ", +"( 4 . . . . . . . . @ # # # # # # # # q r | + . @ s 4 t ! ! ! p ", +"] } . . . . . . . . @ # # # # # # # u v w w w r x y + + + ! z A ", +"c : * B . . . . . + C # # # # # # * D w w w w w E F + D 0 r 0 A ", +"] : h f , . . . . | v G H # # # - I w w w w w w J z z 0 0 z + K ", +"] 2 L M - ! ! z v w w w r I = N D w w w w w w O P 0 z + + z Q R ", +": c ( S f T w w w w w w w w w w w w w w w w U V W r | 0 Q X [ [ ", +"2 ( c ( Y Z w w w w w w w w w w w w w w w ` ...+.@.o 4 < 2 2 $ ", +"] 2 ( < ] c #.$.w w w w w w w w w w w w %.&...*.=.c ( ] ] 2 ( 3 ", +"( : < < c -.;.>.w w w w w w w w w w ,.'.).!...~.*.{.].[ ] c ( _ ", +"] : : ] c ^.| /.(._.w w w :.<.f ^ [.&...c =.*.E }.|.h L ] ] < _ ", +"( ( ( ] 1.2.3.4.~.5.6.7.8.h 9.0.a.=.*.E #.*.E !.~.&.].b.] [ : _ ", +"] 2 c.d.0 ! r e.3.E ~./.=.c ~.c ....=.*.*.Z f.a._.g.h g.< ] ( _ ", +"[ h.! 0 . 0 | i.J ~.E !.J ..!.~.!.!.!...!.j.O .k.6.0.l.( ( ] _ ", +"m.+ z ! ! . 0 F J E ~.~.~.!.!.*.=.$.}.!.0.n.o. .6.^ g.h S 2 2 $ ", +"! | 0 0 0 + 0 D $.3.J /.!.=.p.~.!.*.q.r.o.r.s.0.^ t.s t.[ ] ] $ ", +"z ! z | 0 | z | r W u.v.!.v.0.w.7.x.m f.{.0.6.s y.z.A.B.: ( 2 $ "}; --- etw-3.6+svn140.orig/debian/rules +++ etw-3.6+svn140/debian/rules @@ -0,0 +1,101 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + touch configure-stamp + +build: build-arch build-indep + +build-arch: build-arch-stamp +build-arch-stamp: configure-stamp + $(MAKE) -C etw + touch build-arch-stamp + +build-indep: build-indep-stamp +build-indep-stamp: configure-stamp + touch build-indep-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-arch-stamp build-indep-stamp configure-stamp + $(MAKE) -C etw clean + QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2 + dh_clean + +install: install-indep install-arch +install-indep: + dh_testdir + dh_testroot + dh_clean -k -i + dh_install -i + +install-arch: + dh_testdir + dh_testroot + dh_clean -k -a + dh_install -a + +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i ChangeLog + dh_installdocs -i + dh_strip -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installmenu -a + dh_installman -a debian/etw.6 + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +get-orig-source: + URL="https://etw.svn.sourceforge.net/svnroot/etw/trunk" + REV=$$(svn info $$URL | grep Revision: | cut -d\ -f2) && \ + DIR="etw-3.2+svn$$REV" && \ + svn export $$URL $$DIR && \ + find ./ -name .cvsignore |xargs rm -rf && \ + tar czf etw_3.2+svn$$REV.dfsg.orig.tar.gz $$DIR && \ + rm -rf $$DIR + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source --- etw-3.6+svn140.orig/debian/watch +++ etw-3.6+svn140/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/etw/etw-([\d.]+)-src\.tar\.gz --- etw-3.6+svn140.orig/debian/README.Debian +++ etw-3.6+svn140/debian/README.Debian @@ -0,0 +1,33 @@ +etw for Debian +-------------- + + The packaging should be rather clean, but there are still many bugs in +the game. Do not hesitate to report them directly to me. + + Useful excerpt from the old manual: + +Here is the default keymap for the BLUE player: + + [S] [Z] [X] [C] - JOY DIRECTIONS + [Space] - RED (button 1) + [B] - BLUE (button 2) + [N] - YELLOW + [M] - GREEN + [LShift] - FORWARD + TAB - REVERSE + + Here is the default keymap for the RED player: + + Cursor keys - JOY DIRECTIONS + [0] (n) - RED (button 1) + [Enter] (n) - BLUE (button 2) + [1] (n) - YELLOW + [2] (n) - GREEN + [RShift] - FORWARD + + (n) - REVERSE + + Note: (n) means numeric keypad. + + This manual is at http://etw.sourceforge.net/EatTheWhistle.txt + + -- Sam Hocevar , Wed, 15 Oct 2003 19:28:47 +0200 --- etw-3.6+svn140.orig/debian/etw-data.install +++ etw-3.6+svn140/debian/etw-data.install @@ -0,0 +1 @@ +data/* usr/share/games/etw --- etw-3.6+svn140.orig/debian/copyright +++ etw-3.6+svn140/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Sam Hocevar on +Wed, 15 Oct 2003 19:28:47 +0200. + +The data files were downloaded from http://etw.sourceforge.net/ and the +code was checked out from the etw CVS. + +Copyright: (C) 1997 Gabriele Greco + +Upstream Author: Gabriele Greco + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation; either version 2, or (at your option) any + later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. --- etw-3.6+svn140.orig/debian/compat +++ etw-3.6+svn140/debian/compat @@ -0,0 +1 @@ +5 --- etw-3.6+svn140.orig/debian/patches/000_upstream_changelog.diff +++ etw-3.6+svn140/debian/patches/000_upstream_changelog.diff @@ -0,0 +1,318 @@ +Index: etw-3.0.svn20071018/ChangeLog +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ etw-3.0.svn20071018/ChangeLog 2007-10-18 10:27:25.000000000 +0000 +@@ -0,0 +1,313 @@ ++#include "preinclude.h" ++ ++#if defined(WIN32) && !defined(WINCE) ++# include ++#endif ++#include "eat.h" ++#include "network.h" ++ ++#ifdef __SASC ++# include ++#endif ++ ++extern SDL_Surface *screen; ++ ++extern void FreeStuff(void); ++extern BOOL LoadStuff(void); ++ ++uint32_t(*MyReadPort0) (uint32_t); ++uint32_t(*MyReadPort1) (uint32_t); ++ ++uint32_t MyReadJoyPort(uint32_t); ++ ++#ifdef DEBUG_DISABLED ++# ifdef USE_LOGFILE ++# undef USE_LOGFILE ++# endif ++#endif ++ ++#ifdef USE_LOGFILE ++FILE *logfile = NULL; ++#endif ++ ++void init_system(void) ++{ ++ SetResult("error"); ++ ++ OpenTheScreen(); ++ ++ if (!screen) ++ return; ++ ++ if (!LoadStuff()) ++ return; ++ ++ if (training && !penalties && !free_kicks) { ++ int i; ++ team_t *s = p->team[1]; ++ ++ D(bug("*** TRAINING mode settings")); ++ s->Joystick = -1; ++ ++ for (i = 0; i < 10; i++) { ++ s->players[i].world_x = 12000; ++ s->players[i].world_y = 10; ++ ++ DoSpecialAnim((&(s->players[i])), GIOCATORE_ESPULSO); ++ s->players[i].Comando = STAI_FERMO; ++ } ++ } else if (!penalties && !free_kicks) { ++ p->show_panel = PANEL_TIME | PANEL_KICKOFF; ++ p->show_time = 50; ++ } ++ // questo e' indipendente dalle squadre, dipende solo da chi gioca... ++ ++ ++ D(if (network_game) bug("Network play, net player: %d\n", network_player->num)); ++ ++ if (network_game && player_type[network_player->num] == 1) { ++ MyReadPort0 = ReadNetworkPort; ++ D(bug("Assign MyReadPort0: NET\n")); ++ } ++ else if (use_key0) { ++ MyReadPort0 = ReadKeyPort; ++ D(bug("Assign MyReadPort0: KEYBOARD\n")); ++ } ++ else { ++ MyReadPort0 = MyReadJoyPort; ++ D(bug("Assign MyReadPort0: JOYSTICK\n")); ++ } ++ ++ if (network_game && player_type[network_player->num] == 0) { ++ MyReadPort1 = ReadNetworkPort; ++ D(bug("Assign MyReadPort1: NET\n")); ++ } ++ else if (use_key1) { ++ MyReadPort1 = ReadKeyPort; ++ D(bug("Assign MyReadPort1: KEYBOARD\n")); ++ } ++ else { ++ MyReadPort1 = MyReadJoyPort; ++ D(bug("Assign MyReadPort1: JOYSTICK\n")); ++ } ++ ++ MainLoop(); ++ ++ // Abbasso la priorita' in modo che le D(bug()) vengano piazzate nel punto giusto! ++ ++ SetCrowd(FONDO); ++ ++ os_delay(20); ++ ++ situation_result[0] = p->team[0]->Reti; ++ situation_result[1] = p->team[0]->Reti; ++ ++ D(bug("Start: FreeStuff...\n")); ++ FreeStuff(); ++ ++ D(bug("End: FreeStuff()...\n")); ++} ++ ++void os_audio2fast(void) ++{ ++ audio2fast = FALSE; ++ ++ D(bug("Handling audio2fast!\n")); ++ ++ if (use_speaker && !speaker2memory()) ++ return; ++ ++ if (use_crowd && !crowd2memory()) { ++ free_speaker(); ++ return; ++ } ++ ++ audio2fast = TRUE; ++} ++ ++// Ritarda di s 50esimi di secondo ++ ++void os_delay(int s) ++{ ++ SDL_Delay(s * 20); ++} ++ ++int os_avail_mem(void) ++{ ++ // Ritorno sempre memoria abbondante. ++ ++ return (int) 10000000; ++} ++ ++ ++#if !defined(DEBUG_DISABLED) && !defined(MORPHOS) && !defined(AMIGA) ++ ++#include ++ ++void kprintf(char *fmt, ...) ++{ ++ va_list ap; ++ ++#ifndef USE_LOGFILE ++# ifdef WIN32 ++ char temp[400]; ++ va_start(ap, fmt); ++ vsprintf(temp, fmt, ap); ++ OutputDebugString(temp); ++ va_end(ap); ++# else ++ va_start(ap, fmt); ++ vprintf(fmt, ap); ++ va_end(ap); ++# endif ++#else ++ ++ if (logfile) { ++ va_start(ap, fmt); ++ vfprintf(logfile, fmt, ap); ++ va_end(ap); ++ fflush(logfile); ++ } ++#endif /* USE_LOGFILE */ ++} ++ ++#endif/* NOT DEBUG_DISABLED && NOT AMIGA && NOT MORPHOS */ ++ ++#if defined(__PPC__) && !defined(__SASC) ++ ++int strnicmp(const char *a, const char *b, size_t l) ++{ ++ while(l && *a && *b && tolower(*a) == tolower(*b)) ++ { ++ a++; b++; l--; ++ } ++ ++ if(l) ++ return (int)tolower(*a) - (int)tolower(*b); ++ ++ return 0; ++} ++#endif ++ ++// Gestione dei timer ++ ++unsigned long MY_CLOCKS_PER_SEC = 0, MY_CLOCKS_PER_SEC_50; ++ ++#ifndef STANDARD_CLOCK ++ ++unsigned long os_get_timer(void) ++{ ++ return SDL_GetTicks(); ++} ++ ++ ++void os_wait_timer(uint32_t clk) ++{ ++ while (SDL_GetTicks() < clk); ++} ++ ++void os_init_timer(void) ++{ ++ MY_CLOCKS_PER_SEC = 1000; ++ MY_CLOCKS_PER_SEC_50 = 1000 / framerate; ++} ++ ++ ++void os_free_timer(void) ++{ ++} ++#else ++unsigned long os_get_timer(void) ++{ ++ return clock(); ++} ++ ++ ++void os_wait_timer(uint32_t clk) ++{ ++ while (clock() < clk); ++} ++ ++void os_init_timer(void) ++{ ++ MY_CLOCKS_PER_SEC = CLOCKS_PER_SEC; ++ MY_CLOCKS_PER_SEC_50 = CLOCKS_PER_SEC / framerate; ++} ++ ++void os_free_timer(void) ++{ ++} ++#endif ++ ++#if defined(LINUX) || defined(SOLARIS_X86) ++#if defined(LINUX) && !defined(SOLARIS_X86) ++# include ++#else ++# include ++#endif ++#undef fopen ++ ++FILE *os_open(char *name, char *mode) ++{ ++ char buf[1024]; ++ char dir[120], *fn; ++ struct dirent *e; ++ FILE *f; ++ DIR *d; ++ ++ if(name[0] == '+' && name[1] != '/' && name[1] != '.') ++ { ++ snprintf(buf, 1024, "+/usr/share/games/etw/%s", name + 1); ++ name = buf; ++ } ++ else if(name[0] != '/' && name[0] != '.') ++ { ++ snprintf(buf, 1024, "/usr/share/games/etw/%s", name); ++ name = buf; ++ } ++ ++ if (*mode == 'w') ++ return fopen(name, mode); ++ ++ f = fopen(name, mode); ++ if (f) ++ return f; ++ ++ fn = strrchr(name, '/'); ++ ++ if (!fn) ++ fn = name; ++ else { ++ strcpy(dir, name); ++ fn++; ++ } ++ ++ dir[fn - name] = 0; ++ ++ if (!*dir) ++ strcpy(dir, "./"); ++ ++ D(bug ++ ("open on %s failed, trying case insensitive... (%s in %s)\n", ++ name, fn, dir)); ++ ++ d = opendir(dir); ++ if (!d) ++ return NULL; ++ ++ while ((e = readdir(d))) { ++ if (!stricmp(fn, e->d_name)) { ++ strcat(dir, e->d_name); ++ ++ D(bug(" FOUND, opening: %s\n", dir)); ++ closedir(d); ++ ++ return fopen(dir, mode); ++ } ++ } ++ closedir(d); ++ ++ return NULL; ++} ++ ++#endif --- etw-3.6+svn140.orig/debian/patches/100_pthread_linking.diff +++ etw-3.6+svn140/debian/patches/100_pthread_linking.diff @@ -0,0 +1,10 @@ +Index: etw-3.6+svn140/etw/Makefile.linux +=================================================================== +--- etw-3.6+svn140.orig/etw/Makefile.linux 2011-05-10 00:27:18.381362802 +0200 ++++ etw-3.6+svn140/etw/Makefile.linux 2011-05-10 00:27:23.721389279 +0200 +@@ -1,4 +1,4 @@ +-CC = gcc ++CC = gcc -pthread + + CFLAGS = -Wall -Wno-char-subscripts -g -fsigned-char -Iinclude \ + `pkg-config --cflags sdl` `pkg-config --cflags gtk+-2.0` --- etw-3.6+svn140.orig/debian/patches/200_datadir.diff +++ etw-3.6+svn140/debian/patches/200_datadir.diff @@ -0,0 +1,13 @@ +Index: etw-3.6+svn140/etw/include/os_defs.h +=================================================================== +--- etw-3.6+svn140.orig/etw/include/os_defs.h 2008-05-30 17:08:23.000000000 -0400 ++++ etw-3.6+svn140/etw/include/os_defs.h 2008-05-30 17:08:47.000000000 -0400 +@@ -32,7 +32,7 @@ + extern char *RESULT_FILE; + + # define EXEC_DIR "" +-# define GAME_DIR "" ++# define GAME_DIR "/usr/share/games/etw/" + + #ifndef AMIGA + # define TCT_DIR "tct/" --- etw-3.6+svn140.orig/debian/patches/series +++ etw-3.6+svn140/debian/patches/series @@ -0,0 +1,4 @@ +000_upstream_changelog.diff +100_pthread_linking.diff +200_datadir.diff +300_kfreebsd.diff --- etw-3.6+svn140.orig/debian/patches/300_kfreebsd.diff +++ etw-3.6+svn140/debian/patches/300_kfreebsd.diff @@ -0,0 +1,58 @@ +--- etw-3.6+svn140.orig/etw/Makefile ++++ etw-3.6+svn140/etw/Makefile +@@ -4,7 +4,7 @@ + + all: + @case $(SYSTEM) in \ +- "Linux") \ ++ "Linux"|*kFreeBSD*) \ + $(MAKE) -f Makefile.linux $@ \ + ;; \ + "Darwin") \ +--- etw-3.6+svn140.orig/etw/etw.c ++++ etw-3.6+svn140/etw/etw.c +@@ -5,7 +5,7 @@ + #include "highdirent.h" + #include "sound.h" + +-#if defined(LINUX) || defined(SOLARIS_X86) ++#if defined(__GLIBC__) || defined(SOLARIS_X86) + #include + #include + +@@ -392,7 +392,7 @@ + int errno; + #endif + +-#ifdef linux ++#ifdef __GLIBC__ + #include "prefix.h" + #endif + +@@ -404,7 +404,7 @@ + + /* LINUX programs aren't relocatable, except with this trick + */ +-#if defined(linux) ++#if defined(__GLIBC__) + DIR *l; + + if ((l = opendir("newgfx"))) { +@@ -450,7 +450,7 @@ + + InitStrings(); + +-#if defined(LINUX) || defined(SOLARIS_X86) ++#if defined(__GLIBC__) || defined(SOLARIS_X86) + gtk_init(&argc, &argv); + #endif + +@@ -465,7 +465,7 @@ + } + } + +-#if defined(LINUX) || defined(SOLARIS_X86) ++#if defined(__GLIBC__) || defined(SOLARIS_X86) + /* Find data and temporary directories */ + { + struct passwd *pwd;