forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pommed-1.31.patch
75 lines (54 loc) · 2.9 KB
/
pommed-1.31.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
diff -ru pommed-1.31~/gpomme/Makefile pommed-1.31/gpomme/Makefile
--- pommed-1.31~/gpomme/Makefile 2010-02-28 17:24:31.000000000 +0100
+++ pommed-1.31/gpomme/Makefile 2010-02-28 17:25:31.000000000 +0100
@@ -17,8 +17,8 @@
INOTIFY_CFLAGS = $(shell test -e /usr/include/sys/inotify.h || echo -DNO_SYS_INOTIFY_H)
-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS)
-LDFLAGS = -lpthread -lX11 $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS)
+CFLAGS += -Wall $(DBUS_CFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) $(CONFUSE_CFLAGS) $(GLADE_CFLAGS) $(INOTIFY_CFLAGS)
+LDFLAGS += -lpthread -lX11 $(DBUS_LIBS) $(DBUSGLIB_LIBS) $(GTK_LIBS) $(CONFUSE_LIBS) $(GLADE_LIBS)
SOURCES = gpomme.c theme.c conffile.c \
../client-common/dbus-client.c \
@@ -33,6 +33,7 @@
mo: $(MOFILES)
gpomme: $(OBJS) $(LIBS)
+ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS}
gpomme.o: gpomme.c gpomme.h theme.h ../client-common/dbus-client.h ../client-common/video-client.h
diff -ru pommed-1.31~/pommed/Makefile pommed-1.31/pommed/Makefile
--- pommed-1.31~/pommed/Makefile 2010-02-28 17:24:31.000000000 +0100
+++ pommed-1.31/pommed/Makefile 2010-02-28 17:26:20.000000000 +0100
@@ -18,9 +18,9 @@
TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H)
-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS)
+CFLAGS += -Wall $(DBUS_CFLAGS) $(ALSA_CFLAGS) $(AUDIOFILE_CFLAGS) $(CONFUSE_CFLAGS) $(INOTIFY_CFLAGS) $(TIMERFD_CFLAGS)
-LDFLAGS = -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS)
+LDFLAGS += -pthread -lrt $(DBUS_LIBS) $(ALSA_LIBS) $(AUDIOFILE_LIBS) $(CONFUSE_LIBS)
ifneq (, $(findstring ppc, $(ARCH)))
OFLIB ?=
@@ -52,6 +52,7 @@
CFLAGS += $(LIBPCI_CFLAGS)
LDFLAGS += $(LIBPCI_LIBS)
+ LIBS = $(LIBPCI_LIBS)
else
LIBS = /usr/lib/libpci.a
LDFLAGS += -lz
@@ -69,6 +70,7 @@
pommed: $(OBJS) $(LIBS)
+ ${CC} -o $@ ${OBJS} ${LIBS} ${LDFLAGS}
pommed.o: pommed.c pommed.h evloop.h kbd_backlight.h lcd_backlight.h cd_eject.h evdev.h conffile.h audio.h dbus.h beep.h
diff -ru pommed-1.31~/wmpomme/Makefile pommed-1.31/wmpomme/Makefile
--- pommed-1.31~/wmpomme/Makefile 2010-02-28 17:24:31.000000000 +0100
+++ pommed-1.31/wmpomme/Makefile 2010-02-28 17:26:42.000000000 +0100
@@ -5,8 +5,8 @@
TIMERFD_CFLAGS = $(shell test -e /usr/include/sys/timerfd.h || echo -DNO_SYS_TIMERFD_H)
-CFLAGS = -g -O2 -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS)
-LDFLAGS = -lrt -lXpm -lXext -lX11 $(DBUS_LIBS)
+CFLAGS += -Wall $(DBUS_CFLAGS) $(TIMERFD_CFLAGS)
+LDFLAGS += -lrt -lXpm -lXext -lX11 $(DBUS_LIBS)
SOURCES = wmgeneral.c wmpomme.c \
../client-common/dbus-client.c \
@@ -15,6 +15,7 @@
OBJS = $(SOURCES:%.c=%.o)
wmpomme: $(OBJS)
+ ${CC} -o $@ ${OBJS} ${LDFLAGS}
wmpomme.o: wmpomme.c wmgeneral.h wmpomme-master.xpm ../client-common/dbus-client.h