diff options
author | Marcus von Appen <mva@FreeBSD.org> | 2014-08-17 13:09:59 +0000 |
---|---|---|
committer | Marcus von Appen <mva@FreeBSD.org> | 2014-08-17 13:09:59 +0000 |
commit | 0ccfc073ab9918f50f5685cc9016d61cae886a41 (patch) | |
tree | 49bc3839d6860f334b6fa935067d6e64447ec335 /graphics/glew/files | |
parent | c0f51fae12dae94c59e092199423a8f5b1c68b2c (diff) | |
download | ports-0ccfc073ab9918f50f5685cc9016d61cae886a41.tar.gz ports-0ccfc073ab9918f50f5685cc9016d61cae886a41.zip |
Notes
Diffstat (limited to 'graphics/glew/files')
-rw-r--r-- | graphics/glew/files/patch-Makefile | 20 | ||||
-rw-r--r-- | graphics/glew/files/patch-config_Makefile.freebsd | 34 | ||||
-rw-r--r-- | graphics/glew/files/patch-config__Makefile.freebsd | 18 |
3 files changed, 18 insertions, 54 deletions
diff --git a/graphics/glew/files/patch-Makefile b/graphics/glew/files/patch-Makefile deleted file mode 100644 index 5630144d9420..000000000000 --- a/graphics/glew/files/patch-Makefile +++ /dev/null @@ -1,20 +0,0 @@ ---- Makefile.orig 2013-07-22 16:11:22.000000000 +0200 -+++ Makefile 2013-10-03 21:24:28.000000000 +0200 -@@ -40,7 +40,7 @@ - $(error "Platform '$(SYSTEM)' not supported") - endif - --GLEW_DEST ?= /usr -+GLEW_DEST ?= $(PREFIX) - BINDIR ?= $(GLEW_DEST)/bin - LIBDIR ?= $(GLEW_DEST)/lib - INCDIR ?= $(GLEW_DEST)/include/GL -@@ -71,7 +71,7 @@ - OPT = $(POPT) - endif - INCLUDE = -Iinclude --CFLAGS = $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) -+CFLAGS += $(OPT) $(WARN) $(INCLUDE) $(CFLAGS.EXTRA) - - all debug: glew.lib glew.lib.mx glew.bin - diff --git a/graphics/glew/files/patch-config_Makefile.freebsd b/graphics/glew/files/patch-config_Makefile.freebsd deleted file mode 100644 index c48a4c3be498..000000000000 --- a/graphics/glew/files/patch-config_Makefile.freebsd +++ /dev/null @@ -1,34 +0,0 @@ -$FreeBSD$ ---- config/Makefile.freebsd.orig 2012-10-04 19:47:46.000000000 +0200 -+++ config/Makefile.freebsd 2012-10-04 19:49:06.000000000 +0200 -@@ -1,22 +1,22 @@ - NAME = $(GLEW_NAME) --CC = cc --LD = ld --LDFLAGS.EXTRA = -L/usr/X11R6/lib -+CC ?= cc -+LD ?= ld -+LDFLAGS.EXTRA = -L${LOCALBASE}/lib - LDFLAGS.GL = -lXmu -lXi -lGL -lXext -lX11 - LDFLAGS.STATIC = -Wl,-Bstatic - LDFLAGS.DYNAMIC = -Wl,-Bdynamic --CFLAGS.EXTRA += -I/usr/X11R6/include -+CFLAGS.EXTRA += -I${LOCALBASE}/include -fPIC - NAME = GLEW - WARN = -Wall -W - POPT = -O2 - BIN.SUFFIX = --LIB.SONAME = lib$(NAME).so.$(SO_MAJOR) -+LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR) - LIB.DEVLNK = lib$(NAME).so --LIB.SHARED = lib$(NAME).so.$(SO_VERSION) -+LIB.SHARED = lib$(NAME).so.$(GLEW_VERSION) - LIB.STATIC = lib$(NAME).a - LDFLAGS.SO = -shared -soname $(LIB.SONAME) --LIB.SONAME.MX = lib$(NAME)mx.so.$(SO_MAJOR) -+LIB.SONAME.MX = lib$(NAME)mx.so.$(GLEW_MAJOR) - LIB.DEVLNK.MX = lib$(NAME)mx.so --LIB.SHARED.MX = lib$(NAME)mx.so.$(SO_VERSION) -+LIB.SHARED.MX = lib$(NAME)mx.so.$(GLEW_VERSION) - LIB.STATIC.MX = lib$(NAME)mx.a - LDFLAGS.SO.MX = -shared -soname $(LIB.SONAME.MX) diff --git a/graphics/glew/files/patch-config__Makefile.freebsd b/graphics/glew/files/patch-config__Makefile.freebsd new file mode 100644 index 000000000000..5ce68f1d6002 --- /dev/null +++ b/graphics/glew/files/patch-config__Makefile.freebsd @@ -0,0 +1,18 @@ +--- ./config/Makefile.freebsd.orig 2014-08-16 08:35:01.000000000 +0200 ++++ ./config/Makefile.freebsd 2014-08-16 08:36:37.000000000 +0200 +@@ -1,11 +1,11 @@ + NAME = $(GLEW_NAME) +-CC = cc +-LD = ld +-LDFLAGS.EXTRA = -L/usr/X11R6/lib ++CC ?= cc ++LD ?= ld ++LDFLAGS.EXTRA ?= -L${LOCALBASE}/lib + LDFLAGS.GL = -lGL -lX11 + LDFLAGS.STATIC = -Wl,-Bstatic + LDFLAGS.DYNAMIC = -Wl,-Bdynamic +-CFLAGS.EXTRA += -I/usr/X11R6/include ++CFLAGS.EXTRA += -I${LOCALBASE}/include -fPIC + NAME = GLEW + WARN = -Wall -W + POPT = -O2 |