diff options
author | vs <vs@FreeBSD.org> | 2005-01-21 19:34:27 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-01-21 19:34:27 +0800 |
commit | 0890793359f698cf12f9aee48da20fdfc663135a (patch) | |
tree | 28602e71d1978129e15433e4f13544dfcf62ce13 /graphics | |
parent | 08f2e0f5a5e7faaa5f8d3975369de5d6f3b59e59 (diff) | |
download | freebsd-ports-gnome-0890793359f698cf12f9aee48da20fdfc663135a.tar.gz freebsd-ports-gnome-0890793359f698cf12f9aee48da20fdfc663135a.tar.zst freebsd-ports-gnome-0890793359f698cf12f9aee48da20fdfc663135a.zip |
Fix stupid bug introduced by previous commit.
PR: ports/76512
Submitted by: maintainer
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/glew/files/patch-Makefile | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/graphics/glew/files/patch-Makefile b/graphics/glew/files/patch-Makefile index 7ef8e4dc9cc5..b0c832533afd 100644 --- a/graphics/glew/files/patch-Makefile +++ b/graphics/glew/files/patch-Makefile @@ -3,47 +3,34 @@ $FreeBSD$ --- Makefile.orig +++ Makefile -@@ -143,6 +143,26 @@ - - else +@@ -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) -@@ -228,6 +248,7 @@ - endif + ifneq (undefined, $(origin GLEW_MX)) + CFLAGS.EXTRA = -DGLEW_MX endif - endif -+endif - - ifeq (undefined, $(origin SHARED_OBJ_EXT)) - SHARED_OBJ_EXT = o -@@ -245,7 +266,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 -CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) -+CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) -fPIC ++CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) LIB.SRCS = src/glew.c LIB.OBJS = $(LIB.SRCS:.c=.o) |