pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/foobillard Add DragonFly support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f1869016113
branches:  trunk
changeset: 510137:4f1869016113
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Mar 28 19:37:43 2006 +0000

description:
Add DragonFly support.

diffstat:

 games/foobillard/distinfo         |   4 ++--
 games/foobillard/patches/patch-aa |  12 +++++-------
 2 files changed, 7 insertions(+), 9 deletions(-)

diffs (52 lines):

diff -r 9d159e814618 -r 4f1869016113 games/foobillard/distinfo
--- a/games/foobillard/distinfo Tue Mar 28 18:07:52 2006 +0000
+++ b/games/foobillard/distinfo Tue Mar 28 19:37:43 2006 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 23:11:57 agc Exp $
+$NetBSD: distinfo,v 1.5 2006/03/28 19:37:43 joerg Exp $
 
 SHA1 (foobillard-3.0a.tar.gz) = 1caa51a201b55883640b5c5b1e9fde20fc71a095
 RMD160 (foobillard-3.0a.tar.gz) = 9d5a2d271ca270563592c5f6cf23533447c51483
 Size (foobillard-3.0a.tar.gz) = 1138477 bytes
-SHA1 (patch-aa) = 6606dbaefef1d811c5a7aa542884903ca606d514
+SHA1 (patch-aa) = 966973b8a1f7768f1a93c70eb73b6398b0b0e397
diff -r 9d159e814618 -r 4f1869016113 games/foobillard/patches/patch-aa
--- a/games/foobillard/patches/patch-aa Tue Mar 28 18:07:52 2006 +0000
+++ b/games/foobillard/patches/patch-aa Tue Mar 28 19:37:43 2006 +0000
@@ -1,15 +1,13 @@
-$NetBSD: patch-aa,v 1.2 2004/04/27 13:08:40 adam Exp $
+$NetBSD: patch-aa,v 1.3 2006/03/28 19:37:43 joerg Exp $
 
 --- src/billard3d.c.orig       2004-04-24 01:20:49.000000000 +0000
 +++ src/billard3d.c
-@@ -24,7 +24,14 @@
+@@ -24,7 +24,12 @@
  #include <string.h>
  #include <math.h>
  #include <unistd.h>
 +#include <sys/param.h>
-+#ifdef __FreeBSD__ && __FreeBSD_version >= 500000
-+#include <sys/endian.h>
-+#elif defined __NetBSD__
++#if (defined(__FreeBSD__) && __FreeBSD_version >= 500000) || defined(__DragonFly__) || defined(__NetBSD__)
 +#include <sys/endian.h>
 +#else
  #include <endian.h>
@@ -17,7 +15,7 @@
  
  #ifndef USE_SDL
  #include <GL/glut.h>
-@@ -5000,7 +5007,7 @@ int main( int argc, char *argv[] )
+@@ -5000,7 +5005,7 @@ int main( int argc, char *argv[] )
  
     /* config file */
     load_config( &confv, &confc, argv, argc );
@@ -26,7 +24,7 @@
         DPRINTF("processing option %d=%s\n",act_option,optarg);
         process_option(act_option);
     }
-@@ -5098,7 +5105,7 @@ int main( int argc, char *argv[] )
+@@ -5098,7 +5103,7 @@ int main( int argc, char *argv[] )
         fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
         fclose(f);
  



Home | Main Index | Thread Index | Old Index