summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 45adb08d44c88342b4321bfb88c53911d583d148 (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
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
#!/usr/bin/make -f
# Copyright © 2002,2003 Colin Walters <walters@verbum.org>
# Copyright © 2003 Daniel Stone <daniels@debian.org>

binary/dbus-glib-1:: binary/dbus-1 
binary/dbus-qt-1:: binary/dbus-1
binary/dbus-1-utils:: binary/dbus-glib-1 
binary/python2.3-dbus::
	dh_python -ppython2.3-dbus

include /usr/share/cdbs/1/rules/simple-patchsys.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

ifeq ($(DEB_BUILD_ARCH),powerpc)
 MONO_FLAGS=--enable-mono --enable-mono-docs
endif
ifeq ($(DEB_BUILD_ARCH),amd64)
 MONO_FLAGS=--enable-mono --enable-mono-docs
endif
ifeq ($(DEB_BUILD_ARCH),i386)
 MONO_FLAGS=--enable-mono --enable-mono-docs
endif


DEB_CONFIGURE_EXTRA_FLAGS := --enable-glib --enable-qt --enable-gtk \
                             --enable-python --with-xml=expat --enable-docs \
														 --enable-xml-docs --enable-doxygen-docs \
														 --enable-verbose-mode \
														 $(MONO_FLAGS)

DEB_SHLIBDEPS_INCLUDE_dbus-glib-1 := debian/dbus-1/usr/lib/
DEB_SHLIBDEPS_INCLUDE_dbus-1-utils := debian/dbus-1/usr/lib/ debian/dbus-glib-1/usr/lib/
DEB_SHLIBDEPS_INCLUDE_dbus-qt-1 := debian/dbus-1/usr/lib/
DEB_SHLIBDEPS_INCLUDE_python2.3-dbus := debian/dbus-1/usr/lib/

DEB_DH_INSTALLINIT_ARGS := -r

# Strict library versioning
DEB_DH_MAKESHLIBS_ARGS_ALL := -V

export MONO_SHARED_DIR=$(CURDIR)

binary-predeb/libdbus-cil::
	dh_makeclilibs -V
	dh_clideps

common-configure-indep::
	mkdir -p $(MONO_SHARED_DIR)/.wapi

common-configure-impl::
	chmod +x py-compile

binary-post-install/dbus-1-dev::
	rm -f debian/dbus-1-dev/usr/include/dbus*/dbus/dbus-glib.h
	rm -f debian/dbus-1-dev/usr/include/dbus*/dbus/dbus-qt.h

binary-post-install/dbus-1-utils::
	mkdir -p debian/dbus-1-utils/etc/X11/Xsession.d
	cp debian/dbus-Xsession debian/dbus-1-utils/etc/X11/Xsession.d/75dbus-1-utils_dbus-launch

binary-post-install/dbus-1::
	mkdir -p debian/dbus-1/etc/dbus-1/event.d

binary-post-install/libdbus-cil::
	cd $(CURDIR)/debian/libdbus-cil && \
		find -type f -name "*.dll" -exec chmod -x {} \;

build/dbus-1-doc::
	doxygen Doxyfile

clean::
	rm -rf doc/api
	rm -rf $(MONO_SHARED_DIR)/.wapi