forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linuxtv-dvb-apps-1.1.1.20100223-alevt.patch
37 lines (30 loc) · 1.38 KB
/
linuxtv-dvb-apps-1.1.1.20100223-alevt.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- linuxtv-dvb-apps-1.1.1.20100223/util/alevt/exp-gfx.c
+++ linuxtv-dvb-apps-1.1.1.20100223/util/alevt/exp-gfx.c
@@ -137,6 +137,7 @@
#ifdef WITH_PNG
+#include <zlib.h>
#include <png.h>
static int png_open(struct export *e);
static int png_option(struct export *e, int opt, char *arg);
--- linuxtv-dvb-apps-1.1.1.20100223/util/alevt/Makefile
+++ linuxtv-dvb-apps-1.1.1.20100223/util/alevt/Makefile
@@ -25,13 +25,13 @@
all: alevt alevt-date alevt-cap alevt.1 alevt-date.1 alevt-cap.1
alevt: $(OBJS)
- $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS)
+ $(CC) $(OPT) $(OBJS) -o alevt -L$(PREFIX)/lib -L$(PREFIX)/lib64 -lX11 $(EXPLIBS) $(LDFLAGS)
alevt-date: $(TOBJS)
- $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB)
+ $(CC) $(OPT) $(TOBJS) -o alevt-date $(ZVBILIB) $(LDFLAGS)
alevt-cap: $(COBJS)
- $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS)
+ $(CC) $(OPT) $(COBJS) -o alevt-cap $(EXPLIBS) $(LDFLAGS)
font.o: font1.xbm font2.xbm font3.xbm font4.xbm
fontsize.h: font1.xbm font2.xbm font3.xbm font4.xbm
@@ -73,7 +73,6 @@
install -m 0644 alevt.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m 0644 alevt-date.1 $(DESTDIR)$(PREFIX)/share/man/man1
install -m 0644 alevt-cap.1 $(DESTDIR)$(PREFIX)/share/man/man1
- install -m 0644 alevt.png $(DESTDIR)$(PREFIX)/share/pixmaps
install -m 0644 alevt.desktop $(DESTDIR)$(PREFIX)/share/applications
uninstall: clean