diff options
author | wiz <wiz@pkgsrc.org> | 2005-02-20 01:09:28 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2005-02-20 01:09:28 +0000 |
commit | 32166f6304b172a152dbaf896cf8c6ca78add8e7 (patch) | |
tree | 1f89365216f81a7a8395e7f5b4632f5beaf0702b | |
parent | 1c990db18fedc929f3bacfbad2835d080a4acd29 (diff) | |
download | pkgsrc-32166f6304b172a152dbaf896cf8c6ca78add8e7.tar.gz |
Use time(3) instead of ftime(3) and do not link against libcompat.
Should fix PR 29419.
-rw-r--r-- | games/lbreakout/distinfo | 6 | ||||
-rw-r--r-- | games/lbreakout/patches/patch-aa | 4 | ||||
-rw-r--r-- | games/lbreakout/patches/patch-ac | 19 |
3 files changed, 21 insertions, 8 deletions
diff --git a/games/lbreakout/distinfo b/games/lbreakout/distinfo index b725420e8ac..1fb19b470a7 100644 --- a/games/lbreakout/distinfo +++ b/games/lbreakout/distinfo @@ -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 --git a/games/lbreakout/patches/patch-aa b/games/lbreakout/patches/patch-aa index cf2272c0e29..bce3d387e89 100644 --- a/games/lbreakout/patches/patch-aa +++ b/games/lbreakout/patches/patch-aa @@ -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 @@ $NetBSD: patch-aa,v 1.3 2003/01/25 12:09:12 rh Exp $ 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 --git a/games/lbreakout/patches/patch-ac b/games/lbreakout/patches/patch-ac index e3c78a0d6db..095ef0d1891 100644 --- a/games/lbreakout/patches/patch-ac +++ b/games/lbreakout/patches/patch-ac @@ -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 @@ $NetBSD: patch-ac,v 1.2 2001/08/15 19:41:45 rh Exp $ #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 |