summaryrefslogtreecommitdiff
path: root/graphics/glew/files
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-01-01 18:26:52 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-01-01 18:26:52 +0000
commit5952de42a03511c010f25b42706ae432b53ff713 (patch)
treec01a2efe163d9f81d219e8b39e93ef21707aa3cb /graphics/glew/files
parent- Update to 1.2.3 (diff)
Add glew 1.1.4,
The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++ OpenGL developers with two tedious tasks: initializing and using extensions and writing portable applications. GLEW provides an efficient run-time mechanism to determine whether a certain extension is supported by the driver or not. OpenGL core and extension functionality is exposed via a single header file. PR: 60717 Submitted by: Igor Pokrovsky <tiamat@comset.net>
Notes
Notes: svn path=/head/; revision=97041
Diffstat (limited to 'graphics/glew/files')
-rw-r--r--graphics/glew/files/patch-Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/graphics/glew/files/patch-Makefile b/graphics/glew/files/patch-Makefile
new file mode 100644
index 000000000000..f87da6ab5f7c
--- /dev/null
+++ b/graphics/glew/files/patch-Makefile
@@ -0,0 +1,47 @@
+--- Makefile.orig Sun Dec 14 18:21:44 2003
++++ Makefile Wed Dec 31 06:25:49 2003
+@@ -83,6 +83,27 @@
+
+ else
+ # ----------------------------------------------------------------------------
++# FreeBSD
++# ----------------------------------------------------------------------------
++ifeq ($(patsubst FreeBSD%,FreeBSD,$(SYSTEM)), FreeBSD)
++NAME = GLEW
++CC ?= gcc
++LD ?= ld
++CFLAGS.EXTRA = -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
++POPT = -O2
++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
+ endif
+ endif
++endif
+
+ AR = ar
+ INSTALL = install
+@@ -171,7 +193,7 @@
+ STRIP = -s
+ endif
+ INCLUDE = -Iinclude
+-CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
++CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA)
+
+ LIB.SRCS = src/glew.c
+ LIB.OBJS = $(LIB.SRCS:.c=.o)