Bug 203748

Summary: [patch] games/foobillard: Fix linking for libGL and no NVIDIA
Product: Ports & Packages Reporter: Kenneth Salerno <kennethsalerno>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: thomas, w.litter
Priority: --- Keywords: patch
Version: LatestFlags: thomas: maintainer-feedback+
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Patch to fix linking error in foobillard-3.0a none

Description Kenneth Salerno 2015-10-13 18:38:57 UTC
Created attachment 161993 [details]
Patch to fix linking error in foobillard-3.0a

src/ball.c checks if GL_VERTEX_PROGRAM_NV is defined, which is part of libGL's /usr/local/include/GL/glex.h by default for some reason even if no NVIDIA support is installed in the system...

This patch will define what needs to be defined to make ball.c compile but undef's the GL_VERTEX_PROGRAM_NV part so the missing function "glProgramParameter4fNV" linking error goes away.
Comment 1 thomas 2015-10-13 18:57:27 UTC
Hello.

I'am not able to test it at the moment but the patch looks ok. Please commit it. Thank you very much for fixing it.
Regards,
Tom
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-11-14 23:11:24 UTC
A commit references this bug:

Author: amdmi3
Date: Sat Nov 14 23:10:28 UTC 2015
New revision: 401615
URL: https://svnweb.freebsd.org/changeset/ports/401615

Log:
  - Unbreak build

  PR:		203748
  Submitted by:	kennethsalerno@yahoo.com
  Approved by:	thomas@bsdunix.ch (maintainer)

Changes:
  head/games/foobillard/Makefile