sys-apps/dbus-stub: add
[sgilles-overlay.git] / sys-apps / dbus-stub / files / respect-destdir.patch
blob74d0458968d2cec073e6528e1227b4d7d783a8cd
1 diff --git a/Makefile b/Makefile
2 index 56f2ee9..64f08e9 100644
3 --- a/Makefile
4 +++ b/Makefile
5 @@ -1,14 +1,18 @@
6 .POSIX:
8 -PREFIX = /usr/local
9 -LIBDIR = ${PREFIX}/lib
10 -INCLUDEDIR = ${PREFIX}/include
11 +PREFIX ?= /usr
12 +LIBDIR ?= ${PREFIX}/lib64
13 +INCLUDEDIR ?= ${PREFIX}/include
15 XCFLAGS = \
16 - -std=c99 -O3 -DDBUS_COMPILATION -I. \
17 + -std=c99 -DDBUS_COMPILATION -I. \
18 -Wall -Wextra -pedantic -Wmissing-prototypes -Wstrict-prototypes \
19 -Wno-unused-parameter $(CFLAGS) $(CPPFLAGS)
21 +LDFLAGS ?=
23 +LDFLAGS += -Wl,-soname,libdbus.so.1
25 OBJ = \
26 dbus/dbus-address.o \
27 dbus/dbus-bus.o \
28 @@ -50,5 +54,6 @@ install: dbus-1.pc
29 cp -f libdbus-1.* $(DESTDIR)$(LIBDIR)
30 cp -f dbus-1.pc $(DESTDIR)$(LIBDIR)/pkgconfig
31 ln -sf libdbus-1.so $(DESTDIR)$(LIBDIR)/libdbus-1.so.3
32 + ln -sf libdbus-1.so $(DESTDIR)$(LIBDIR)/libdbus.so.1
34 .PHONY: all clean install
35 diff --git a/dbus-1.pc.in b/dbus-1.pc.in
36 index 7093deb..8b282e2 100644
37 --- a/dbus-1.pc.in
38 +++ b/dbus-1.pc.in
39 @@ -18,4 +18,4 @@ Description: Free desktop message bus
40 Version: 1.13.18
41 Libs: -L${libdir} -ldbus-1
42 Libs.private:
43 -Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include
44 +Cflags: -I${includedir}/dbus-1.0
45 diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
46 index a92330d..4284571 100644
47 --- a/dbus/dbus-message.c
48 +++ b/dbus/dbus-message.c
49 @@ -261,7 +261,9 @@ dbus_uint32_t dbus_message_get_reply_serial(
50 void dbus_message_set_auto_start(
51 DBusMessage *message,
52 dbus_bool_t auto_start
53 -);
54 +) {
58 dbus_bool_t dbus_message_get_auto_start(
59 DBusMessage *message