debian/0000755000000000000000000000000011772522535007177 5ustar debian/docs0000644000000000000000000000000711055066550010041 0ustar README debian/README.source0000644000000000000000000000114211757075105011353 0ustar xmoto for Debian ---------------- The upstream source includes glext.h in a non-redistributable version, so the provided upstream tarball is repacked without that file. Building xmoto without glext.h required the remove-glext.patch provided in debian/patches (and automatically applied to the Debian package). The source includes an XML file, bin/xmoto.bin, which is built from a series of separate files. The original files can be extracted as follows: cd bin xmoto --unpack xmoto.bin . and repacked as follows: xmoto --pack xmoto.bin . -- Stephen Kitt , Wed, 23 May 2012 07:42:41 +0200 debian/control0000644000000000000000000000371111757100550010574 0ustar Source: xmoto Section: games Priority: optional Maintainer: Debian Games Team Uploaders: Miriam Ruiz , Samuel Mimram , Barry deFreese , Stephen Kitt DM-Upload-Allowed: yes Build-Depends: autotools-dev, debhelper (>= 9), dh-autoreconf, dpkg-dev (>= 1.13.19), libbz2-dev, libcurl4-gnutls-dev, libgl1-mesa-dev | libgl-dev, libjpeg-dev, liblua5.1-0-dev, libode-dev, libpng-dev, libsdl-mixer1.2-dev, libsdl-net1.2-dev, libsdl-ttf2.0-dev, libsdl1.2-dev, libsqlite3-dev, libxdg-basedir-dev, libxml2-dev, zlib1g-dev Standards-Version: 3.9.3 Homepage: http://xmoto.tuxfamily.org/ Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/xmoto/ Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/xmoto/ Package: xmoto Architecture: any Depends: xmoto-data (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends} Description: 2D motocross platform game X-Moto is a challenging 2D motocross platform game, where physics play an all important role in the gameplay. You need to control your bike to its limit, if you want to have a chance finishing the more difficult of the challenges. Package: xmoto-data Architecture: all Depends: ttf-dejavu-core, ${misc:Depends} Suggests: xmoto (>= ${source:Version}) Description: 2D motocross platform game - data files X-Moto is a challenging 2D motocross platform game, where physics play an all important role in the gameplay. You need to control your bike to its limit, if you want to have a chance finishing the more difficult of the challenges. . This package contains the data files needed by xmoto. debian/rules0000755000000000000000000000051411734434374010260 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr \ --bindir=\$${prefix}/games \ --datadir=\$${prefix}/share/games \ --mandir=\$${prefix}/share/man \ --localedir=\$${prefix}/share/games/locale debian/xmoto-data.links0000644000000000000000000000032611667005653012317 0ustar usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf usr/share/games/xmoto/Textures/Fonts/DejaVuSans.ttf usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf usr/share/games/xmoto/Textures/Fonts/DejaVuSansMono.ttf debian/compat0000644000000000000000000000000211667005454010374 0ustar 9 debian/xmoto.install0000644000000000000000000000021311734435130011721 0ustar extra/xmoto.desktop /usr/share/applications extra/xmoto.xpm /usr/share/pixmaps usr/games/xmoto usr/share/games/locale usr/share/man/man6/* debian/source/0000755000000000000000000000000011772520611010470 5ustar debian/source/format0000644000000000000000000000001411667005454011704 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000004141511772520334011051 0ustar xmoto (0.5.10+dfsg-1) unstable; urgency=low * New upstream release. -- Stephen Kitt Wed, 27 Jun 2012 07:57:03 +0200 xmoto (0.5.9+dfsg-3) unstable; urgency=low * Pino Toscano provided a better patch to remove the use of sa_restorer, thanks! (Closes: #674636.) -- Stephen Kitt Sat, 26 May 2012 20:31:17 +0200 xmoto (0.5.9+dfsg-2) unstable; urgency=low * Remove reference to sa_restorer which is deprecated generally and not available on some architectures. -- Stephen Kitt Sat, 26 May 2012 11:55:37 +0200 xmoto (0.5.9+dfsg-1) unstable; urgency=low * New upstream release (closes: #644234): + builds with libpng 1.5 (closes: #649797); + uses libxml2; + uses DejaVuSansMono (add link and make ttf-dejavu-core a dependency of xmoto-data). * Repacked to remove src/glext.h, licensed under SGI License B version 1.1. (I'm hoping that this will be fixed upstream, so I haven't added a get-orig-source target to debian/rules.) * Update debian/watch accordingly. * Update patches: + remove-glext.patch: add (allows building without glext.h), forward upstream; + fix_segfault.patch: refresh, add DEP-3 header, forward upstream; + desktop.patch: re-apply, add German translation (closes: #641822), forward upstream; + spelling.patch: refresh, forward upstream; + manpage.patch: forward upstream; + gcc44-ftbfs.patch: no longer used, delete. * Switch to dh 9 with simple rules. * Use source format "3.0 (quilt)", drop explanations from README.source. * Update README.source to explain the removal of glext.h, and the use of "xmoto --unpack" and "xmoto --pack" to manipulate xmoto.bin (closes: #661340). * Add ${misc:Depends} where appropriate. * Patch the manpage to fix hyphens and a few spelling mistakes. * Add myself to uploaders. * Update debian/copyright. * Standards-Version 3.9.3 (no further change required). * Fix spelling mistakes spotted by Lintian. * Use dh-autoreconf to update config.{guess,sub} (thanks to Ansgar Burchardt for the hint). * wrap-and-sort control files. * Build-depend on libpng-dev only, dropping the libpng12-dev alternative (closes: #662565). * Fix "ftbfs with GCC-4.7" by including unistd.h where appropriate (closes: #667422; thanks to Cyril Brulebois for his patch for another gcc-4.7-related issue, which was already included upstream). * Fix the Vcs-Browser URL. * Allow DM uploads as requested by Michael Gilbert. -- Stephen Kitt Wed, 23 May 2012 08:18:30 +0200 xmoto (0.5.5-1) unstable; urgency=low * Team upload. [ Stephen Kitt ] * New upstream release. (Closes: #580428.) * Update patches: + fix_segfault.patch: refreshed; + 64bit-ftbfs.patch: removed (applied upstream). * Add libxdg-basedir-dev build-dependency. [ Bruno "Fuddl" Kleinert ] * Prepare for libjpeg8 transition and depend on libjpeg-dev instead of libjpeg62-dev. Thanks to Bill Allombert for pointing this out. (Closes: #634648) -- Bruno "Fuddl" Kleinert Tue, 19 Jul 2011 18:07:10 +0200 xmoto (0.5.2-2) unstable; urgency=low [ Barry deFreese ] * 64bit-ftbfs.diff - Fix FTBFS on 64bit. (Closes: #548511). + Thanks to Peter De Wachter for the patch! -- Barry deFreese Sun, 27 Sep 2009 11:57:06 -0400 xmoto (0.5.2-1) unstable; urgency=low [ Barry deFreese ] * New upstream release. + Remove desktop and gcc-4.4 patches as they are fixed upstream. * Add README.source for quilt package. * Bump debhelper build-dep to 5 to match compat. * Bump Standards Version to 3.8.3. (No changes needed). -- Barry deFreese Sat, 26 Sep 2009 10:01:44 -0400 xmoto (0.5.1-1) unstable; urgency=low * New upstream release. -- Samuel Mimram Fri, 17 Apr 2009 10:28:00 +0200 xmoto (0.5.0-3) unstable; urgency=low [ Samuel Mimram ] * Remove obsolete Suggests to xmoto-edit. [ Barry deFreese ] * Change libode0-dev build-depeds to libode-dev. (Closes: #520734). * Bump Standards Version to 3.8.1. (No changes needed). [ Gonéri Le Bouder ] * Pass -DdDOUBLE to gcc, this should be done by pkg-config but xmoto doesn't use it yet (Closes: #521013) * Add myself in uploaders -- Gonéri Le Bouder Tue, 24 Mar 2009 12:27:21 +0100 xmoto (0.5.0-2) unstable; urgency=low * Upload to unstable. * Use DejaVuSans.ttf from the package ttf-dejavu-core. -- Samuel Mimram Sun, 15 Feb 2009 22:10:00 +0100 xmoto (0.5.0-1) experimental; urgency=low [ Miriam Ruiz ] * New Upstream Release (Closes: #508286) * Added patch to fix FTBFS in gcc 4.4 (Closes: #505414) + Thanks to Martin Michlmayr for the patch. * Refreshed patches * Removed patch fix_segfault2.patch: Already fixed in upstream code [ Samuel Mimram ] * Add missing dependency on libsdl-net1.2-dev. -- Samuel Mimram Tue, 23 Dec 2008 15:55:40 +0100 xmoto (0.4.2-3) unstable; urgency=medium [ Barry deFreese ] * Don't segfault on NULL db values. (Closes: #492414). + Thanks to Gustavo Noronha Silva for the patch. * Add patch-stamp target. * Add myself to uploaders. -- Barry deFreese Sat, 11 Oct 2008 09:34:05 -0400 xmoto (0.4.2-2) unstable; urgency=low [ Miriam Ruiz ] * Upgraded Standards-Version to 3.8.0. No changes needed. * Don't call atoi(NULL), fixes segfault on upgrade from etch (Closes: #492414). Thanks to Julien Cristau * Added Homepage field to debian/control * Added Suggests: xmoto to package xmoto-data * Added ArcadeGame to desktop categories. Closes: #478974 Thanks to Daniel Dickinson * Replaced dpatch by quilt for patch management * Replaced build dependency on the obsolete xlibmesa-gl-dev by libgl1-mesa-dev * The Debian Games Team is taking care for this package from now on [ Ansgar Burchardt ] * Add Vcs-* fields -- Miriam Ruiz Tue, 26 Aug 2008 21:42:52 +0200 xmoto (0.4.2-1) unstable; urgency=low * New upstream release. -- Samuel Mimram Tue, 18 Mar 2008 20:27:10 +0100 xmoto (0.4.1-1) unstable; urgency=low * New upstream release. * Removed build-dependency on subversion. * Builds with gcc 4.3, closes: #462050. -- Samuel Mimram Thu, 14 Feb 2008 21:36:29 +0100 xmoto (0.4.0-2) unstable; urgency=low * Add missing build-dependency on subversion, closes: #463224. -- Samuel Mimram Fri, 01 Feb 2008 08:49:09 +0100 xmoto (0.4.0-1) unstable; urgency=low * New upstream release. * Should build cleanly with gcc 4.3, closes: #462050. * Manpage is now up-to-date, closes: #449333. * --nogfx option was removed, closes: #450685. * Correcly set CXXFLAGS in rules, closes: #450682. * Build with lua 5.1. * Don't build with experimental configure option --with-enable-zooming=1. -- Samuel Mimram Tue, 29 Jan 2008 23:15:49 +0100 xmoto (0.3.4-1) unstable; urgency=low * New upstream release. * Removed room.dpatch and joystick.dpatch, integrated upstream. -- Samuel Mimram Wed, 17 Oct 2007 20:06:24 +0000 xmoto (0.3.3-2) unstable; urgency=low * Added room.dpatch and joystick.dpatch to fix segfaults, closes: #444184. -- Samuel Mimram Wed, 26 Sep 2007 19:08:48 +0000 xmoto (0.3.3-1) unstable; urgency=low * New upstream release. -- Samuel Mimram Tue, 28 Aug 2007 20:36:23 +0200 xmoto (0.3.2-1) unstable; urgency=low * New upstream release. * Updated watch file. -- Samuel Mimram Tue, 07 Aug 2007 12:47:56 +0200 xmoto (0.3.1-1) unstable; urgency=low * New upstream release. -- Samuel Mimram Tue, 03 Jul 2007 21:40:25 +0200 xmoto (0.3.0-3) unstable; urgency=low * Rebuild against libcurl3, closes: #430450. -- Samuel Mimram Tue, 26 Jun 2007 17:11:01 +0200 xmoto (0.3.0-2) unstable; urgency=low * Build-depend on libcurl4-dev instead of libcurl3-dev, closes: #428817. -- Samuel Mimram Thu, 14 Jun 2007 19:07:59 +0200 xmoto (0.3.0-1) unstable; urgency=low * New upstream release. * Added libsqlite3-dev and libsdl-ttf2.0-dev as a build-dependencies. * The F8 key can disable web connection, closes: #393341. * Level times are now updated after a level is won, closes: #416422. * Translation in french now includes accents, closes: #407604. -- Samuel Mimram Thu, 14 Jun 2007 00:20:57 +0200 xmoto (0.2.7-1) unstable; urgency=low * New upstream release. * Added a mime for rpl files, closes: #400769. * Removed use_regular_modes_for_non_windowed.dpatch, integrated upstream. * Suggest xmoto-edit. -- Samuel Mimram Fri, 16 Mar 2007 18:35:43 +0100 xmoto (0.2.6-1) unstable; urgency=low * New upstream release. * Removed fix_replay_creation_64bits-0{1,2}.dpatch, integrated upstream. -- Samuel Mimram Sat, 3 Mar 2007 17:27:46 +0100 xmoto (0.2.4-2) unstable; urgency=low * Added fix_replay_creation_64bits-0{1,2}.dpatch to fix a crash when viewing a replay on amd64, closes: #388683. * Enable zoom. -- Samuel Mimram Fri, 5 Jan 2007 18:16:24 +0000 xmoto (0.2.4-1) unstable; urgency=low * New upstream release. -- Samuel Mimram Sat, 23 Dec 2006 13:04:49 +0000 xmoto (0.2.3-1) unstable; urgency=low * New upstream release. * xmoto-edit is no longer part of the main xmoto package, and will eventually have its own package. * New -unpack command-line option for xmoto, closes: #395845. * New levels list is now saved when you quit xmoto, closes: #390622. * Removed tuxfamily.dpatch, integrated upstream. -- Samuel Mimram Fri, 22 Dec 2006 17:53:35 +0000 xmoto (0.2.2-2) unstable; urgency=low * Added tuxfamily.dpatch to correct xmoto's website url which is now xmoto.tuxfamily.org. Put a note about this in NEWS.Debian. -- Samuel Mimram Sun, 10 Dec 2006 23:38:14 +0000 xmoto (0.2.2-1) unstable; urgency=low * New upstream release. * Removed endianness_display_fix.dpatch, integrated upstream. -- Samuel Mimram Tue, 3 Oct 2006 10:02:56 +0000 xmoto (0.2.1-2) unstable; urgency=low * Added endianness_display_fix.dpatch for items to be correctly displayed (thanks Cyril Brulebois), closes: #389107. -- Samuel Mimram Sat, 30 Sep 2006 16:46:03 +0000 xmoto (0.2.1-1) unstable; urgency=low * New upstream release. * Removed manpages and desktop files from the Debian package as they are now provided upstream. * Make the package binNMUable. -- Samuel Mimram Thu, 14 Sep 2006 21:01:20 +0000 xmoto (0.2.0-1) unstable; urgency=low * New upstream release. * Added libbz2-dev as build-dependency. * Removed ghost_of.dpatch, integrated upstream. -- Samuel Mimram Fri, 28 Jul 2006 07:59:18 +0200 xmoto (0.1.16-3) unstable; urgency=low * Added ghost_of.dpatch to correct a typo, closes: #376228. * Show the last 100 lines of config.log when configure fails to debug the FTBFS on arm. -- Samuel Mimram Thu, 13 Jul 2006 17:38:41 +0000 xmoto (0.1.16-2) unstable; urgency=low * Added use_regular_modes_for_non_windowed.dpatch to show all video modes when running in a window (thanks Brice Goglin), closes: #374329. -- Samuel Mimram Thu, 15 Jun 2006 23:58:12 +0000 xmoto (0.1.16-1) unstable; urgency=low * New upstream release. * Removed cache64.dpatch, integrated upstream. -- Samuel Mimram Thu, 15 Jun 2006 23:47:08 +0000 xmoto (0.1.14-2) unstable; urgency=low * Added a cache64.patch to fix a bug with the caching system on 64 bit archs, closes: #368362. -- Samuel Mimram Wed, 24 May 2006 00:01:32 +0000 xmoto (0.1.14-1) unstable; urgency=low * New upstream release. * Updated Standards-Version to 3.7.2, no changes needed. -- Samuel Mimram Fri, 19 May 2006 21:51:24 +0000 xmoto (0.1.12+0.1.13test3-1) experimental; urgency=low * New upstream release. * New build-dependency: libcurl3-dev. * Updated Standards-Version to 3.7.0, no changes needed. -- Samuel Mimram Sun, 30 Apr 2006 21:33:54 +0200 xmoto (0.1.12-3) unstable; urgency=low * Added an icon for xmoto menu. -- Samuel Mimram Mon, 17 Apr 2006 20:40:42 +0200 xmoto (0.1.12-2) unstable; urgency=low * Put back gcc_4.1.dpatch (was not integrated upstream), closes: #357186. * Don't install useless NEWS, closes: #361891. -- Samuel Mimram Thu, 13 Apr 2006 15:22:45 +0000 xmoto (0.1.12-1) unstable; urgency=low * New upstream release. * Added a .desktop file (thanks Sven Arvidsson), closes: #361553. * Removed gcc_4.1.dpatch, integrated upstream. -- Samuel Mimram Sun, 9 Apr 2006 21:32:21 +0000 xmoto (0.1.11-2) unstable; urgency=low * Added gcc_4.1.dpatch in order for xmoto to correctly build with G++ 4.1 (thanks Martin Michlmayr), closes: #357186. -- Samuel Mimram Thu, 16 Mar 2006 18:04:48 +0000 xmoto (0.1.11-1) unstable; urgency=low * New upstream release. * It should now longer be possible to move head through level geometry at high speed or by flipping, closes: #340054. * Game no longer quits if a level specified by the user or a replay isn't found, closes: #343282. -- Samuel Mimram Thu, 9 Feb 2006 15:52:33 +0000 xmoto (0.1.10-1) unstable; urgency=low * New upstream release. * Removed arch64.dpatch. * Missing .h included, closes: #340039. * Rewind now uncollect strawberries in replays, closes: #337905. * Smoother replays, closes: #337906, #341523. * Correctly handling escape while entering the name of a replay, closes: #340055. -- Samuel Mimram Sat, 3 Dec 2005 12:57:37 +0100 xmoto (0.1.8-2) unstable; urgency=low * Declaration of PFNGLBUFFERDATAARBPROC is still incorrect. arch64.dpatch is back. -- Samuel Mimram Mon, 7 Nov 2005 20:31:31 +0100 xmoto (0.1.8-1) unstable; urgency=low * New upstream release. * A replay feature was added, closes: #335540. * Removed arch64.dpatch and big_endian.dpatch which are now correctly integrated upstream. * Added libsdl-mixer1.2-dev in build-dependencies and removed libvorbis-dev and libglu1-xorg-dev | libglu-dev. * Cleaned up licenses of removed files in debian/copyright. * Added -ugly option in xmoto's manpage. -- Samuel Mimram Mon, 7 Nov 2005 00:44:13 +0100 xmoto (0.1.7-2) unstable; urgency=low * big_endian.dpatch is back to fix an endianness problem when reading .dat files. It wasn't correctly applied upstream, closes: #335672. * Installing files in /usr/games and /usr/share/games, closes: #337503. -- Samuel Mimram Sat, 5 Nov 2005 12:10:47 +0100 xmoto (0.1.7-1) unstable; urgency=low * New upstream release. * New build dependencies: libode0-dev, liblua50-dev, liblualib50-dev. Upstream is now using shared libraries, closes: #335584. * Removed bigendian.dpatch and mmgr.dpatch, integrated upstream. * Updated arch64.dpatch. * Properly calling configure in rules (thanks Julien Cristau). -- Samuel Mimram Fri, 28 Oct 2005 22:48:53 +0200 xmoto (0.1.6.dfsg-5) unstable; urgency=low * We're back on any arch. * Added arch64.dpatch to build cleanly on 64 bit archs (thanks Yann Vernier). * Added bigendian.dpatch to solve the fatal exception on big endian archs (thanks Michel Daenzer), closes: #335672. -- Samuel Mimram Tue, 25 Oct 2005 20:48:24 +0200 xmoto (0.1.6.dfsg-4) unstable; urgency=low * Correctly handling arch-dependant stuff in the rules. * Added kfreebsd-i386 to the list of supported archs, closes: #335420. -- Samuel Mimram Sun, 23 Oct 2005 21:36:07 +0200 xmoto (0.1.6.dfsg-3) unstable; urgency=low * xmoto does not build on 64 bit archs for now. Specifying the list of supported archs in the Architecture field. -- Samuel Mimram Sun, 23 Oct 2005 16:48:15 +0200 xmoto (0.1.6.dfsg-2) unstable; urgency=low * Added glsizeiptr.dpatch patch to give the correct type of a function and hopefully solve the FTBFS on 64 bit archs. -- Samuel Mimram Sun, 23 Oct 2005 12:48:56 +0200 xmoto (0.1.6.dfsg-1) unstable; urgency=low * Initial release, closes: #331535. * Removed mmgr.cpp, mmgr.h and nommgr.h from upstream source. It wasn't DFSG compliant since the licence prevented users from doing harm to others with it. -- Samuel Mimram Wed, 12 Oct 2005 23:17:40 +0200 debian/watch0000644000000000000000000000015211745100452010214 0ustar version=3 opts=dversionmangle=s/.dfsg$// \ http://xmoto.tuxfamily.org/ .*/xmoto-([\d\.]+)-src\.tar\.gz debian/patches/0000755000000000000000000000000011772521211010614 5ustar debian/patches/series0000644000000000000000000000017711760130642012037 0ustar remove-glext.patch fix_segfault.patch desktop.patch manpage.patch spelling.patch gcc-4.7-fixes.patch sa_restorer-removal.patch debian/patches/fix_segfault.patch0000644000000000000000000000612011744773705014334 0ustar Description: Avoid segfaulting on NULL values in the database Author: Gustavo Noronha Silva Origin: other, http://bugs.debian.org/492414 Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=799 --- xmoto-0.5.9.orig/src/states/StateMainMenu.cpp +++ xmoto-0.5.9/src/states/StateMainMenu.cpp @@ -899,6 +899,7 @@ int v_nbDiffLevels = 0; std::string v_level_name= ""; xmDatabase* pDb = xmDatabase::instance("main"); + char *tmpresult; if(v_window != NULL){ delete v_window; @@ -916,7 +917,8 @@ pDb->read_DB_free(v_result); return; } - v_nbStarts = atoi(pDb->getResult(v_result, 2, 0, 0)); + tmpresult = pDb->getResult(v_result, 2, 0, 0); + v_nbStarts = tmpresult ? atoi(tmpresult) : 0; v_since = pDb->getResult(v_result, 2, 0, 1); pDb->read_DB_free(v_result); @@ -932,11 +934,16 @@ pDb->read_DB_free(v_result); return; } - v_totalPlayedTime = atoi(pDb->getResult(v_result, 5, 0, 0)); - v_nbPlayed = atoi(pDb->getResult(v_result, 5, 0, 1)); - v_nbDied = atoi(pDb->getResult(v_result, 5, 0, 2)); - v_nbCompleted = atoi(pDb->getResult(v_result, 5, 0, 3)); - v_nbRestarted = atoi(pDb->getResult(v_result, 5, 0, 4)); + tmpresult = pDb->getResult(v_result, 5, 0, 0); + v_totalPlayedTime = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 5, 0, 1); + v_nbPlayed = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 5, 0, 2); + v_nbDied = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 5, 0, 3); + v_nbCompleted = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 5, 0, 4); + v_nbRestarted = tmpresult ? atoi(tmpresult) : 0; pDb->read_DB_free(v_result); v_result = pDb->readDB("SELECT COUNT(DISTINCT(id_level)) " @@ -999,11 +1006,16 @@ if(cy + 45 > nHeight) break; /* out of window */ v_level_name = pDb->getResult(v_result, 6, i, 0); - v_totalPlayedTime = atoi(pDb->getResult(v_result, 6, i, 5)); - v_nbDied = atoi(pDb->getResult(v_result, 6, i, 2)); - v_nbPlayed = atoi(pDb->getResult(v_result, 6, i, 1)); - v_nbCompleted = atoi(pDb->getResult(v_result, 6, i, 3)); - v_nbRestarted = atoi(pDb->getResult(v_result, 6, i, 4)); + tmpresult = pDb->getResult(v_result, 6, i, 5); + v_totalPlayedTime = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 6, i, 2); + v_nbDied = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 6, i, 1); + v_nbPlayed = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 6, i, 3); + v_nbCompleted = tmpresult ? atoi(tmpresult) : 0; + tmpresult = pDb->getResult(v_result, 6, i, 4); + v_nbRestarted = tmpresult ? atoi(tmpresult) : 0; snprintf(cBuf, 512, ("[%s] %s:\n " + std::string(GAMETEXT_XMOTOLEVELSTATS_PLAYS(v_nbPlayed) + std::string(", ") + GAMETEXT_XMOTOLEVELSTATS_DEATHS(v_nbDied) + std::string(", ") + debian/patches/manpage.patch0000644000000000000000000002220111744773705013262 0ustar Description: Fix hyphens and some spelling mistakes Author: Stephen Kitt Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=801 --- xmoto-0.5.9.orig/xmoto.6 +++ xmoto-0.5.9/xmoto.6 @@ -18,7 +18,7 @@ .\" for manpage-specific macros, see man(7) .SH NAME -X-Moto \- 2D motocross platform game +X-Moto\(em2D motocross platform game .SH SYNOPSIS .B xmoto @@ -35,7 +35,7 @@ is a challenging 2D motocross platform game, where physics plays an important role in the gameplay. You need to control your bike to its limit, if you want to have a chance finishing the more difficult of the challenges. .SH GAMEPLAY -A number of strawberries are typically spread around each level, which generally consists of a complicated landscape seen from the side - i.e. much like islands in the sky. You need to collect all those berries to finish the level - when you've got the last one, you need find the sunflower which will complete the level when you touch it. Variations to this basic gameplay may be found around some of the levels. +A number of strawberries are typically spread around each level, which generally consists of a complicated landscape seen from the side\(emi.e. much like islands in the sky. You need to collect all those berries to finish the level\(emwhen you've got the last one, you need find the sunflower which will complete the level when you touch it. Variations to this basic gameplay may be found around some of the levels. Your motocross bike is likewise seen from the side, and you control its throttle, braking, and simple changes to the attitude by jerking the bike back and forth. Additionally you can change the direction of your driving, by rotating on the spot. @@ -120,122 +120,122 @@ .SH OPTIONS .B Most of these options also change your config settings, so be careful! .TP -.B \-h, \-?, \-help, --help +.B \-h, \-?, \-help, \-\-help Show summary of options. .TP -.B \-res, --resolution +.B \-res, \-\-resolution Forces a specific display resolution. .TP -.B \--bpp +.B \-\-bpp Forces a specific number of bits per pixel. .TP -.B \-fs, --fullscreen +.B \-fs, \-\-fullscreen Forces the game to run in fullscreen mode. .TP -.B \-win, --windowed +.B \-win, \-\-windowed Forces the game to run in windowed mode. .TP -.B --nosound +.B \-\-nosound Turns off sound effects, even if they are enabled in the config. .TP -.B \-r, --replay +.B \-r, \-\-replay Play the replay and quit afterwards. .TP -.B \-ri, --replayInfos +.B \-ri, \-\-replayInfos Display information about the replay and quit. .TP -.B \-v, --verbose +.B \-v, \-\-verbose Be verbose and output debug messages on the standard output. .TP -.BI \-l, --level\ id +.B \-l, \-\-level\ id Start playing the specified level right away. If .I id is a number the corresponding built-in level is selected, otherwise it should be the identifier of an external level (not the file name). .TP -.B --levelFile +.B \-\-levelFile Start playing the given level right away. .TP -.B \-d, --debug +.B \-d, \-\-debug Enables debug mode. .TP -.BI \-p, --profile\ name +.B \-p, \-\-profile\ name Use the player profile specified by .IR name . .TP -.BI \--children +.B \-\-children Force children compliant mode. It removes levels not suitable for children. .TP -.B --configpath path +.B \-\-configpath path Use .IR path as the xmoto configuration path. .TP -.B \-ll, --listlevels +.B \-ll, \-\-listlevels Output the list of available levels and quit. .TP -.B \-lr, --listreplays +.B \-lr, \-\-listreplays Output the list of available replays and quit. .TP -.B --fps +.B \-\-fps Enables framerate display. .TP -.B \-td, --timedemo +.B \-td, \-\-timedemo Tries to render the game as fast as possible. No delaying, maximum framerate. .TP -.B --benchmark -Only meaningful when combined with --replay and --timedemo. Useful to determine graphics performance. +.B \-\-benchmark +Only meaningful when combined with \-\-replay and \-\-timedemo. Useful to determine graphics performance. .TP -.B --nowww +.B \-\-nowww Do not allow xmoto to connect to the web. .TP -.B --testTheme +.B \-\-testTheme Enables testThemeMode. This will display the collision forms over the sprites of the theme to check if the theme is nicely designed. .TP -.B --drawlib drawlib +.B \-\-drawlib drawlib Choose which rendering engine to use (default one is OPENGL if available). You do not need this unless you *really* know what you are doing. .TP -.B --noexts +.B \-\-noexts Do not use any OpenGL extensions. .TP -.B --novobs +.B \-\-novobs Don't use VOB OpenGL extension (GL_ARB_vertex_buffer_object). .TP -.B --ugly -Enables "the ugly" mode. This will increase the game's framerate significantly, but it will also make the graphics look very ugly - most things inside the game will be drawn with lines, the rider for instance being a simple stick figure. This option is very useful if your system doesn't have a proper OpenGL-capable video card (like for instance if you have a laptop with on-board video card). If you have the right amount of CPU power, it should even be possible to run X-Moto in OpenGL software emulation mode (MesaGL on linux, Windows' OpenGL fallback driver, etc). +.B \-\-ugly +Enables "the ugly" mode. This will increase the game's framerate significantly, but it will also make the graphics look very ugly\(emmost things inside the game will be drawn with lines, the rider for instance being a simple stick figure. This option is very useful if your system doesn't have a proper OpenGL-capable video card (like for instance if you have a laptop with on-board video card). If you have the right amount of CPU power, it should even be possible to run X-Moto in OpenGL software emulation mode (MesaGL on linux, Windows' OpenGL fallback driver, etc). .TP -.B --defaultTheme theme +.B \-\-defaultTheme theme Set .IR theme as default theme for new profiles created. This is mostly useful for packagers wanting to set the theme of their distribution by default. .TP -.B --noDBDirsCheck -Don't check that system and user dirs changed at startup. It is mainly usefull if you use X-Moto on a USB key. +.B \-\-noDBDirsCheck +Don't check that system and user dirs changed at startup. It is mainly useful if you use X-Moto on a USB key. .TP -.B --server +.B \-\-server Run X-Moto as a server only (no gui). .TP -.B --serverPort -Specify the server port (with --server only). +.B \-\-serverPort +Specify the server port (with \-\-server only). .TP -.B --serverAdminPassword -Specify a server admin password which is always valid (with --server only). +.B \-\-serverAdminPassword +Specify a server admin password which is always valid (with \-\-server only). .TP -.B --connectAtStartup +.B \-\-connectAtStartup Connect the client to the server at startup. .TP -.B --updateLevelsOnly +.B \-\-updateLevelsOnly Only update levels (no gui). .TP -.B --noLog +.B \-\-noLog Disable logging into xmoto.log .TP -.B --pack bin dir +.B \-\-pack bin dir Build a .IR bin package from the directory .IR dir . .TP -.B --unpack bin dir no_list +.B \-\-unpack bin dir no_list Unpack the .IR bin package into the dir @@ -244,44 +244,44 @@ .IR no_list if you do not need a list of all extracted files. .TP -.B --cleancache +.B \-\-cleancache Deletes the content of the level cache. .\" .TP -.\" .B --gdebug -.\" dont mention options that are not in -h!!! +.\" .B \-\-gdebug +.\" dont mention options that are not in \-h!!! .TP -.B --cleanNoWWWLevels +.B \-\-cleanNoWWWLevels Check web levels list and remove levels which are not available on the web (removed files are put into ~/.xmoto/Trash/Levels) .TP -.B --sqlTrace +.B \-\-sqlTrace Enable sql trace mode. .TP -.B --videoRecording -Enable video recording while plaing/replaying (should be used with --replay and --benchmark). +.B \-\-videoRecording +Enable video recording while plaing/replaying (should be used with \-\-replay and \-\-benchmark). .TP -.B --videoRecordingSizeDivision DIVISION +.B \-\-videoRecordingSizeDivision DIVISION Change video size (1=full, 2=50%, 4=25%). .TP -.B --videoRecordingFramerate FRAMERATE +.B \-\-videoRecordingFramerate FRAMERATE Change video framerate. .TP -.B --videoRecordingStartTime NBCENTSOFSECONDS +.B \-\-videoRecordingStartTime NBCENTSOFSECONDS Start recording video after NBCENTSOFSECONDS time elapsed. .TP -.B --videoRecordingEndTime NBCENTSOFSECONDS +.B \-\-videoRecordingEndTime NBCENTSOFSECONDS Stop recording video after NBCENTSOFSECONDS time elapsed. .TP -.B --hidePlayingInformation -Don't show some information while playing/replaying ; usefull to make nicer video. +.B \-\-hidePlayingInformation +Don't show some information while playing/replaying ; useful to make nicer video. .SH EXAMPLES .B view a replay in windowed mode: .br -xmoto --windowed ~/.xmoto/Replays/replay.rpl +xmoto \-\-windowed ~/.xmoto/Replays/replay.rpl .br .B disable sounds, Internet connection and play mylevel.lvl directly: .br -xmoto --nosound --nowww mylevel.lvl +xmoto \-\-nosound \-\-nowww mylevel.lvl .\".SH SEE ALSO .\" xmoto-edit is deprecated. Should I leave it here and write "deprecated, use inksmoto"? debian/patches/gcc-4.7-fixes.patch0000644000000000000000000000075411743205712014024 0ustar Description: Add missing header, allowing building with gcc-4.7 Author: Stephen Kitt Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=800 --- xmoto-0.5.9.orig/src/helpers/System.cpp +++ xmoto-0.5.9/src/helpers/System.cpp @@ -24,6 +24,7 @@ #include "Log.h" #include "VExcept.h" #include +#include std::vector* System::getDisplayModes(int windowed) { std::vector* modes = new std::vector; debian/patches/desktop.patch0000644000000000000000000000102011744773705013317 0ustar Description: Add "arcade" sub-menu, and German translation Origin: other, http://bugs.debian.org/478974 Origin: other, http://bugs.debian.org/641822 Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=802 --- xmoto-0.5.9.orig/extra/xmoto.desktop +++ xmoto-0.5.9/extra/xmoto.desktop @@ -3,7 +3,8 @@ Version=1.0 Name=Xmoto GenericName=Motocross game +GenericName[de]=Motocross-Spiel GenericName[fr_FR]=Jeu de moto Icon=xmoto.xpm Exec=xmoto -Categories=Game;SportsGame; +Categories=Game;SportsGame;ArcadeGame; debian/patches/spelling.patch0000644000000000000000000002734611772521211013466 0ustar Description: Fix a number of spelling mistakes Author: Stephen Kitt Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=801 --- xmoto-0.5.10+dfsg.orig/ChangeLog +++ xmoto-0.5.10+dfsg/ChangeLog @@ -131,7 +131,7 @@ * synchronisation of the database with the webserver to share it among the places you play X-Moto * chipmunk integration. Blocks reacts to physics, joints and scripts calls (require special levels) - replay saving still unsupported * save config separatly for each profile - * --noDBDirsCheck command line options added. It disables the files find when X-Moto detects that you changed your configuration directory (usefull if you use X-Moto on a USB key) + * --noDBDirsCheck command line options added. It disables the files find when X-Moto detects that you changed your configuration directory (useful if you use X-Moto on a USB key) * --defaultTheme option to change the default theme for new profiles (and --with-default-theme= at compilation time) ; so that packager can change it. * optimisations for particles handling * joystick support improved --- xmoto-0.5.10+dfsg.orig/po/lt_LT.po +++ xmoto-0.5.10+dfsg/po/lt_LT.po @@ -3697,7 +3697,7 @@ #~ msgid "" #~ "X-Moto uses a database on your computer to save all your scores and " #~ "statistics. You can send these data using your web account on the X-Moto " -#~ "server. It is usefull to save your data or if you play X-Moto from " +#~ "server. It is useful to save your data or if you play X-Moto from " #~ "different places." #~ msgstr "" #~ "X-Moto naudoja jūsų kompiuteryje duomenų bazę, kad išsaugotų visus jūsų " --- xmoto-0.5.10+dfsg.orig/po/nl_NL.po +++ xmoto-0.5.10+dfsg/po/nl_NL.po @@ -3640,7 +3640,7 @@ #~ msgid "" #~ "X-Moto uses a database on your computer to save all your scores and " #~ "statistics. You can send these data using your web account on the X-Moto " -#~ "server. It is usefull to save your data or if you play X-Moto from " +#~ "server. It is useful to save your data or if you play X-Moto from " #~ "different places." #~ msgstr "" #~ "X-Moto gebruikt een lokale database om je scores in op te slaan. Deze " --- xmoto-0.5.10+dfsg.orig/po/zh_TW.po +++ xmoto-0.5.10+dfsg/po/zh_TW.po @@ -3591,7 +3591,7 @@ #~ msgid "" #~ "X-Moto uses a database on your computer to save all your scores and " #~ "statistics. You can send these data using your web account on the X-Moto " -#~ "server. It is usefull to save your data or if you play X-Moto from " +#~ "server. It is useful to save your data or if you play X-Moto from " #~ "different places." #~ msgstr "" #~ "X-Moto在您的電腦裡增設了一個資料庫來儲存你 所有的紀錄與統計。你可以用你的" --- xmoto-0.5.10+dfsg.orig/src/Packager.cpp +++ xmoto-0.5.10+dfsg/src/Packager.cpp @@ -74,7 +74,7 @@ md5sumLen = fgetc(fp); fread(md5sum,md5sumLen,1,fp); md5sum[md5sumLen] = '\0'; - /* this is not usefull for unpack */ + /* this is not useful for unpack */ int nNameLen; while((nNameLen=fgetc(fp)) >= 0) { --- xmoto-0.5.10+dfsg.orig/src/Renderer.cpp +++ xmoto-0.5.10+dfsg/src/Renderer.cpp @@ -861,7 +861,7 @@ lines_drawn++; v_last_size=fSize; } - //print amount of lines drawn and the camera's zoom value, usefull for testing. + //print amount of lines drawn and the camera's zoom value, useful for testing. if( XMSession::instance()->debug() ) { std::stringstream out; out << lines_drawn; std::stringstream out2; out2 << v_cZoom; --- xmoto-0.5.10+dfsg.orig/src/XMArgs.cpp +++ xmoto-0.5.10+dfsg/src/XMArgs.cpp @@ -691,7 +691,7 @@ printf("\t--videoRecordingFramerate FRAMERATE\n\t\tChange video framerate.\n"); printf("\t--videoRecordingStartTime NBCENTSOFSECONDS\n\t\tStart recording video after this game time.\n"); printf("\t--videoRecordingEndTime NBCENTSOFSECONDS\n\t\tStop recording video after this game time.\n"); - printf("\t--hidePlayingInformation\n\t\tDon't show some information while playing/replaying ; usefull to make nicer video.\n"); + printf("\t--hidePlayingInformation\n\t\tDon't show some information while playing/replaying ; useful to make nicer video.\n"); printf("\t--drawlib DRAWLIB\n\t\tChoose the render to use (default one is OPENGL if available).\n"); printf("\t--defaultTheme THEME\n\t\tDefault theme for new profiles created.\n"); printf("\t--noDBDirsCheck\n\t\tDon't check that system and user dirs changed at startup.\n"); --- xmoto-0.5.10+dfsg.orig/src/chipmunk/cpSpace.h +++ xmoto-0.5.10+dfsg/src/chipmunk/cpSpace.h @@ -128,7 +128,7 @@ static inline int queryFunc(void *p1, void *p2, void *data) { - // Cast the generic pointers from the spatial hash back to usefull types + // Cast the generic pointers from the spatial hash back to useful types cpShape *a = (cpShape *)p1; cpShape *b = (cpShape *)p2; cpSpace *space = (cpSpace *)data; --- xmoto-0.5.10+dfsg.orig/src/states/GameState.h +++ xmoto-0.5.10+dfsg/src/states/GameState.h @@ -89,7 +89,7 @@ m_updatePeriod = (float)m_maxFps / (float)m_updateFps; } - // usefull to be sure to replace one state by another (and not always replace the upper state) + // useful to be sure to replace one state by another (and not always replace the upper state) void setStateId(const std::string& i_id); std::string getStateId() const; --- xmoto-0.5.10+dfsg.orig/src/VTexture.cpp +++ xmoto-0.5.10+dfsg/src/VTexture.cpp @@ -377,7 +377,7 @@ int i=1; while(it != textures.end()){ if((*it)->curRegistrationStageMode != RSM_NORMAL || (*it)->curRegistrationStage.size() > 0) { - LogDebug("%3i %s (%s)", i, (*it)->Name.c_str(), (*it)->curRegistrationStageMode == RSM_NORMAL ? "NORMAL" : "PERSISTANT"); + LogDebug("%3i %s (%s)", i, (*it)->Name.c_str(), (*it)->curRegistrationStageMode == RSM_NORMAL ? "NORMAL" : "PERSISTENT"); i++; } ++it; @@ -405,7 +405,7 @@ std::vector textures = getTextures(); std::vector::iterator it = textures.begin(); while(it != textures.end()){ - if((*it)->curRegistrationStageMode != RSM_PERSISTANT) { + if((*it)->curRegistrationStageMode != RSM_PERSISTENT) { for(unsigned int i=0; i<(*it)->curRegistrationStage.size(); i++) { LogDebug(" begin %s %d [%x]", (*it)->Name.c_str(), (*it)->curRegistrationStage[i], (*it)); } @@ -432,7 +432,7 @@ LogDebug("---End texture registration---"); while(it != textures.end()){ - if((*it)->curRegistrationStageMode != RSM_PERSISTANT) { + if((*it)->curRegistrationStageMode != RSM_PERSISTENT) { for(unsigned int i=0; i<(*it)->curRegistrationStage.size(); i++) { LogDebug(" end %s %d [%x]", (*it)->Name.c_str(), (*it)->curRegistrationStage[i], (*it)); } --- xmoto-0.5.10+dfsg.orig/src/VTexture.h +++ xmoto-0.5.10+dfsg/src/VTexture.h @@ -51,9 +51,9 @@ //and nID is not a openGL specific structure //it's -enum RegistrationStageMode { RSM_PERSISTANT, RSM_NORMAL }; +enum RegistrationStageMode { RSM_PERSISTENT, RSM_NORMAL }; -#define PERSISTANT 0 +#define PERSISTENT 0 class Texture { public: Texture() { @@ -63,7 +63,7 @@ surface = NULL; nSize = 0; isAlpha = false; - curRegistrationStageMode = RSM_PERSISTANT; + curRegistrationStageMode = RSM_PERSISTENT; } std::string Name; --- xmoto-0.5.10+dfsg.orig/src/GameText.h +++ xmoto-0.5.10+dfsg/src/GameText.h @@ -379,7 +379,7 @@ #define GAMETEXT_MAIN _("Main") #define GAMETEXT_MOUSE _("Mouse") #define GAMETEXT_THEME _("Theme") -#define GAMETEXT_TTF_MISSING "You must install the font file for your langage:" // not translated because always displayed in english +#define GAMETEXT_TTF_MISSING "You must install the font file for your language:" // not translated because always displayed in english #define GAMETEXT_MEDAL_BRONZE _("Bronze") #define GAMETEXT_MEDAL_GOLD _("Gold") #define GAMETEXT_MEDAL_SILVER _("Silver") --- xmoto-0.5.10+dfsg.orig/src/GameInit.cpp +++ xmoto-0.5.10+dfsg/src/GameInit.cpp @@ -386,7 +386,7 @@ v_xmArgs.isOptReplay() || v_xmArgs.isOptDemo()); - // network requires the input informations (to display the chat command) + // network requires the input information (to display the chat command) if(v_useGraphics) { InputHandler::instance()->init(m_userConfig, pDb, XMSession::instance()->profile(), XMSession::instance()->enableJoysticks()); } --- xmoto-0.5.10+dfsg.orig/src/LevelsManager.cpp +++ xmoto-0.5.10+dfsg/src/LevelsManager.cpp @@ -1531,7 +1531,7 @@ v_tables += " AND g.id_profile = h.id_profile)"; } - // highscore informations ? -- i = webhighscores of levels + // highscore information ? -- i = webhighscores of levels // highscore driver 1/2 if(i_setHighscoreDriver != lprv_dontcare || i_limitToLastHighscores != 0) { if(v_mustBeInWebHighscores) { --- xmoto-0.5.10+dfsg.orig/src/db/xmDatabase_sync.cpp +++ xmoto-0.5.10+dfsg/src/db/xmDatabase_sync.cpp @@ -57,7 +57,7 @@ "WHERE sitekey=\"" + protectString(i_sitekey) + "\" AND id_profile=\"" + protectString(i_profile) + "\";", nrow); if(nrow != 1) { read_DB_free(v_result); - throw Exception("Unable to retrieve informations"); + throw Exception("Unable to retrieve information"); } snprintf(v_line, 2048, --- xmoto-0.5.10+dfsg.orig/src/db/xmDatabase_web.cpp +++ xmoto-0.5.10+dfsg/src/db/xmDatabase_web.cpp @@ -67,7 +67,7 @@ throw Exception("unable to analyze xml highscore file"); } - /* get Room informations */ + /* get Room information */ v_roomName = XMLDocument::getOption(v_xmlElt, "roomname"); v_roomId = XMLDocument::getOption(v_xmlElt, "roomid"); @@ -235,7 +235,7 @@ if(v_MD5sum_web == "") continue; - /* web informations */ + /* web information */ v_difficulty = XMLDocument::getOption(pSubElem, "web_difficulty"); if(v_difficulty == "") continue; --- xmoto-0.5.10+dfsg.orig/src/net/NetClient.cpp +++ xmoto-0.5.10+dfsg/src/net/NetClient.cpp @@ -215,7 +215,7 @@ throw Exception("Already connected"); } - // reset udp server informations + // reset udp server information m_serverReceivesUdp = false; m_serverSendsUdp = false; --- xmoto-0.5.10+dfsg.orig/src/states/StateManager.cpp +++ xmoto-0.5.10+dfsg/src/states/StateManager.cpp @@ -905,7 +905,7 @@ void StateManager::registerAsEmitter(const std::string& message) { - // TODO::show debug informations + // TODO::show debug information return registerAsObserver(message, NULL); } --- xmoto-0.5.10+dfsg.orig/src/states/StateManager.h +++ xmoto-0.5.10+dfsg/src/states/StateManager.h @@ -73,7 +73,7 @@ // yourself as an observer of this message void registerAsObserver(const std::string& message, GameState* self); void unregisterAsObserver(const std::string& message, GameState* self); - // register as emitter only for debug informations + // register as emitter only for debug information void registerAsEmitter(const std::string& message); // send the message to registered states --- xmoto-0.5.10+dfsg.orig/src/states/StateReplaying.cpp +++ xmoto-0.5.10+dfsg/src/states/StateReplaying.cpp @@ -75,7 +75,7 @@ try { if(XMSession::instance()->hidePlayingInformation() == false) { - // display replay informations + // display replay information char c_tmp[1024]; snprintf(c_tmp, 1024, GAMETEXT_BY_PLAYER, --- xmoto-0.5.10+dfsg.orig/src/states/StateUpdate.cpp +++ xmoto-0.5.10+dfsg/src/states/StateUpdate.cpp @@ -116,7 +116,7 @@ } if(m_threadStarted == true){ - // update the frame with the thread informations only when progress change + // update the frame with the thread information only when progress change // to avoid spending tooo much time waiting for mutexes. int progress = m_pThread->getThreadProgress(); if(progress != m_progress){ debian/patches/remove-glext.patch0000644000000000000000000000144011757100020014244 0ustar Description: Allow building without upstream-supplied glext.h Author: Stephen Kitt Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=803 --- xmoto-0.5.9+dfsg.orig/src/include/xm_OpenGL.h +++ xmoto-0.5.9+dfsg/src/include/xm_OpenGL.h @@ -1,7 +1,6 @@ #ifdef ENABLE_OPENGL /* Pull in OpenGL headers */ /* following scissored from SDL_opengl.h */ -#define __glext_h_ /* Don't let gl.h include glext.h */ #ifdef HAVE_APPLE_OPENGL_FRAMEWORK #include /* Header File For The OpenGL Library */ #include /* Header File For The GLU Library */ @@ -12,8 +11,5 @@ #include /* Header File For The OpenGL Library */ #include /* Header File For The GLU Library */ #endif -#undef __glext_h_ - -#include "../glext.h" #endif debian/patches/sa_restorer-removal.patch0000644000000000000000000000131311772520166015636 0ustar Description: sa_restorer isn't defined in POSIX and is being removed Author: Pino Toscano Bug: http://todo.xmoto.tuxfamily.org/index.php?do=details&task_id=806 --- xmoto-0.5.9+dfsg.orig/src/GameInit.cpp +++ xmoto-0.5.9+dfsg/src/GameInit.cpp @@ -268,12 +268,9 @@ void GameApp::run_load(int nNumArgs, cha if(v_xmArgs.isOptServerOnly()) { struct sigaction v_act; + memset(&v_act, 0, sizeof(struct sigaction)); v_act.sa_handler = xmexit_term; -#if !defined(__APPLE__) && !defined(__FreeBSD__) - v_act.sa_restorer = NULL; -#endif sigemptyset(&v_act.sa_mask); - v_act.sa_flags = 0; if(sigaction(SIGTERM, &v_act, NULL) != 0) { LogWarning("sigaction failed"); debian/copyright0000644000000000000000000002001611734435130011121 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174 Upstream-Name: XMOTO Source: http://xmoto.tuxfamily.org/ Files: * Copyright: 2005-2006 Rasmus Neckelmann 2006-2011 Nicolas Adenis-Lamarre 2007-2011 Emmanuel Gorse 2009-2010 Jens Erler License: GPL-2+ Files: src/bzip2/* Copyright: 1996-2005 Julian R. Steward License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 3. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 4. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: src/md5sum/* Copyright: 1999, 2002 Aladdin Enterprises License: BSD This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Files: src/iqsort.h Copyright: 1991, 1992, 1996, 1997, 1999 Free Software Foundation, Inc. License: LGPL-2.1+ Files: src/glext.h Copyright: 1991-2004 Silicon Graphics, Inc. License: FreeB License Applicability. Except to the extent portions of this file are made subject to an alternative license as permitted in the SGI Free Software License B, Version 1.1 (the "License"), the contents of this file are subject only to the provisions of the License. You may not use this file except in compliance with the License. You may obtain a copy of the License at Silicon Graphics, Inc., attn: Legal Services, 1600 Amphitheatre Parkway, Mountain View, CA 94043-1351, or at: . http://oss.sgi.com/projects/FreeB . Note that, as provided in the License, the Software is distributed on an "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. Files: src/chipmunk/* Copyright: 2007 Scott Lembcke License: MIT Files: src/xdgbasedir/* Copyright: 2007 Mark Nevill License: MIT Files: src/intl/* Copyright: 1984-2006 Free Software Foundation, Inc. License: LGPL-2+ Files: debian/* Copyright: 2005-2009 Samuel Mimram 2008 Miriam Ruiz 2008-2009 Barry deFreese 2009 Gonéri Le Bouder 2011 Bruno "Fuddl" Kleinert 2011 Stephen Kitt 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems the full text of the GNU General Public License version 2 can be found in the `/usr/share/common-licenses/GPL-2' file. License: LGPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library 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 Library General Public License for more details. . You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems the full text of the GNU Library General Public License version 2 can be found in the `/usr/share/common-licenses/LGPL-2' file. License: LGPL-2.1+ The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . The GNU C Library 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 Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems the full text of the GNU Lesser General Public License version 2.1 can be found in the `/usr/share/common-licenses/LGPL-2.1' file. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/xmoto-data.install0000644000000000000000000000002711055066550012635 0ustar usr/share/games/xmoto/ debian/xmoto.dirs0000644000000000000000000000005111055066550011216 0ustar usr/share/applications usr/share/pixmaps debian/xmoto.menu0000644000000000000000000000013711055066550011226 0ustar ?package(xmoto):needs="X11" section="Games/Action"\ title="xmoto" command="/usr/games/xmoto"