Bug 176749

Summary: [PATCH] graphics/fpc-opengl: fix glut support
Product: Ports & Packages Reporter: Dmitry Marakasov <amdmi3>
Component: Individual Port(s)Assignee: Jose Alonso Cardenas Marquez <acm>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Dmitry Marakasov freebsd_committer freebsd_triage 2013-03-08 14:20:00 UTC
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.

Fix: ---
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-08 14:20:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->acm

Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=176749 

Date: Sat, 23 Mar 2013 01:30:14 -0500
Comment 2 Jose Alonso Cardenas Marquez freebsd_committer freebsd_triage 2013-03-24 05:17:07 UTC
State Changed
From-To: open->feedback
Comment 3 Dmitry Marakasov 2013-05-20 19:55:39 UTC
* acm@FreeBSD.org (acm@FreeBSD.org) wrote:

> could you test following patch file?

This patch works fine, please commit

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-05-23 04:24:41 UTC
Author: amdmi3
Date: Thu May 23 03:24:28 2013
New Revision: 318833
URL: http://svnweb.freebsd.org/changeset/ports/318833

Log:
  - Fix glut library version
  
  PR:		176749
  Submitted by:	myself
  Approved by:	acm (maintainer via private email)

Added:
  head/graphics/fpc-opengl/files/
  head/graphics/fpc-opengl/files/patch-packages-opengl-src-glut.pp   (contents, props changed)
Modified:
  head/graphics/fpc-opengl/Makefile

Modified: head/graphics/fpc-opengl/Makefile
==============================================================================
--- head/graphics/fpc-opengl/Makefile	Thu May 23 03:21:20 2013	(r318832)
+++ head/graphics/fpc-opengl/Makefile	Thu May 23 03:24:28 2013	(r318833)
@@ -1,7 +1,7 @@
 # Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
 # $FreeBSD$
 
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	graphics lang
 PKGNAMESUFFIX=	-opengl
 

Added: head/graphics/fpc-opengl/files/patch-packages-opengl-src-glut.pp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/fpc-opengl/files/patch-packages-opengl-src-glut.pp	Thu May 23 03:24:28 2013	(r318833)
@@ -0,0 +1,19 @@
+--- packages/opengl/src/glut.pp	2013-03-23 01:19:14.000000000 -0500
++++ packages/opengl/src/glut.pp	2013-03-23 01:22:47.000000000 -0500
+@@ -765,13 +765,13 @@
+   {$ifdef darwin}
+   LoadGlut('/System/Library/Frameworks/GLUT.framework/GLUT');
+   {$else}
+-  {$IFDEF haiku}
++  {$if defined(haiku) or defined(freebsd)}
+   LoadGlut('libglut.so');
+-  {$ELSE}
++  {$else}
+   {$IFNDEF MORPHOS}
+   LoadGlut('libglut.so.3');
+   {$ENDIF}
+-  {$ENDIF}
++  {$endif}
+   {$endif}
+   {$ENDIF}
+ 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Dmitry Marakasov freebsd_committer freebsd_triage 2013-05-23 04:48:19 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!