From igor@doom.homeunix.org  Thu Dec 30 17:33:57 2004
Return-Path: <igor@doom.homeunix.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 6F74A16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Dec 2004 17:33:57 +0000 (GMT)
Received: from voodoo.oberon.net (voodoo.oberon.net [212.118.165.100])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 18C3043D39
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Dec 2004 17:33:57 +0000 (GMT)
	(envelope-from igor@doom.homeunix.org)
Received: from dialup84126-7.ip.peterstar.net ([84.204.126.7] helo=doom.homeunix.org)
	by voodoo.oberon.net with esmtps (TLSv1:AES256-SHA:256)
	(Exim 4.43 (FreeBSD))
	id 1Ck4AJ-000AHo-F7
	for FreeBSD-gnats-submit@freebsd.org; Thu, 30 Dec 2004 18:33:49 +0100
Received: from doom.homeunix.org (localhost [127.0.0.1])
	by doom.homeunix.org (8.13.1/8.13.1) with ESMTP id iBUHTO8E002402
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 Dec 2004 20:30:17 +0300 (MSK)
	(envelope-from igor@doom.homeunix.org)
Received: (from igor@localhost)
	by doom.homeunix.org (8.13.1/8.13.1/Submit) id iBUHSxMq002401;
	Thu, 30 Dec 2004 20:28:59 +0300 (MSK)
	(envelope-from igor)
Message-Id: <200412301728.iBUHSxMq002401@doom.homeunix.org>
Date: Thu, 30 Dec 2004 20:28:59 +0300 (MSK)
From: Igor Pokrovsky <ip@doom.homeunix.org>
Reply-To: Igor Pokrovsky <ip@doom.homeunix.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Update port: graphics/glew amd64 5.x fix
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75663
>Category:       ports
>Synopsis:       Update port: graphics/glew amd64 5.x fix
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 30 17:40:28 GMT 2004
>Closed-Date:    Wed Jan 12 05:13:38 GMT 2005
>Last-Modified:  Wed Jan 12 05:13:38 GMT 2005
>Originator:     Igor Pokrovsky
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD doom.homeunix.org 4.11-STABLE FreeBSD 4.11-STABLE #0: Wed Dec 29 21:12:21 MSK 2004 root@doom.homeunix.org:/usr/obj/usr/src/sys/KERNEL i386


	
>Description:
Fix problem on 64bit platforms (added -fPIC).
	
>How-To-Repeat:
	
>Fix:

	

--- glew.diff begins here ---
diff -ru /usr/ports/graphics/glew/files/patch-Makefile glew/files/patch-Makefile
--- /usr/ports/graphics/glew/files/patch-Makefile	Mon Apr  5 07:10:58 2004
+++ glew/files/patch-Makefile	Thu Dec 30 20:23:11 2004
@@ -1,41 +1,31 @@
---- Makefile.orig	Sun Dec 14 18:21:44 2003
-+++ Makefile	Sun Jan 25 07:38:41 2004
-@@ -83,6 +83,26 @@
- 
- else
+
+$FreeBSD$
+
+--- Makefile.orig
++++ Makefile
+@@ -121,17 +121,17 @@
  # ----------------------------------------------------------------------------
-+# FreeBSD
-+# ----------------------------------------------------------------------------
-+ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD)
-+NAME = GLEW
-+CC ?= gcc
+ ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD)
+ NAME = GLEW
+-CC = cc
+-LD = ld
++CC ?= cc
 +LD ?= ld
-+CFLAGS.EXTRA = -fPIC -I${X11BASE}/include
-+LDFLAGS.SO = -shared -soname $(LIB.SONAME)
-+LDFLAGS.EXTRA = -L${X11BASE}/lib
-+LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
-+GLEW_DEST = ${X11BASE}
-+WARN = -Wall -W
-+BIN.SUFFIX =
-+LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR)
-+LIB.DEVLNK = lib$(NAME).so
-+LIB.SHARED = lib$(NAME).so.$(GLEW_VERSION)
-+LIB.STATIC = lib$(NAME).a
-+
-+else
-+# ----------------------------------------------------------------------------
- # Irix
- # ----------------------------------------------------------------------------
- ifeq ($(patsubst IRIX%,IRIX,$(SYSTEM)), IRIX)
-@@ -158,6 +179,7 @@
- endif
+ ifneq (undefined, $(origin GLEW_MX))
+ CFLAGS.EXTRA = -DGLEW_MX
  endif
- endif
-+endif
- 
- AR = ar
- INSTALL = install
-@@ -171,7 +193,7 @@
+ LDFLAGS.SO = -shared -soname $(LIB.SONAME)
+-LDFLAGS.EXTRA = -L/usr/X11R6/lib
++LDFLAGS.EXTRA = -L${X11BASE}/lib
+ LDFLAGS.GL = -lXmu -lXi -lGLU -lGL -lXext -lX11
+ LDFLAGS.STATIC = -Wl,-Bstatic
+ LDFLAGS.DYNAMIC = -Wl,-Bdynamic
+-CFLAGS.EXTRA += -I/usr/X11R6/include
++CFLAGS.EXTRA += -I${X11BASE}/include -fPIC
+ NAME = GLEW
+ WARN = -Wall -W
+ POPT = -O2
+@@ -245,7 +245,7 @@
  STRIP = -s
  endif
  INCLUDE = -Iinclude
--- glew.diff ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Wed Jan 12 05:13:26 GMT 2005 
State-Changed-Why:  
Commited by krion 3 days ago. 
Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75663 
>Unformatted:
