summaryrefslogtreecommitdiff
path: root/games/foobillard
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2003-09-25 04:41:39 +0000
committerxtraeme <xtraeme>2003-09-25 04:41:39 +0000
commit40953193c4fb3a434625cbf845984b3fb73260c7 (patch)
tree78cfbee849a9c6c3118b81d16dcccc21e3f71803 /games/foobillard
parent31902bc3c38222afc0175cd03eba40cc33792bdb (diff)
downloadpkgsrc-40953193c4fb3a434625cbf845984b3fb73260c7.tar.gz
Initial import of foobillard 2.8. Package imported from pkgsrc-wip.
Foobillard is a free OpenGL-billard game for Unix with realistic physics, AI-player and many gametypes like pool carambol or snooker. The following features are implemented: - wood paneled table with gold covers and gold diamonds - reflections on balls - shadow pixmaps - detail switching of balls according to distance - zoom in/out - hold right mousebutton - FOV +/- - hold right mousebutton + CTRL - rotate - hold left mousebutton - animated queue - simple billard rules for 8 and 9-ball - simple AI-Player - strength adjustment - eccentic hit adjustment (button2+Shift) - lensflare - commandline options - config file (~/.foobillardrc) - red green stereo !!!! - sound (using SDL) - network play
Diffstat (limited to 'games/foobillard')
-rw-r--r--games/foobillard/DESCR23
-rw-r--r--games/foobillard/Makefile32
-rw-r--r--games/foobillard/PLIST34
-rw-r--r--games/foobillard/distinfo5
-rw-r--r--games/foobillard/patches/patch-aa37
5 files changed, 131 insertions, 0 deletions
diff --git a/games/foobillard/DESCR b/games/foobillard/DESCR
new file mode 100644
index 00000000000..fa65b00f796
--- /dev/null
+++ b/games/foobillard/DESCR
@@ -0,0 +1,23 @@
+Foobillard is a free OpenGL-billard game for Unix with realistic physics,
+AI-player and many gametypes like pool carambol or snooker.
+
+The following features are implemented:
+
+ - wood paneled table with gold covers and gold diamonds
+ - reflections on balls
+ - shadow pixmaps
+ - detail switching of balls according to distance
+ - zoom in/out - hold right mousebutton
+ - FOV +/- - hold right mousebutton + CTRL
+ - rotate - hold left mousebutton
+ - animated queue
+ - simple billard rules for 8 and 9-ball
+ - simple AI-Player
+ - strength adjustment
+ - eccentic hit adjustment (button2+Shift)
+ - lensflare
+ - commandline options
+ - config file (~/.foobillardrc)
+ - red green stereo !!!!
+ - sound (using SDL)
+ - network play
diff --git a/games/foobillard/Makefile b/games/foobillard/Makefile
new file mode 100644
index 00000000000..e97a8316ac6
--- /dev/null
+++ b/games/foobillard/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/09/25 04:41:39 xtraeme Exp $
+#
+
+DISTNAME= foobillard-2.8
+CATEGORIES= games
+MASTER_SITES= http://foobillard.sunsite.dk/dnl/
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= http://foobillard.sunsite.dk/
+COMMENT= Free OpenGL-billard game
+
+USE_BUILDLINK2= yes
+USE_GMAKE= yes
+USE_X11= yes
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "FreeBSD" || ${OPSYS} == "Linux"
+CONFIGURE_ARGS+= --enable-glut
+.include "../../graphics/glut/buildlink2.mk"
+.else
+CONFIGURE_ARGS+= --enable-nvidia=no
+.include "../../devel/SDL/buildlink2.mk"
+.endif
+
+.include "../../devel/zlib/buildlink2.mk"
+.include "../../graphics/freetype2/buildlink2.mk"
+.include "../../graphics/MesaLib/buildlink2.mk"
+.include "../../graphics/png/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/foobillard/PLIST b/games/foobillard/PLIST
new file mode 100644
index 00000000000..61684106a0d
--- /dev/null
+++ b/games/foobillard/PLIST
@@ -0,0 +1,34 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/09/25 04:41:39 xtraeme Exp $
+bin/foobillard
+share/foobillard/ball_ball.raw
+share/foobillard/blende.png
+share/foobillard/bluebold.ttf
+share/foobillard/bumpref.png
+share/foobillard/cue_shadow.png
+share/foobillard/foobillard.gif
+share/foobillard/foobillard.png
+share/foobillard/full_symbol.png
+share/foobillard/fullhalf_symbol.png
+share/foobillard/half_symbol.png
+share/foobillard/iomanoid.ttf
+share/foobillard/lightflare.png
+share/foobillard/negx.png
+share/foobillard/negy.png
+share/foobillard/negz.png
+share/foobillard/place_cue_ball.png
+share/foobillard/posx.png
+share/foobillard/posy.png
+share/foobillard/posz.png
+share/foobillard/queue.png
+share/foobillard/queue_shadow.png
+share/foobillard/shadow2.png
+share/foobillard/shadow3.png
+share/foobillard/shadow_alpha.png
+share/foobillard/sphere_map_128x128.png
+share/foobillard/sphere_map_128x128_light.png
+share/foobillard/sphere_map_64x64.png
+share/foobillard/table-frame.png
+share/foobillard/tabletex_fB_128x128.png
+share/foobillard/tabletex_fB_256x256.png
+share/foobillard/youregon.ttf
+@dirrm share/foobillard
diff --git a/games/foobillard/distinfo b/games/foobillard/distinfo
new file mode 100644
index 00000000000..4f632b6c776
--- /dev/null
+++ b/games/foobillard/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/09/25 04:41:39 xtraeme Exp $
+
+SHA1 (foobillard-2.8.tar.gz) = 306a083a6555a30f3df6cf075635e6c7acef1495
+Size (foobillard-2.8.tar.gz) = 1098364 bytes
+SHA1 (patch-aa) = c795240b99d152355b8d4dbe5d1736daf5e50c57
diff --git a/games/foobillard/patches/patch-aa b/games/foobillard/patches/patch-aa
new file mode 100644
index 00000000000..d5b1a27b8ce
--- /dev/null
+++ b/games/foobillard/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/09/25 04:41:39 xtraeme Exp $
+
+--- src/billard3d.c.orig 2003-08-19 06:04:36.000000000 +0200
++++ src/billard3d.c 2003-08-19 06:07:00.000000000 +0200
+@@ -24,7 +24,14 @@
+ #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__
++#include <sys/endian.h>
++#else
+ #include <endian.h>
++#endif
+
+ #ifndef USE_SDL
+ #include <GL/glut.h>
+@@ -4934,7 +4941,7 @@
+
+ /* config file */
+ load_config( &confv, &confc, argv, argc );
+- while( ( act_option = getopt_long_only(confc, confv, "+", long_options, &option_index) ) >= 0){
++ while( ( act_option = getopt_long(confc, confv, "+", long_options, &option_index) ) >= 0){
+ DPRINTF("processing option %d=%s\n",act_option,optarg);
+ process_option(act_option);
+ }
+@@ -5032,7 +5039,7 @@
+ fread( &ball_ball_snd.data[SOUND_NULLOFFS*2], 1, ball_ball_snd.len-SOUND_NULLOFFS*2*2 , f );
+ fclose(f);
+
+-#if __BYTE_ORDER == __BIG_ENDIAN
++#if _BYTE_ORDER == _BIG_ENDIAN
+ {
+ char *snd=ball_ball_snd.data;
+ for(i=0;i<ball_ball_snd.len;i+=2)