--- trophy-1.1.3.orig/trophy/camenu.cpp +++ trophy-1.1.3/trophy/camenu.cpp @@ -122,7 +122,7 @@ CASoundEffect::playBackgroundMelody(); if( configureMenu && changed ) { - //CA_APP->reconfigure(); + CA_APP->reconfigure(); } changed = false; --- trophy-1.1.3.orig/trophy/resources.scr +++ trophy-1.1.3/trophy/resources.scr @@ -3,7 +3,7 @@ // Tracks: // section tracks { - directories = "Loops~Zurich~Moon~Downtown~Snake~Rally" (type=string); + directories = "Loops~Zurich~Moon~Downtown~ZigZag~Snake~Rally" (type=string); } // Cars: --- trophy-1.1.3.orig/trophy/camath.h +++ trophy-1.1.3/trophy/camath.h @@ -16,7 +16,7 @@ #define CA_MAXTRACKS 64 // Max number of tracks #define CA_NUMCARTYPES 4 // Max number of car types -#define CA_VERSION "1.0.6" // Trophy version +#define CA_VERSION "1.1.0" // Trophy version #define CA_WIDTH 640 // Width of screen #define CA_HEIGHT 480 // Height " --- trophy-1.1.3.orig/trophy/Makefile.in +++ trophy-1.1.3/trophy/Makefile.in @@ -46,7 +46,7 @@ if [ -f race ]; then rm -f race; fi distclean: clean - rm -Rf config.log config.cache Makefile config.status trophy resources.dat doc + rm -Rf config.log config.cache Makefile config.status trophy resources.dat doc autom4te.cache trophy: $(OBJF) @echo "Building executable..." --- trophy-1.1.3.orig/trophy/camath.cpp +++ trophy-1.1.3/trophy/camath.cpp @@ -63,7 +63,7 @@ float yd2 = (y2-y1)*(y2-y1); float d = xd2+yd2; if(d<0.0) d*=-1.0; - return(std::sqrt(d)); + return(sqrt(d)); } --- trophy-1.1.3.orig/trophy/catrophy.cpp +++ trophy-1.1.3/trophy/catrophy.cpp @@ -290,7 +290,7 @@ path = mainPath + "price"; carType[i].price = CL_Integer( path, CA_RES->resources ); - carType[i].radius = std::sqrt( (double)carType[i].width/2 * (double)carType[i].width/2 + (double)carType[i].length/2 * (double)carType[i].length/2 ); + carType[i].radius = sqrt( (double)carType[i].width/2 * (double)carType[i].width/2 + (double)carType[i].length/2 * (double)carType[i].length/2 ); carType[i].angle = atan( (double)(carType[i].width/2) / (double)(carType[i].length/2) ) * ARAD; } --- trophy-1.1.3.orig/trophy/caimagemanipulation.cpp +++ trophy-1.1.3/trophy/caimagemanipulation.cpp @@ -548,7 +548,7 @@ float yd2 = (y2-y1)*(y2-y1); float d = xd2+yd2; if(d<0.0) d*=-1.0; - return(std::sqrt(d)); + return(sqrt(d)); } --- trophy-1.1.3.orig/debian/changelog +++ trophy-1.1.3/debian/changelog @@ -0,0 +1,109 @@ +trophy (1.1.3-3) unstable; urgency=low + + * Recompile needed for C++ ABI change. + * Add menu hints. Closes: #311035 + + -- Guus Sliepen Fri, 22 Jul 2005 15:01:42 +0200 + +trophy (1.1.3-2) unstable; urgency=low + + * sqrt() is not in std namespace. Closes: #266238 + * Let trophy-data depend on trophy. Closes: #215186 + * Install pixmaps in /usr/share/pixmaps/. + * Bump standards version. + + -- Guus Sliepen Thu, 19 Aug 2004 15:36:14 +0000 + +trophy (1.1.3-1) unstable; urgency=low + + * New upstream release. + + -- Guus Sliepen Wed, 21 May 2003 16:55:29 +0200 + +trophy (1.1.1-1) unstable; urgency=low + + * New upstream release. + * Compile against libclanlib. Closes: #176608 + + -- Guus Sliepen Thu, 23 Jan 2003 15:46:40 +0100 + +trophy (1.1.0-3) unstable; urgency=low + + * Delete configure before running autoconf. Closes: #173410 + + -- Guus Sliepen Sat, 4 Jan 2003 18:23:05 +0100 + +trophy (1.1.0-2) unstable; urgency=low + + * Add missing build dependency on autoconf. Closes: #172804 + * Show correct version. + + -- Guus Sliepen Tue, 17 Dec 2002 00:00:52 +0100 + +trophy (1.1.0-1) unstable; urgency=low + + * New upstream release. + + -- Guus Sliepen Mon, 9 Dec 2002 11:55:21 +0100 + +trophy (1.0.7-2) unstable; urgency=low + + * Don't #include . Closes: #147481 + + -- Guus Sliepen Mon, 20 May 2002 10:03:47 +0200 + +trophy (1.0.7-1) unstable; urgency=low + + * New upstream release. + + -- Guus Sliepen Sun, 19 May 2002 11:19:09 +0200 + +trophy (1.0.6-7) unstable; urgency=low + + * Fix build dependencies. Closes: #141985 + * Compile using latest clanlib-dev. + + -- Guus Sliepen Tue, 9 Apr 2002 18:18:36 +0200 + +trophy (1.0.6-6) unstable; urgency=low + + * Compensate for clanlib package fuckup. Closes: #141364 + + -- Guus Sliepen Sun, 7 Apr 2002 14:30:22 +0200 + +trophy (1.0.6-5) unstable; urgency=low + + * Make fullscreen option in menu work. Closes: #136441 + + -- Guus Sliepen Sat, 2 Mar 2002 19:04:06 +0100 + +trophy (1.0.6-4) unstable; urgency=low + + * Build against ClanLib 0.5.4. + + -- Guus Sliepen Sun, 3 Feb 2002 11:46:44 +0100 + +trophy (1.0.6-3) unstable; urgency=low + + * Split into architecture dependent and independent packages. + + -- Guus Sliepen Tue, 22 Jan 2002 21:02:11 +0100 + +trophy (1.0.6-2) unstable; urgency=low + + * Minor changes to allow linking with new clanlib libraries. + * Merged parts of Andreas Tille's trophy package: + - Added menu entry + - Added pixmaps + * Don't build networking code. + * Don't #include , GCC 3.0 complains about it. + + -- Guus Sliepen Mon, 14 Jan 2002 13:20:34 +0100 + +trophy (1.0.6-1) unstable; urgency=low + + * Initial Release. + * Added manpage. + + -- Guus Sliepen Sun, 9 Dec 2001 15:02:26 +0100 + --- trophy-1.1.3.orig/debian/trophy-data.dirs +++ trophy-1.1.3/debian/trophy-data.dirs @@ -0,0 +1 @@ +usr/share/games/trophy --- trophy-1.1.3.orig/debian/trophy.docs +++ trophy-1.1.3/debian/trophy.docs @@ -0,0 +1,4 @@ +AUTHORS +README +TODO +ChangeLog.old --- trophy-1.1.3.orig/debian/trophy-data.docs +++ trophy-1.1.3/debian/trophy-data.docs @@ -0,0 +1,4 @@ +AUTHORS +README +TODO +ChangeLog.old --- trophy-1.1.3.orig/debian/trophy.overrides +++ trophy-1.1.3/debian/trophy.overrides @@ -0,0 +1 @@ +trophy source: autoconf-generated-file-in-source trophy/config.status --- trophy-1.1.3.orig/debian/trophy.xpm +++ trophy-1.1.3/debian/trophy.xpm @@ -0,0 +1,343 @@ +/* XPM */ +static char * trophy_xpm[] = { +"32 32 308 2", +" c None", +". c #440103", +"+ c #4C0005", +"@ c #4E0006", +"# c #4C0006", +"$ c #490106", +"% c #4F0006", +"& c #510006", +"* c #500006", +"= c #4F0007", +"- c #4D0007", +"; c #50000E", +"> c #520013", +", c #500004", +"' c #530006", +") c #520007", +"! c #510007", +"~ c #510008", +"{ c #4F0009", +"] c #58001D", +"^ c #5A0035", +"/ c #57001B", +"( c #520006", +"_ c #540005", +": c #500007", +"< c #470204", +"[ c #4E0105", +"} c #510009", +"| c #580023", +"1 c #5D001E", +"2 c #5B0019", +"3 c #53000E", +"4 c #4D0107", +"5 c #4A0504", +"6 c #3F0404", +"7 c #3F0E05", +"8 c #450703", +"9 c #4B0106", +"0 c #590118", +"a c #55000B", +"b c #530007", +"c c #470704", +"d c #4B0007", +"e c #530004", +"f c #470905", +"g c #4D1D16", +"h c #4B2220", +"i c #4B1312", +"j c #470303", +"k c #4F0104", +"l c #550006", +"m c #530008", +"n c #4E0104", +"o c #4A0103", +"p c #560004", +"q c #550004", +"r c #520003", +"s c #560104", +"t c #550F11", +"u c #512B2B", +"v c #4F2E2E", +"w c #490F0B", +"x c #430600", +"y c #540004", +"z c #560007", +"A c #560006", +"B c #510004", +"C c #520004", +"D c #4C0102", +"E c #5B0005", +"F c #5B0004", +"G c #5B0003", +"H c #560003", +"I c #550102", +"J c #5A0408", +"K c #541718", +"L c #552122", +"M c #560105", +"N c #560005", +"O c #5D0005", +"P c #530106", +"Q c #480408", +"R c #480502", +"S c #4B0101", +"T c #560103", +"U c #5C0005", +"V c #5E0005", +"W c #600005", +"X c #5D0004", +"Y c #580003", +"Z c #5B0104", +"` c #5C0106", +" . c #550007", +".. c #610307", +"+. c #5C0008", +"@. c #4B0209", +"#. c #37120D", +"$. c #430B05", +"%. c #520202", +"&. c #590002", +"*. c #600004", +"=. c #5F0005", +"-. c #610005", +";. c #610004", +">. c #590004", +",. c #550003", +"'. c #580008", +"). c #66040B", +"!. c #570007", +"~. c #41150E", +"{. c #450F09", +"]. c #580005", +"^. c #4F0102", +"/. c #470500", +"(. c #5A0603", +"_. c #6A0105", +":. c #680006", +"<. c #620005", +"[. c #650007", +"}. c #650006", +"|. c #590006", +"1. c #5D0006", +"2. c #4E0206", +"3. c #3E1808", +"4. c #450B06", +"5. c #4A0102", +"6. c #500B06", +"7. c #51120B", +"8. c #58120E", +"9. c #6E0409", +"0. c #710109", +"a. c #690007", +"b. c #670007", +"c. c #630106", +"d. c #4F0202", +"e. c #490401", +"f. c #580105", +"g. c #580004", +"h. c #570004", +"i. c #3F0B03", +"j. c #640106", +"k. c #620208", +"l. c #570103", +"m. c #560C09", +"n. c #51160F", +"o. c #4F1E13", +"p. c #542921", +"q. c #6B1518", +"r. c #71020A", +"s. c #690108", +"t. c #500505", +"u. c #420400", +"v. c #4C0402", +"w. c #540003", +"x. c #500506", +"y. c #630005", +"z. c #70080E", +"A. c #751B20", +"B. c #630408", +"C. c #5B0907", +"D. c #53150D", +"E. c #4A3124", +"F. c #515646", +"G. c #643133", +"H. c #680509", +"I. c #4D0405", +"J. c #640006", +"K. c #680005", +"L. c #6A0106", +"M. c #772426", +"N. c #772A2D", +"O. c #831A29", +"P. c #6D060D", +"Q. c #630004", +"R. c #600708", +"S. c #552B24", +"T. c #586252", +"U. c #613E40", +"V. c #6A080A", +"W. c #580106", +"X. c #5E0104", +"Y. c #5E0004", +"Z. c #6B0006", +"`. c #6D0006", +" + c #740E12", +".+ c #792932", +"++ c #80454C", +"@+ c #8B3D4D", +"#+ c #852334", +"$+ c #760913", +"%+ c #6B0005", +"&+ c #691011", +"*+ c #683C3C", +"=+ c #592423", +"-+ c #6C0608", +";+ c #630006", +">+ c #600206", +",+ c #5F080C", +"'+ c #6E0108", +")+ c #710007", +"!+ c #73030A", +"~+ c #7F151B", +"{+ c #7B4049", +"]+ c #8A535A", +"^+ c #992D4C", +"/+ c #94223F", +"(+ c #8A0E22", +"_+ c #7A000C", +":+ c #740007", +"<+ c #750007", +"[+ c #6E0107", +"}+ c #660006", +"|+ c #640005", +"1+ c #5C070A", +"2+ c #7B0108", +"3+ c #74060B", +"4+ c #80171D", +"5+ c #7F494E", +"6+ c #97485B", +"7+ c #9E2848", +"8+ c #A22746", +"9+ c #931C33", +"0+ c #8B0213", +"a+ c #85020D", +"b+ c #83010B", +"c+ c #770009", +"d+ c #6A0008", +"e+ c #690107", +"f+ c #610106", +"g+ c #760107", +"h+ c #7C0007", +"i+ c #760006", +"j+ c #460804", +"k+ c #610F08", +"l+ c #8B494A", +"m+ c #9D3E4D", +"n+ c #A13B52", +"o+ c #A03C54", +"p+ c #A51637", +"q+ c #990C1D", +"r+ c #7F000A", +"s+ c #70000A", +"t+ c #6E030B", +"u+ c #6B0109", +"v+ c #700409", +"w+ c #7E0109", +"x+ c #7E0007", +"y+ c #7F0B13", +"z+ c #721515", +"A+ c #7A1316", +"B+ c #9A3540", +"C+ c #AC2440", +"D+ c #B11B37", +"E+ c #A11328", +"F+ c #89030E", +"G+ c #8F000E", +"H+ c #7B000C", +"I+ c #5D0408", +"J+ c #61080A", +"K+ c #79060C", +"L+ c #89000A", +"M+ c #950B17", +"N+ c #8E343A", +"O+ c #762021", +"P+ c #7E0E16", +"Q+ c #7A0D11", +"R+ c #A21929", +"S+ c #950613", +"T+ c #92000C", +"U+ c #89000C", +"V+ c #560609", +"W+ c #410903", +"X+ c #49120B", +"Y+ c #76090F", +"Z+ c #8D010C", +"`+ c #9A0614", +" @ c #93343A", +".@ c #944D4D", +"+@ c #922835", +"@@ c #590C09", +"#@ c #850409", +"$@ c #9E000F", +"%@ c #95000D", +"&@ c #6D0810", +"*@ c #50211B", +"=@ c #542C28", +"-@ c #90050F", +";@ c #9E1422", +">@ c #9B4C4D", +",@ c #B24756", +"'@ c #A41425", +")@ c #A2010F", +"!@ c #A30112", +"~@ c #810612", +"{@ c #6A4241", +"]@ c #533631", +"^@ c #8E141D", +"/@ c #9E464A", +"(@ c #B5394B", +"_@ c #A80515", +":@ c #AC0414", +"<@ c #930414", +"[@ c #71121C", +"}@ c #513732", +"|@ c #9B2834", +"1@ c #A71425", +"2@ c #950B1C", +"3@ c #830F1E", +" ", +" ", +" ", +" . ", +" + @ # $ ", +" % & * = - ; > ", +" , ' ) ! ~ { ] ^ / @ ", +" ( _ : < [ } | 1 2 3 : 4 5 ", +" : : & 6 7 8 9 ] 0 a b ) ~ : c ", +" d @ e & f g h i j k _ l m m ~ n ", +" o p q r s t u v w x y z A m B C ", +" D s E F G H I J K L M N O P Q R ", +" B S T U U F V W X Y Z ` ...+.@.#.$. ", +" p %.&.*.V =.=.-.;.=.>.,.'.).!.~.{. ", +" ].^./.(._.:.W <.[.}.=.T ].|.1.2.3.4. ", +" O e 5.6.7.8.9.0.a.b.c.d.e.f.g.h.n i. ", +" W j.k.l.m.n.o.p.q.r.s.t.u.v.f.w.w.x. ", +" y.}.z.A.B.G C.D.E.F.G.H.I.e.U >.H ", +" J.K.L.M.N.O.P.Q.R.S.T.U.V.W.X.V Y. ", +" Z.`. +.+++@+#+$+%+&+*+=+-+;.;+>+,+ ", +" '+)+!+~+{+]+^+/+(+_+:+<+[+Z.}+|+1+ ", +" 2+<+3+4+5+6+7+8+9+0+a+b+c+d+e+f+ ", +" g+h+i+j+k+l+m+n+o+p+q+a+r+s+t+u+ ", +" v+w+x+y+z+A+B+C+D+E+F+G+H+I+J+ ", +" K+L+M+N+O+P+Q+R+S+T+U+V+W+X+ ", +" Y+Z+`+ @.@+@@@#@$@%@&@*@=@ ", +" -@;@>@,@'@)@!@~@{@]@ ", +" ^@/@(@_@:@<@[@}@ ", +" |@1@2@3@ ", +" ", +" ", +" "}; --- trophy-1.1.3.orig/debian/trophy.6 +++ trophy-1.1.3/debian/trophy.6 @@ -0,0 +1,54 @@ +.Dd 2001-12-09 +.Dt TROPHY 6 +.Os "Debian GNU/Linux" +.\" Manual page created by Guus Sliepen +.Sh NAME +.Nm trophy +.Nd A 2D car racing action game. +.Sh SYNOPSIS +.Nm +.Sh DESCRIPTION +.Nm +is a single-player racing game for Linux. Even though the goal is +basically to finish the laps as the first, +.Nm +is an action game which +offers much more than just a race. Lots of extras enable "unusual" features +for races such as shooting, putting mines and many others. +.Sh CONTROLS +.Bl -tag -width indent +.It E, Arrow Up +Accelerate. +.It D, Arrow Down +Decelerate. Don't use. +.It N, Arrow Left +Steer to the left. +.It M, Arrow Right +Steer to the right. +.It A +Turbo. Boosts speed while pressed (as long as there still is turbo fuel left). +Use it to overtake other cars or catch up if you've fallen behind. +.It C +Drop bomb. Bombs will explode after a second. Use it to damage other cars. +.It X +Shoot. Fires your machinegun straight ahead. Make sure you are pointed towards another car. +.It Space +Horn. Useless but fun anyway. +.It Q, Escape +Stop race, go back to previous menu or quit game. +.El +.Sh FILES +.Bl -tag -width indent +.It Pa /usr/share/games/trophy/resources.scr +List of game data files and parameters. +.It Pa /usr/share/games/trophy/resources/ +Directory containing graphics, sounds, tracks and cars used by the game. +.El +.Sh AUTHOR +.Nm +has been written by +.An Andrew Mustun Aq andrew@mustun.com . +.Pp +This manual page was written by +.An Guus Sliepen Aq guus@sliepen.warande.net +for the Debian GNU/Linux system. --- trophy-1.1.3.orig/debian/copyright +++ trophy-1.1.3/debian/copyright @@ -0,0 +1,10 @@ +This package was debianized by Guus Sliepen on +Sun, 9 Dec 2001 15:02:26 +0100. + +It was downloaded from: http://trophy.sourceforge.net/ + +Upstream Author: Andrew Mustun + +Copyright: + +GPL version 2, see /usr/share/common-licenses/GPL. --- trophy-1.1.3.orig/debian/trophy.dirs +++ trophy-1.1.3/debian/trophy.dirs @@ -0,0 +1,4 @@ +usr/games +usr/share/man/man6 +usr/share/lintian/overrides +usr/share/pixmaps --- trophy-1.1.3.orig/debian/rules +++ trophy-1.1.3/debian/rules @@ -0,0 +1,113 @@ +#!/usr/bin/make -f +# 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 is the debhelper compatability version to use. +export DH_COMPAT=3 + +configure: configure-stamp +configure-stamp: + dh_testdir + + cd trophy; autoconf; ./configure --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + cd trophy; $(MAKE) trophy + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + rm -f trophy/config.status trophy/configure + -cd trophy; $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + cp trophy/trophy $(CURDIR)/debian/trophy/usr/games/ + cp trophy/resources.scr $(CURDIR)/debian/trophy-data/usr/share/games/trophy/ + cp -R trophy/resources $(CURDIR)/debian/trophy-data/usr/share/games/trophy/ + cp debian/trophy.overrides $(CURDIR)/debian/trophy/usr/share/lintian/overrides/trophy + + cp debian/trophy.xpm $(CURDIR)/debian/trophy/usr/share/pixmaps/ + +# dh_movefiles + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i +# dh_installdebconf -i + dh_installdocs -i + dh_installexamples -i + dh_installmenu -i +# dh_installlogrotate -i +# dh_installemacsen -i +# dh_installpam -i +# dh_installmime -i +# dh_installinit -i +# dh_installcron -i +# dh_installman -i +# dh_installinfo -i +# dh_undocumented -i + dh_installchangelogs -i ChangeLog + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i +# dh_makeshlibs -i + dh_installdeb -i +# dh_perl -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a +# dh_installdebconf -a + dh_installdocs -a + dh_installexamples -a + dh_installmenu -a +# dh_installlogrotate -a +# dh_installemacsen -a +# dh_installpam -a +# dh_installmime -a +# dh_installinit -a +# dh_installcron -a + dh_installman -a debian/trophy.6 +# dh_installinfo -a +# dh_undocumented -a + dh_installchangelogs -a ChangeLog + dh_link -a + dh_strip -a + dh_compress -a + dh_fixperms -a +# dh_makeshlibs -a + dh_installdeb -a +# dh_perl -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- trophy-1.1.3.orig/debian/control +++ trophy-1.1.3/debian/control @@ -0,0 +1,28 @@ +Source: trophy +Section: games +Priority: optional +Maintainer: Guus Sliepen +Build-Depends: debhelper (>> 3.0.0), libclanlib-dev, autoconf +Standards-Version: 3.6.2 + +Package: trophy +Architecture: any +Depends: trophy-data (>= 1.1.1), ${shlibs:Depends} +Description: A 2D car racing action game + Trophy is a single-player racing game for Linux. Even though the goal is + basically to finish the laps as the first, Trophy is an action game which + offers much more than just a race. Lots of extras enable "unusual" features + for races such as shooting, putting mines and many others. + . + This package contains the executable. + +Package: trophy-data +Architecture: all +Depends: trophy +Description: A 2D car racing action game - graphics and sounds + Trophy is a single-player racing game for Linux. Even though the goal is + basically to finish the laps as the first, Trophy is an action game which + offers much more than just a race. Lots of extras enable "unusual" features + for races such as shooting, putting mines and many others. + . + This package contains the maps, graphics and sounds. --- trophy-1.1.3.orig/debian/trophy.menu +++ trophy-1.1.3/debian/trophy.menu @@ -0,0 +1,3 @@ +?package(trophy):command="/usr/games/trophy" \ + needs="x11" icon="trophy.xpm" section="Games/Arcade" \ + title="Trophy" hints="Overhead,Racing,2D"