diff options
author | tnn <tnn@pkgsrc.org> | 2015-09-21 14:00:10 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2015-09-21 14:00:10 +0000 |
commit | 7fe205a9f95f3bc333cb171f3afa82de7625f9bf (patch) | |
tree | d7b4d6ef2d0a5ad42e63d2e9f0051383a0c259a3 /games | |
parent | cb63cbd7de2f50f449aa6a046904475c56f4d0c4 (diff) | |
download | pkgsrc-7fe205a9f95f3bc333cb171f3afa82de7625f9bf.tar.gz |
Disable some legacy vertex programs to make this build.
(This package is outdated and should be replaced with foobillardplus which
is a continuation of this code.)
Diffstat (limited to 'games')
-rw-r--r-- | games/foobillard/Makefile | 7 | ||||
-rw-r--r-- | games/foobillard/distinfo | 3 | ||||
-rw-r--r-- | games/foobillard/patches/patch-src_ball.c | 13 |
3 files changed, 21 insertions, 2 deletions
diff --git a/games/foobillard/Makefile b/games/foobillard/Makefile index 938694e87f3..a4c6d1b0675 100644 --- a/games/foobillard/Makefile +++ b/games/foobillard/Makefile @@ -1,6 +1,9 @@ -# $NetBSD: Makefile,v 1.27 2015/04/25 14:22:55 tnn Exp $ +# $NetBSD: Makefile,v 1.28 2015/09/21 14:00:10 tnn Exp $ # +# This package should be replaced with +# http://foobillardplus.sourceforge.net/ + DISTNAME= foobillard-3.0a PKGREVISION= 14 CATEGORIES= games @@ -23,6 +26,8 @@ CONFIGURE_ARGS+= --enable-nvidia=no .include "../../devel/SDL/buildlink3.mk" .endif +CPPFLAGS+= -DNO_NV_FRESNEL + .include "../../devel/zlib/buildlink3.mk" .include "../../graphics/freetype2/buildlink3.mk" .include "../../graphics/glu/buildlink3.mk" diff --git a/games/foobillard/distinfo b/games/foobillard/distinfo index 1a76730b452..6ad0cc6cd7f 100644 --- a/games/foobillard/distinfo +++ b/games/foobillard/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.6 2012/03/02 15:44:54 hans Exp $ +$NetBSD: distinfo,v 1.7 2015/09/21 14:00:10 tnn 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) = 1a2cda246cc6adee230766d932916acebe4e2086 +SHA1 (patch-src_ball.c) = df99e45140e58036701bbe4c24a201dcbbfc8729 diff --git a/games/foobillard/patches/patch-src_ball.c b/games/foobillard/patches/patch-src_ball.c new file mode 100644 index 00000000000..90a7a2016e2 --- /dev/null +++ b/games/foobillard/patches/patch-src_ball.c @@ -0,0 +1,13 @@ +$NetBSD: patch-src_ball.c,v 1.1 2015/09/21 14:00:11 tnn Exp $ + +--- src/ball.c.orig 2004-02-23 01:09:01.000000000 +0000 ++++ src/ball.c +@@ -1820,7 +1820,7 @@ void draw_balls( BallsType balls, myvec + draw_ball(&balls.ball[i],cam_pos,cam_FOV,win_width,1); + } else if( options_cuberef && cuberef_binds!=0 ){ + glBindTexture(GL_TEXTURE_CUBE_MAP_ARB, cuberef_binds[i]); +-#ifdef GL_VERTEX_PROGRAM_NV ++#if defined(GL_VERTEX_PROGRAM_NV) && defined(USE_BALL_FRESNEL) + { + myvec cam_pos2; + // cam_pos2=vec_scale(vec_unit(vec_diff(cam_pos,balls.ball[i].r)),BALL_D/2.5); |