Bug 203748 - [patch] games/foobillard: Fix linking for libGL and no NVIDIA
Summary: [patch] games/foobillard: Fix linking for libGL and no NVIDIA
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Marakasov
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2015-10-13 18:38 UTC by Kenneth Salerno
Modified: 2015-11-14 23:11 UTC (History)
2 users (show)

See Also:
thomas: maintainer-feedback+


Attachments
Patch to fix linking error in foobillard-3.0a (604 bytes, patch)
2015-10-13 18:38 UTC, Kenneth Salerno
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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