purple: make it compile against 3.0.X API
[siplcs.git] / contrib / debian / rules
blob59e2370ceb1ddc3eacb0dd169c03ecf41bafeba5
1 #!/usr/bin/make -f
3 include /usr/share/cdbs/1/class/autotools.mk
4 include /usr/share/cdbs/1/rules/debhelper.mk
6 DEB_CONFIGURE_EXTRA_FLAGS := --enable-purple
7 # detect if package telepathy-glib is available
8 ifneq ($(shell pkg-config --exists telepathy-glib && echo FOUND),)
9 DEB_CONFIGURE_EXTRA_FLAGS += --enable-telepathy
10 else
11 DEB_CONFIGURE_EXTRA_FLAGS += --disable-telepathy
12 endif
14 # run tests
15 DEB_MAKE_CHECK_TARGET := check
17 # don't run unnecessary ldconfig on postinst and postrm.
18 DEB_DH_MAKESHLIBS_ARGS_pidgin-sipe=-n
20 clean::
21 dh_testdir
23 # git snapshot does not contain a configure script
24 debian/stamp-autotools-files: $(DEB_CONFIGURE_SCRIPT)
25 $(DEB_BUILDDIR)/config.status: $(DEB_CONFIGURE_SCRIPT)
27 $(DEB_CONFIGURE_SCRIPT):
28 ./autogen.sh
30 binary-post-install/pidgin-sipe::
31 rm -f debian/pidgin-sipe/usr/share/doc/pidgin-sipe/README
32 rm -r debian/pidgin-sipe/usr/share/pixmaps/pidgin/protocols/24
33 rm -r debian/pidgin-sipe/usr/share/pixmaps/pidgin/protocols/32
34 rm debian/pidgin-sipe/usr/lib/purple-2/libsipe.la
36 .PHONY: update-debian-control