Disable the nvidia extension paths. The code in this unmaintained

version of foobillard seems to believe if one nvidia extension
is present the rest are.

Fixes build breakage after the mesa 11.0.6 update reported by naddy@
ok dcoppa@
This commit is contained in:
jsg 2015-11-24 03:13:26 +00:00
parent a994ddfd92
commit fcd62e1d6a
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.8 2014/07/11 11:20:32 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.9 2015/11/24 03:13:26 jsg Exp $
COMMENT = OpenGL billard game
@ -20,6 +20,7 @@ LIB_DEPENDS = graphics/png \
USE_GMAKE = Yes
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --enable-nvidia=no
CFLAGS = -DNO_NV_BUMPREF
.include <bsd.port.mk>

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-src_ball_c,v 1.1 2015/11/24 03:13:26 jsg Exp $
--- src/ball.c.orig Mon Nov 23 11:49:01 2015
+++ src/ball.c Mon Nov 23 11:49:30 2015
@@ -32,6 +32,7 @@
#include "options.h"
#include "font.h"
+#undef GL_VERTEX_PROGRAM_NV
#ifdef GL_VERTEX_ARRAY
#define USE_VERTEX_ARRAYS