ports/176749: [PATCH] graphics/fpc-opengl: fix glut support
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Mar 8 14:20:00 UTC 2013
>Number: 176749
>Category: ports
>Synopsis: [PATCH] graphics/fpc-opengl: fix glut support
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 08 14:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Marakasov
>Release: FreeBSD 9.0-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Wed Jun 13 17:39:20 MSK 2012 root at hades.panopticon:/usr/obj/usr/src/sys/HADES amd64
>Description:
fpc opengl module has hardcoded libglut.so.3 for GLUT library, while freeglut on FreeBSD uses libglut.so.12, and it should anyway be just libglut.so. The patch fixes this and is required for games/hedgewars update.
>How-To-Repeat:
>Fix:
---
Index: Makefile
===================================================================
--- Makefile (revision 313649)
+++ Makefile (working copy)
@@ -5,7 +5,7 @@
# $FreeBSD$
#
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics lang
PKGNAMESUFFIX= -opengl
Index: files/patch-packages-opengl-src-glut.pp
===================================================================
--- files/patch-packages-opengl-src-glut.pp (revision 0)
+++ files/patch-packages-opengl-src-glut.pp (working copy)
@@ -0,0 +1,19 @@
+Index: packages/opengl/src/glut.pp
+===================================================================
+--- packages/opengl/src/glut.pp (revision 23728)
++++ packages/opengl/src/glut.pp (working copy)
+@@ -768,13 +768,9 @@
+ {$ifdef darwin}
+ LoadGlut('/System/Library/Frameworks/GLUT.framework/GLUT');
+ {$else}
+- {$IFDEF haiku}
++ {$IFNDEF MORPHOS}
+ LoadGlut('libglut.so');
+- {$ELSE}
+- {$IFNDEF MORPHOS}
+- LoadGlut('libglut.so.3');
+ {$ENDIF}
+- {$ENDIF}
+ {$endif}
+ {$ENDIF OS2}
+ {$ENDIF}
---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list