ports/75663: Update port: graphics/glew amd64 5.x fix
Igor Pokrovsky
ip at doom.homeunix.org
Thu Dec 30 17:40:29 UTC 2004
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Thu Dec 30 17:40:28 GMT 2004
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list