r2460 - in packages/trunk/late: debian src

Javier Galicia javier_galicia-guest at alioth.debian.org
Tue Mar 6 18:31:58 CET 2007


Author: javier_galicia-guest
Date: 2007-03-06 17:31:58 +0000 (Tue, 06 Mar 2007)
New Revision: 2460

Modified:
   packages/trunk/late/debian/changelog
   packages/trunk/late/debian/control
   packages/trunk/late/debian/rules
   packages/trunk/late/src/game.cpp
   packages/trunk/late/src/menu.cpp
   packages/trunk/late/src/scorescreen.cpp
Log:
Added dpatch & usleep patch

Modified: packages/trunk/late/debian/changelog
===================================================================
--- packages/trunk/late/debian/changelog	2007-03-06 16:56:10 UTC (rev 2459)
+++ packages/trunk/late/debian/changelog	2007-03-06 17:31:58 UTC (rev 2460)
@@ -3,8 +3,16 @@
   [ Eddy Petrișor ]
   * fixed Homepage semifield
 
- -- Eddy Petrișor <eddy.petrisor at gmail.com>  Wed, 26 Jul 2006 03:27:36 +0300
+  [ Anibal Montsalve]
+  * Set Standards-Version to 3.7.2
+  * Set debhelper compatibility to 5
 
+  [ Javier Galicia ]
+  * Added patch usleep
+  * Added Support to dpatch
+
+ -- Javier Galicia <javiergaliciaacm at gmail.com>  Tue, 06 Mar 2007 16:50:15 +0000
+
 late (0.1.0-9) unstable; urgency=low
 
   [ Gonéri Le Bouder ]

Modified: packages/trunk/late/debian/control
===================================================================
--- packages/trunk/late/debian/control	2007-03-06 16:56:10 UTC (rev 2459)
+++ packages/trunk/late/debian/control	2007-03-06 17:31:58 UTC (rev 2460)
@@ -2,9 +2,11 @@
 Section: games
 Priority: optional
 Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
-Build-Depends: debhelper (>> 4.0.0), libsdl-image1.2-dev, libsdl1.2-dev
-Standards-Version: 3.6.2
-Uploaders: Steve Kemp <skx at debian.org>
+Build-Depends: debhelper (>= 5), autotools-dev, libsdl-image1.2-dev, libsdl1.2-dev, dpatch
+Standards-Version: 3.7.2
+Uploaders: Steve Kemp <skx at debian.org>, Javier Galicia <javiergaliciaacm at gmail.com>
+XS-Vcs-Svn: svn://svn.debian.org/pkg-games/
+XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-games
 
 Package: late
 Architecture: any

Modified: packages/trunk/late/debian/rules
===================================================================
--- packages/trunk/late/debian/rules	2007-03-06 16:56:10 UTC (rev 2459)
+++ packages/trunk/late/debian/rules	2007-03-06 17:31:58 UTC (rev 2460)
@@ -4,8 +4,8 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+include /usr/share/dpatch/dpatch.make
 
-
 # These are used for cross-compiling and for saving the configure script
 # from having to guess our platform (since we know it already)
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
@@ -35,6 +35,12 @@
 
 config.status: configure
 	dh_testdir
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usre/share/misc/config.guess config.guess
+endif
 	# Add here commands to configure the package.
 	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --datadir=/usr/share/games --bindir=/usr/games
 
@@ -50,7 +56,8 @@
 
 	touch build-stamp
 
-clean:
+clean: clean-patches unpatch
+clean-patched:
 	dh_testdir
 	dh_testroot
 	rm -f build-stamp 
@@ -63,10 +70,8 @@
 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 	cp -f /usr/share/misc/config.guess config.guess
 endif
+	dh_clean config.log config.cache config.status
 
-
-	dh_clean
-
 install: build
 	dh_testdir
 	dh_testroot
@@ -107,4 +112,4 @@
 	dh_builddeb
 
 binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch

Modified: packages/trunk/late/src/game.cpp
===================================================================
--- packages/trunk/late/src/game.cpp	2007-03-06 16:56:10 UTC (rev 2459)
+++ packages/trunk/late/src/game.cpp	2007-03-06 17:31:58 UTC (rev 2460)
@@ -38,6 +38,7 @@
 #include "explosiveball.h"
 #include <fstream>
 #include <iostream>
+#include <unistd.h>
 #include "menu.h"
 #include "killerball.h"
 #include "magnet.h"
@@ -775,6 +776,7 @@
 {
   unsigned int ticks;
   unsigned int newticks;
+  unsigned int counter = 0;
 
   restartgame();
 
@@ -792,9 +794,12 @@
 	  add_highscore(toadd);
 	  return;
 	}
-      newticks = SDL_GetTicks();
-      update (float(newticks - ticks) / 5.0);
-      ticks = newticks;
+      if (counter%3 == 0) {
+          newticks = SDL_GetTicks();
+          update (float(newticks - ticks) / 5.0);
+          ticks = newticks;
+      }
+      ++counter;
       SDL_Event event;
       while(SDL_PollEvent(&event))
 	{
@@ -862,5 +867,6 @@
 	      ticks = SDL_GetTicks();  //pause the game
 	    }
 	}
+      usleep(10);
     }
 }

Modified: packages/trunk/late/src/menu.cpp
===================================================================
--- packages/trunk/late/src/menu.cpp	2007-03-06 16:56:10 UTC (rev 2459)
+++ packages/trunk/late/src/menu.cpp	2007-03-06 17:31:58 UTC (rev 2460)
@@ -22,6 +22,7 @@
 #include <string>
 #include <iostream>
 #include <SDL/SDL.h>
+#include <unistd.h>
 #include "text.h"
 #include "graphics.h"
 #include "menu.h"
@@ -152,5 +153,6 @@
 	      exit(0);
 	    }
 	}
+        usleep(50);
     }
 }

Modified: packages/trunk/late/src/scorescreen.cpp
===================================================================
--- packages/trunk/late/src/scorescreen.cpp	2007-03-06 16:56:10 UTC (rev 2459)
+++ packages/trunk/late/src/scorescreen.cpp	2007-03-06 17:31:58 UTC (rev 2460)
@@ -25,6 +25,7 @@
 #include "highscores.h"
 #include <SDL/SDL.h>
 #include <sstream>
+#include <unistd.h>
 using namespace std;
 
 static unsigned int font;
@@ -55,6 +56,7 @@
 	      exit(0);
 	    }
 	}
+      usleep(50);
     }
 }
 




More information about the Pkg-games-commits mailing list