blob: ba7697bffa982d8877f9f84997d42f8f7fd3f1fd (
plain)
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
|
#!/usr/bin/make -f
# Copyright © 2002,2003 Colin Walters <walters@verbum.org>
# Copyright © 2003 Daniel Stone <daniels@debian.org>
# Copyright © 2006 Sjoerd Simons <sjoerd@debian.org>
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
libdbusN := $(shell sed -rn 's/Package:[[:space:]]*(libdbus-[0-9-]+)[[:space:]]*$$/\1/p' debian/control | head -n 1)
DEB_DH_MAKESHLIBS_ARGS_ALL = -V '$(libdbusN) (>= 1.2.14)'
LDFLAGS += -Wl,--as-needed
# List any files which are not installed
common-binary-post-install-arch:: list-missing
DEB_CONFIGURE_LIBEXECDIR := "\$${prefix}/lib/dbus-1.0"
DEB_CONFIGURE_EXTRA_FLAGS += \
--enable-xml-docs \
--enable-doxygen-docs
DEB_DH_INSTALLINIT_ARGS := -r -- start 12 2 3 4 5 . stop 88 1 .
ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel i386))
common-configure-impl::
# workaround for a bug in binutils on mipsen (see #532821 and #528145)
sed -i -e 's/\-fPIE//' -e 's/\-pie\ \-Wl\,\-z\,relro//' bus/Makefile
endif
binary-post-install/dbus-x11::
mkdir -p debian/dbus-x11/etc/X11/Xsession.d
cp debian/dbus-Xsession debian/dbus-x11/etc/X11/Xsession.d/75dbus_dbus-launch
build/dbus-1-doc::
doxygen Doxyfile
xsltproc -o dbus.devhelp debian/doxygen_to_devhelp.xsl doc/api/xml/index.xml
clean::
rm -rf doc/api
rm -f test/data/valid-config-files/session.conf
rm -f test/data/valid-config-files/system.conf
rm -f doc/*.html
rm -f dbus.devhelp
|