debian: implement Kerberos autodetection in rules
[siplcs.git] / contrib / opensuse-build-service / debian.rules
blobfdf36bb1a52a1af5514966ecbf312c5f1b1bd5ea
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 := --with-purple --without-telepathy
8 # autodetect Kerberos support
9 ifneq ($(shell krb5-config --version 2>/dev/null),)
10 DEB_CONFIGURE_EXTRA_FLAGS += --with-krb5=yes
11 endif
13 # Don't run unnecessary ldconfig on postinst and postrm.
14 DEB_DH_MAKESHLIBS_ARGS_pidgin-sipe=-n
16 clean::
17 dh_testdir
19 # git snapshot does not contain a configure script
20 $(DEB_BUILDDIR)/config.status: $(DEB_CONFIGURE_SCRIPT)
22 $(DEB_CONFIGURE_SCRIPT):
23 ./autogen.sh
25 binary-post-install/pidgin-sipe::
26 rm debian/pidgin-sipe/usr/share/doc/pidgin-sipe/README
27 rm debian/pidgin-sipe/usr/lib/purple-2/libsipe.la
29 .PHONY: update-debian-control