biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / green-pdfviewer / gdk-libs.patch
blobcfcab32aac997d1cc64a33287dcb3a517b48f970
1 Common subdirectories: green.old/debian and green.new/debian
2 diff -u green.old/green.h green.new/green.h
3 --- green.old/green.h 2016-06-12 18:11:56.779434416 -0700
4 +++ green.new/green.h 2016-06-12 18:14:38.830557379 -0700
5 @@ -19,7 +19,14 @@
8 #include <stdbool.h>
9 -#include "glib/poppler.h"
10 +#include "poppler.h"
11 +#include "gdk-pixbuf/gdk-pixbuf.h"
12 +#include "gdk-pixbuf/gdk-pixbuf-core.h"
13 +#include "gdk-pixbuf/gdk-pixbuf-features.h"
14 +#include "gdk-pixbuf/gdk-pixbuf-enum-types.h"
16 + #define GREEN_FULLSCREEN 0x0001
20 #define GREEN_FULLSCREEN 0x0001
21 diff -u green.old/Makefile green.new/Makefile
22 --- green.old/Makefile 2016-06-12 18:11:56.779434416 -0700
23 +++ green.new/Makefile 2016-06-12 18:13:09.591974048 -0700
24 @@ -17,6 +17,12 @@
25 SDL_CFLAGS := $$(sdl-config --cflags)
26 SDL_LIBS := $$(sdl-config --libs)
28 +GDKPIXBUF_CFLAGS := $$(pkg-config gdk-pixbuf-2.0 --cflags)
29 +GDKPIXBUF_LIBS := $$(pkg-config gdk-pixbuf-2.0 --libs)
31 +GTK_CFLAGS := $$(pkg-config gtk+-2.0 --cflags)
32 +GTK_LIBS := $$(pkg-config gtk+-2.0 --libs)
35 all: green
37 @@ -28,13 +34,14 @@
38 $(INSTALL) green.1 $(MANDIR)/man1/
40 green: main.o green.o sdl.o
41 - $(CC) $^ $(POPPLER_LIBS) $(SDL_LIBS) -o $@
42 + $(CC) $^ $(POPPLER_LIBS) $(SDL_LIBS) $(GDKPIXBUF_LIBS) $(GTK_LIBS) -o $@
44 main.o: main.c green.h
45 - $(CC) $(CONFIG) $(CFLAGS) -c $< $(POPPLER_CFLAGS) -o $@
46 + $(CC) $(CONFIG) $(CFLAGS) $(GDKPIXBUF_CFLAGS) -c $< $(POPPLER_CFLAGS) -o $@
48 green.o: green.c green.h
49 - $(CC) $(CFLAGS) -c $< $(POPPLER_CFLAGS) -o $@
50 + $(CC) $(CFLAGS) -c $< $(POPPLER_CFLAGS) $(GDKPIXBUF_CFLAGS) -o $@
52 sdl.o: sdl.c green.h
53 - $(CC) $(CFLAGS) -c $< $(POPPLER_CFLAGS) $(SDL_CFLAGS) -o $@
54 + $(CC) $(CFLAGS) -c $< $(POPPLER_CFLAGS) $(SDL_CFLAGS) $(GDKPIXBUF_CFLAGS) $(GTK_CFLAGS) -o $@