ports/graphics/glew/files/patch-config__Makefile.freebsd
Niclas Zeising 8def2204e8 Update to 2.1.0
Some hilights from release notes:
* adds support for OpenGL 4.6
* adds support for OSMesa and EGL
* Removes  support for MX and removes related libraries

Use upstream install target instead of our own do-install:
Fix the pkgconfig script to actually tell something at least closer to the
truth.
Add missing GL dependencies.
Library version bump.

PR:		223370
Submitted by:	zeising
exp-run by:	antoine
Approved by:	antoine
2017-11-18 19:32:30 +00:00

26 lines
756 B
Text

--- config/Makefile.freebsd.orig 2017-07-31 11:25:39 UTC
+++ config/Makefile.freebsd
@@ -1,17 +1,17 @@
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 -fPIC
+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)