debian/0000755000000000000000000000000012133020524007156 5ustar debian/etw.60000644000000000000000000000310012132773663010060 0ustar .\" 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 "November 08, 2012" .\" 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 .SH SYNOPSIS .B etw .I .SH DESCRIPTION \fBEat The Whistle\fP 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. debian/docs0000644000000000000000000000002412115007674010040 0ustar etw/bugs.txt README debian/changelog0000644000000000000000000001657012133020344011041 0ustar etw (3.6+svn162-2) unstable; urgency=low * [aa1f3de] Make etw compile on GNU/Hurd. - Update Build-on-kFreeBSD.patch to Build-on-kFreeBSD-and-Hurd.patch. - Add do-not-use-PATH_MAX.patch. * [27022f8] debian/control: Use canonical Vcs-URI. * [ebd8934] Update copyright years. * [801b26c] etw.desktop: Add keywords. -- Markus Koschany Mon, 15 Apr 2013 16:44:58 +0200 etw (3.6+svn162-1) unstable; urgency=low * New upstream SVN snapshot. - Mostly code cleanup, small bug fixes and renaming of italian variables. * Switch to package format 3.0 (quilt). * debian/patches: - Drop changelog patch. A changelog was never installed. - Refresh all other patches, drop patch numbers and prepare Makefile.linux for hardening. - Add Fix-conflicting-types-for-drawtext-declaration.patch which fixes a FTBFS. * debian/control: - Drop superfluous quilt dependency. - Drop sharutils dependency. In version 3.6 we don't need it anymore to fix bug #335719. - New Standards-Version: 3.9.4. * Bump compat level to 9 and change requirement for debhelper to >= 9. * Update README.Debian and point to upstream's EatTheWhistle.txt which has been renamed to README. It contains additional and more useful information. * Update debian/copyright to copyright format 1.0. * Update etw's manpage. * Remove postinst and preinst script. Keep it simple and less error-prone. * Add etw.png icon and install etw.xpm only to /usr/share/pixmaps. * Update desktop and menu file and add German comments. * debian/rules: - Simplify debian/rules by using dh sequencer. - Update get-orig-source target. - Build with dh --parallel. - Fix FTBFS with binutils-gold and add -lm to LDFLAGS. (Closes: #693949) * Build with Wl, --as-needed to avoid unnecessary dependencies. * Partially build with hardening build flags. Unfortunately enabling all hardening features makes the game unusable. * Update watch file. -- Markus Koschany Mon, 05 Jan 2013 10:27:47 +0100 etw (3.6+svn140-4) unstable; urgency=low * New Maintainer. (Closes: #544922) * Eat the Whistle will be maintained in a Git repository from now on. Change the Vcs-fields in debian/control accordingly. * debian/patches: Add 0005-change-configuration-path.patch. Load configuration in $HOME/.etw/ instead of /usr/share/games/etw and stop failing silently. (Closes: #693244) * Update README.Debian. -- Markus Koschany Sun, 16 Nov 2012 19:41:55 +0100 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 debian/manpages0000644000000000000000000000001512115007674010703 0ustar debian/etw.6 debian/etw-data.install0000644000000000000000000000004012132773676012274 0ustar data/* usr/share/games/etw debian/rules0000755000000000000000000000221712132774636010263 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 export DH_OPTIONS export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -lm %: dh $@ --parallel override_dh_auto_configure: $(MAKE) -C etw override_dh_installdocs: cp ./web/EatTheWhistle.txt README dh_installdocs # Adapted from http://wiki.debian.org/SandroTosi/Svn_get-orig-source PACKAGE = etw SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(\([0-9]\+\):\)\?\(.*\)-.*/\3/p') SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' ) TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz get-orig-source: rm -rf get-orig-source $(TARBALL) mkdir get-orig-source svn export -r $(SVN_REVISION) \ "https://etw.svn.sourceforge.net/svnroot/etw/trunk" \ get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig find get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig \ -name ".cvsignore" -exec rm {} \; GZIP='--best --no-name' \ tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig rm -rf get-orig-source echo " "$(TARBALL)" created; move it to the right destination to build the package" .PHONY: get-orig-source debian/watch0000644000000000000000000000013012115007674010214 0ustar version=3 http://sf.net/etw/ETW-(.+)-src\.(?:zip|tgz|tbz2|txz|tar\.gz|tar\.bz2|tar\.xz) debian/etw.xpm0000644000000000000000000001124312115007674010517 0ustar /* 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 $ "}; debian/menu0000644000000000000000000000031212115007674010054 0ustar ?package(etw):needs="X11" \ section="Games/Action" \ title="Eat the Whistle" \ longtitle="Eat the Whistle - arcade-style soccer game" \ icon="/usr/share/pixmaps/etw.xpm" \ command="/usr/games/etw" debian/etw.desktop0000644000000000000000000000064112132774112011361 0ustar [Desktop Entry] Type=Application Name=Eat The Whistle GenericName=Soccer Game GenericName[de]=Fußballspiel GenericName[fr]=Jeu de football GenericName[ro]=Joc de fotbal Comment=arcade-style soccer game Comment[de]=Fußballspiel im Arkade-Stil Comment[ro]=Fotbal, joc de arcadă Icon=etw TryExec=etw Exec=etw Terminal=false Categories=Game;SportsGame; Keywords=game;football;soccer;sport;oldschool;arcade;simulation; debian/compat0000644000000000000000000000000212115007674010367 0ustar 9 debian/control0000644000000000000000000000367712132773452010614 0ustar Source: etw Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Markus Koschany Build-Depends: debhelper (>= 9), libgtk2.0-dev, libsdl1.2-dev Standards-Version: 3.9.4 Homepage: http://www.ggsoft.org/etw/ Vcs-Git: git://anonscm.debian.org/pkg-games/etw.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/etw.git Package: etw Architecture: any Depends: etw-data (>= ${source:Version}), ${misc:Depends}, ${shlibs: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} Suggests: etw 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. debian/etw.install0000644000000000000000000000025012132773735011364 0ustar debian/etw.desktop usr/share/applications/ debian/etw.xpm usr/share/pixmaps/ etw/etw usr/games/ etw/etw.png usr/share/pixmaps debian/copyright0000644000000000000000000000331312132773622011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Eat the Whistle Upstream-Contact: Gabriele Greco Source: http://www.ggsoft.org/etw/ Files: * Copyright: 1997-2011 Gabriele Greco License: GPL-2+ Files: debian/* Copyright: 2003-2007,2011, Sam Hocevar 2006, Steffen Joeris 2007, Eddy Petrișor 2007, Gonéri Le Bouder 2007, Cyril Brulebois 2007, Jon Dowland 2008-2009, Barry deFreese 2008, Alexander Schmehl 2011, Christoph Egger 2012-2013, Markus Koschany License: GPL-2+ License: GPL-2+ 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 of the License, 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the complete text of the GNU General Public License version 2 can be found in `/usr/share/common-licenses/GPL-2'. debian/etw.lintian-overrides0000644000000000000000000000027612115007674013355 0ustar # It is possible to build etw with fortify functions but this makes the game # unusable. Therefore this hardening feature must be disabled. etw: hardening-no-fortify-functions usr/games/etw debian/source/0000755000000000000000000000000012132773114010467 5ustar debian/source/format0000644000000000000000000000001412115007674011677 0ustar 3.0 (quilt) debian/README.Debian0000644000000000000000000000205012115007674011227 0ustar etw for Debian -------------- Since version 3.6+svn140-4 your configuration is saved permanently in $HOME/.etw/. Although Eat The Whistle has been developed since 1997 it is, like other software, not free of bugs. Most notably the game crashes if you try to view a replay which was recorded while playing in arcade mode or if you hit SPACE during a replay again. As long as there is no better solution, saving and loading of replays is disabled. There are other well known bugs. Please refer for more information to "bugs.txt" which is also located in /usr/share/doc/etw. Thus said the game itself is enjoyable and is made in the spirit of good old retro football gaming. Nevertheless if you discover new bugs or if you think that they are related specifically to Debian, don't hesitate to report them with the reportbug tool. The official README contains more information about controlling the players and other game functions. Don't be confused by some remarks and always keep in mind that Eat The Whistle was originally developed for the AMIGA platform! debian/patches/0000755000000000000000000000000012133020524010605 5ustar debian/patches/Fix-conflicting-types-for-drawtext-declaration.patch0000644000000000000000000000172612133020524022730 0ustar From: Markus Koschany Date: Thu, 8 Nov 2012 17:50:07 +0100 Subject: Fix conflicting types for drawtext declaration The variable drawtext uses different types of declaration. Change it to const char *. --- etw/include/menu_externs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etw/include/menu_externs.h b/etw/include/menu_externs.h index b99374b..cc563ac 100644 --- a/etw/include/menu_externs.h +++ b/etw/include/menu_externs.h @@ -154,7 +154,7 @@ void bltanimobj(struct MChunky *, uint8_t *, int, int, int); void rectfill_pattern(uint8_t * b, int x1, int y1, int x2, int y2, unsigned char color, int width); void rectfill(uint8_t * b, int x1, int y1, int x2, int y2, unsigned char color, int width); void bitmapScale(struct MyScaleArgs *); -int drawtext(char *, int, int, int, int); +int drawtext(const char *, int, int, int, int); void setfont(struct myfont *); struct myfont *openfont(char *); void closefont(struct myfont *); debian/patches/Change-datadir.patch0000644000000000000000000000107212133020524014421 0ustar From: Markus Koschany Date: Thu, 8 Nov 2012 16:52:02 +0100 Subject: Change datadir --- etw/include/os_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etw/include/os_defs.h b/etw/include/os_defs.h index ab10c65..918855a 100644 --- a/etw/include/os_defs.h +++ b/etw/include/os_defs.h @@ -44,7 +44,7 @@ extern char *CONFIG_FILE; extern char *RESULT_FILE; # define EXEC_DIR "" -# define GAME_DIR "" +# define GAME_DIR "/usr/share/games/etw/" #ifndef AMIGA # define TCT_DIR "tct/" debian/patches/series0000644000000000000000000000030112133020524012014 0ustar Modify-Makefile.linux.patch Change-datadir.patch Build-on-kFreeBSD-and-Hurd.patch Fix-conflicting-types-for-drawtext-declaration.patch change-configuration-path.patch do-not-use-PATH_MAX.patch debian/patches/Build-on-kFreeBSD-and-Hurd.patch0000644000000000000000000000343112133020524016323 0ustar From: Christoph Egger Date: Thu, 8 Nov 2012 16:56:41 +0100 Subject: Build on kFreeBSD and Hurd We need to make the Makefile aware of kFreeBSD and Hurd. --- etw/Makefile | 2 +- etw/etw.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/etw/Makefile b/etw/Makefile index 235e8cb..777a194 100644 --- a/etw/Makefile +++ b/etw/Makefile @@ -4,7 +4,7 @@ SYSTEM=`uname -s 2>/dev/null` all: @case $(SYSTEM) in \ - "Linux") \ + "Linux"|*kFreeBSD*|*GNU*) \ $(MAKE) -f Makefile.linux $@ \ ;; \ "Darwin") \ diff --git a/etw/etw.c b/etw/etw.c index 0aaeb40..2e28f6c 100644 --- a/etw/etw.c +++ b/etw/etw.c @@ -10,7 +10,7 @@ #include #include -#elif defined(LINUX) || defined(SOLARIS_X86) +#elif defined(__GLIBC__) || defined(SOLARIS_X86) #include #include @@ -359,7 +359,7 @@ BOOL LoadMenuStuff(void) int errno; #endif -#ifdef linux +#ifdef __GLIBC__ #include "prefix.h" #endif @@ -371,7 +371,7 @@ int main(int argc, char *argv[]) /* LINUX programs aren't relocatable, except with this trick */ -#if defined(linux) +#if defined(__GLIBC__) DIR *l; if ((l = opendir("newgfx"))) { @@ -417,7 +417,7 @@ int main(int argc, char *argv[]) InitStrings(); -#if defined(LINUX) || defined(SOLARIS_X86) +#if defined(__GLIBC__) || defined(SOLARIS_X86) gtk_init(&argc, &argv); #endif @@ -437,7 +437,7 @@ int main(int argc, char *argv[]) HIGH_FILE = "../Documents/high"; CONFIG_FILE = "../Documents/thismatch"; RESULT_FILE = "../Documents/result"; -#elif defined(LINUX) || defined(SOLARIS_X86) +#elif defined(__GLIBC__) || defined(SOLARIS_X86) /* Find data and temporary directories */ { struct passwd *pwd; debian/patches/change-configuration-path.patch0000644000000000000000000000150312133020524016651 0ustar From: Markus Koschany Date: Thu, 22 Nov 2012 18:37:41 +0100 Subject: change-configuration-path Per default the configuration is loaded from /usr/share/games/etw instead of $HOME/.etw/. This patch fixes the issue. --- etw/menu_config.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/etw/menu_config.c b/etw/menu_config.c index 9f1ef30..163b8c2 100644 --- a/etw/menu_config.c +++ b/etw/menu_config.c @@ -372,9 +372,16 @@ void load_config(FILE *f) void read_menu_config(void) { FILE *f; + char path[1024]; + snprintf(path, 1024, "%setw.cfg", TEMP_DIR); + D(bug("Reading configuration...\n"/*-*/)); - f=fopen("etw.cfg"/*-*/,"r"); + f=fopen(path/*-*/,"r"); + + if (f == NULL) { + f=fopen("etw.cfg"/*-*/,"r"); + } newpitches=CheckNewPitches(); debian/patches/do-not-use-PATH_MAX.patch0000644000000000000000000000114512133020524015060 0ustar From: Markus Koschany Date: Mon, 15 Apr 2013 15:42:55 +0200 Subject: do not use PATH_MAX --- etw/etw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etw/etw.c b/etw/etw.c index 2e28f6c..9f75cd5 100644 --- a/etw/etw.c +++ b/etw/etw.c @@ -451,7 +451,7 @@ int main(int argc, char *argv[]) } /* Do not get fooled by a corrupted $HOME */ - if(home && strlen(home) < PATH_MAX) + if(home && strlen(home) < 1024) { TEMP_DIR = malloc(strlen(home) + strlen("/.etw/") + 1); sprintf(TEMP_DIR, "%s/.etw/", home); debian/patches/Modify-Makefile.linux.patch0000644000000000000000000000273312133020524015733 0ustar From: Markus Koschany Date: Thu, 8 Nov 2012 16:49:13 +0100 Subject: Modify Makefile.linux Enables pthread linking for better portability and patches the Makefile to enable hardening. Note: Enabling all hardening features is possible but leads to a buggy and unusable game. For now CFLAGS and CPPFLAGS provided by dpkg-buildflags are disabled. --- etw/Makefile.linux | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/etw/Makefile.linux b/etw/Makefile.linux index 09bc3a5..c6c7923 100644 --- a/etw/Makefile.linux +++ b/etw/Makefile.linux @@ -1,11 +1,18 @@ -CC = gcc +CC = gcc -pthread -CFLAGS = -Wall -g -fsigned-char -Iinclude \ +CFLAGS = -Wall -g -fPIC -fsigned-char -Iinclude \ -Wpointer-arith -Wcast-align -Wcast-qual -Wno-char-subscripts -Wshadow \ -Waggregate-return -Wsign-compare \ `pkg-config --cflags sdl` `pkg-config --cflags gtk+-2.0` +#CFLAGS += `dpkg-buildflags --get CPPFLAGS` +#CFLAGS += `dpkg-buildflags --get CFLAGS` + +SLIM = -Wl,--as-needed + LDFLAGS = `pkg-config --libs sdl` `pkg-config --libs gtk+-2.0` +LDFLAGS += `dpkg-buildflags --get LDFLAGS` + DEFINES = -DLINUX -DCD_VERSION -DENABLE_BINRELOC -DHAVE_STDINT_H OBJECTS = highdirent.o cpu.o human.o myiff.o specials.o \ @@ -26,7 +33,7 @@ OBJECTS = highdirent.o cpu.o human.o myiff.o specials.o \ all: CHECKTOOLS etw etw: $(OBJECTS) - $(CC) -o etw $(OBJECTS) $(LDFLAGS) + $(CC) $(SLIM) -o etw $(OBJECTS) $(LDFLAGS) clean: rm -rf etw *.o