archrelease: copy trunk to extra-x86_64
[arch-packages.git] / glew / trunk / glew-install.patch
blob7490c838946b2407f1130682bc2d6ba309cdf1f2
1 --- glew-2.2.0/Makefile 2020-03-15 12:53:59.000000000 +0100
2 +++ glew-2.2.0/Makefile 2020-04-17 11:51:25.568482195 +0200
3 @@ -120,7 +120,7 @@
4 endif
6 $(LIB.SHARED.DIR)/$(LIB.SHARED): $(LIB.SOBJS)
7 - $(LD) $(LDFLAGS.SO) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
8 + $(LD) $(LDFLAGS.SO) $(LDFLAGS) -o $@ $^ $(LIB.LDFLAGS) $(LIB.LIBS)
9 ifneq ($(LN),)
10 $(LN) $(LIB.SHARED) $(LIB.SHARED.DIR)/$(LIB.SONAME)
11 $(LN) $(LIB.SHARED) $(LIB.SHARED.DIR)/$(LIB.DEVLNK)
12 @@ -131,11 +131,11 @@
14 tmp/$(SYSTEM)/default/static/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
15 @mkdir -p $(dir $@)
16 - $(CC) -DGLEW_NO_GLU -DGLEW_STATIC $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
17 + $(CC) -DGLEW_NO_GLU -DGLEW_STATIC $(CFLAGS) $(CFLAGS.SO) $(LDFLAGS) -o $@ -c $<
19 tmp/$(SYSTEM)/default/shared/glew.o: src/glew.c include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
20 @mkdir -p $(dir $@)
21 - $(CC) -DGLEW_NO_GLU -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
22 + $(CC) -DGLEW_NO_GLU -DGLEW_BUILD $(CFLAGS) $(CFLAGS.SO) $(LDFLAGS) -o $@ -c $<
24 # Force re-write of glew.pc, GLEW_DEST can vary
26 @@ -180,13 +180,13 @@
27 mkdir bin
29 bin/$(GLEWINFO.BIN): $(GLEWINFO.BIN.OBJ) $(LIB.SHARED.DIR)/$(LIB.SHARED)
30 - $(CC) $(CFLAGS) -o $@ $(GLEWINFO.BIN.OBJ) $(BIN.LIBS)
31 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(GLEWINFO.BIN.OBJ) $(BIN.LIBS)
32 ifneq ($(STRIP),)
33 $(STRIP) -x $@
34 endif
36 bin/$(VISUALINFO.BIN): $(VISUALINFO.BIN.OBJ) $(LIB.SHARED.DIR)/$(LIB.SHARED)
37 - $(CC) $(CFLAGS) -o $@ $(VISUALINFO.BIN.OBJ) $(BIN.LIBS)
38 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(VISUALINFO.BIN.OBJ) $(BIN.LIBS)
39 ifneq ($(STRIP),)
40 $(STRIP) -x $@
41 endif
42 @@ -193,11 +193,11 @@
44 $(GLEWINFO.BIN.OBJ): $(GLEWINFO.BIN.SRC) include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
45 @mkdir -p $(dir $@)
46 - $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
47 + $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) $(LDFLAGS) -o $@ -c $<
49 $(VISUALINFO.BIN.OBJ): $(VISUALINFO.BIN.SRC) include/GL/glew.h include/GL/wglew.h include/GL/glxew.h
50 @mkdir -p $(dir $@)
51 - $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) -o $@ -c $<
52 + $(CC) -DGLEW_NO_GLU $(CFLAGS) $(CFLAGS.SO) $(LDFLAGS) -o $@ -c $<
54 # Install targets
56 --- glew-2.1.0/Makefile.install 2018-08-15 13:51:45.220637107 +0200
57 +++ glew-2.1.0/Makefile 2018-08-15 13:52:02.168740876 +0200
58 @@ -231,6 +231,7 @@ install.bin: glew.bin
60 install.include:
61 $(INSTALL) -d -m 0755 "$(DESTDIR)$(INCDIR)"
62 + $(INSTALL) -m 0644 include/GL/eglew.h "$(DESTDIR)$(INCDIR)/"
63 $(INSTALL) -m 0644 include/GL/wglew.h "$(DESTDIR)$(INCDIR)/"
64 $(INSTALL) -m 0644 include/GL/glew.h "$(DESTDIR)$(INCDIR)/"
65 $(INSTALL) -m 0644 include/GL/glxew.h "$(DESTDIR)$(INCDIR)/"
66 @@ -241,6 +242,7 @@ install.pkgconfig: glew.pc
67 $(INSTALL) -m 0644 glew.pc "$(DESTDIR)$(PKGDIR)/"
69 uninstall:
70 + $(RM) "$(DESTDIR)$(INCDIR)/eglew.h"
71 $(RM) "$(DESTDIR)$(INCDIR)/wglew.h"
72 $(RM) "$(DESTDIR)$(INCDIR)/glew.h"
73 $(RM) "$(DESTDIR)$(INCDIR)/glxew.h"