pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/lbreakout Use time(3) instead of ftime(3) and do...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0fec4da5130c
branches:  trunk
changeset: 489362:0fec4da5130c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Feb 20 01:09:28 2005 +0000

description:
Use time(3) instead of ftime(3) and do not link against libcompat.
Should fix PR 29419.

diffstat:

 games/lbreakout/distinfo         |   6 +++---
 games/lbreakout/patches/patch-aa |   4 ++--
 games/lbreakout/patches/patch-ac |  19 ++++++++++++++++---
 3 files changed, 21 insertions(+), 8 deletions(-)

diffs (63 lines):

diff -r a144ef89cdb9 -r 0fec4da5130c games/lbreakout/distinfo
--- a/games/lbreakout/distinfo  Sun Feb 20 01:03:30 2005 +0000
+++ b/games/lbreakout/distinfo  Sun Feb 20 01:09:28 2005 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.4 2003/01/25 12:09:11 rh Exp $
+$NetBSD: distinfo,v 1.5 2005/02/20 01:09:28 wiz Exp $
 
 SHA1 (lbreakout-010315.tar.gz) = 9385f4690aee645955acb23d8481957aaaf0e2fb
 Size (lbreakout-010315.tar.gz) = 655418 bytes
-SHA1 (patch-aa) = b17cf4a529748481e8a63df7ec9907caef6156f5
+SHA1 (patch-aa) = 06b9b215f277f61a52272afa1d82e6df157bd104
 SHA1 (patch-ab) = 27dd2449c2f9a9e3e08410531ecaf2365b194a71
-SHA1 (patch-ac) = 6e0c3b9cdbbdec8a2bf47c46a52590c57b4fe706
+SHA1 (patch-ac) = 0dd6692789e41eb0f32d34dc2f4efd9efc1fec8a
diff -r a144ef89cdb9 -r 0fec4da5130c games/lbreakout/patches/patch-aa
--- a/games/lbreakout/patches/patch-aa  Sun Feb 20 01:03:30 2005 +0000
+++ b/games/lbreakout/patches/patch-aa  Sun Feb 20 01:09:28 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2003/01/25 12:09:12 rh Exp $
+$NetBSD: patch-aa,v 1.4 2005/02/20 01:09:28 wiz Exp $
 
 --- configure.orig     Thu Mar 15 10:05:08 2001
 +++ configure  Tue Aug 14 20:05:05 2001
@@ -7,7 +7,7 @@
    else
      SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
 -    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
-+    SDL_LIBS="`$SDL_CONFIG $sdlconf_args --libs` ${PTHREAD_LIBS} -lcompat"
++    SDL_LIBS="`$SDL_CONFIG $sdlconf_args --libs` ${PTHREAD_LIBS}"
  
      sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
             sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
diff -r a144ef89cdb9 -r 0fec4da5130c games/lbreakout/patches/patch-ac
--- a/games/lbreakout/patches/patch-ac  Sun Feb 20 01:03:30 2005 +0000
+++ b/games/lbreakout/patches/patch-ac  Sun Feb 20 01:09:28 2005 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ac,v 1.2 2001/08/15 19:41:45 rh Exp $
+$NetBSD: patch-ac,v 1.3 2005/02/20 01:09:28 wiz Exp $
 
---- lbreakout/game.cpp.orig    Sun Mar 11 11:53:45 2001
-+++ lbreakout/game.cpp Tue Aug 14 20:03:12 2001
+--- lbreakout/game.cpp.orig    2001-03-11 17:53:45.000000000 +0100
++++ lbreakout/game.cpp
 @@ -15,6 +15,8 @@
   *                                                                         *
   ***************************************************************************/
@@ -11,3 +11,16 @@
  #include <sys/timeb.h>
  #include <stdlib.h>
  #include <string.h>
+@@ -196,9 +198,9 @@ Game::Game()
+     CheckLevelFile();
+ 
+     //randomize
+-    timeb t;
+-    ftime(&t);
+-    srand((unsigned int)t.time);
++    time_t t;
++    time(&t);
++    srand((unsigned int)t);
+       
+ #ifdef SOUND  
+       //load waves



Home | Main Index | Thread Index | Old Index