openbsd-ports/graphics/glew/patches/patch-Makefile
ajacoutot cf091e28ab Update to glew-1.9.0.
from Brad (maintainer)
2012-08-27 12:40:19 +00:00

81 lines
2.2 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.5 2012/08/27 12:40:19 ajacoutot Exp $
--- Makefile.orig Tue Jul 17 23:46:33 2012
+++ Makefile Fri Aug 3 04:37:01 2012
@@ -72,7 +72,7 @@ else
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
@@ -101,19 +101,9 @@ lib:
lib/$(LIB.STATIC): $(LIB.OBJS)
$(AR) cr $@ $^
-ifneq ($(STRIP),)
- $(STRIP) -x $@
-endif
lib/$(LIB.SHARED): $(LIB.SOBJS)
$(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
-ifneq ($(LN),)
- $(LN) $(LIB.SHARED) lib/$(LIB.SONAME)
- $(LN) $(LIB.SHARED) lib/$(LIB.DEVLNK)
-endif
-ifneq ($(STRIP),)
- $(STRIP) -x $@
-endif
tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
@mkdir -p $(dir $@)
@@ -143,13 +133,6 @@ lib/$(LIB.STATIC.MX): $(LIB.OBJS.MX)
lib/$(LIB.SHARED.MX): $(LIB.SOBJS.MX)
$(LD) $(LDFLAGS.SO.MX) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
-ifneq ($(LN),)
- $(LN) $(LIB.SHARED.MX) lib/$(LIB.SONAME.MX)
- $(LN) $(LIB.SHARED.MX) lib/$(LIB.DEVLNK.MX)
-endif
-ifneq ($(STRIP),)
- $(STRIP) -x $@
-endif
tmp/$(SYSTEM)/mx/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
@mkdir -p $(dir $@)
@@ -226,17 +209,11 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
else
$(INSTALL) -m 0644 lib/$(LIB.SHARED) $(LIBDIR)/
endif
-ifneq ($(LN),)
- $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.SONAME)
-endif
# development files
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK) $(LIBDIR)/
endif
-ifneq ($(LN),)
- $(LN) $(LIB.SHARED) $(LIBDIR)/$(LIB.DEVLNK)
-endif
$(INSTALL) -m 0644 lib/$(LIB.STATIC) $(LIBDIR)/
install.lib.mx: glew.lib.mx
@@ -248,15 +225,9 @@ ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
else
$(INSTALL) -m 0644 lib/$(LIB.SHARED.MX) $(LIBDIR)/
endif
-ifneq ($(LN),)
- $(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.SONAME.MX)
-endif
# development files
ifeq ($(filter-out mingw% cygwin,$(SYSTEM)),)
$(INSTALL) -m 0644 lib/$(LIB.DEVLNK.MX) $(LIBDIR)/
-endif
-ifneq ($(LN),)
- $(LN) $(LIB.SHARED.MX) $(LIBDIR)/$(LIB.DEVLNK.MX)
endif
$(INSTALL) -m 0644 lib/$(LIB.STATIC.MX) $(LIBDIR)/