#! /usr/bin/make -f 

-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

%:
	dh $@ --no-parallel --with gnome,gir

override_dh_auto_configure:
	dh_auto_configure -- \
		--enable-debug --enable-gtk-doc

override_dh_makeshlibs:
	dh_makeshlibs -V -- -c4

override_dh_strip:
	dh_strip --dbgsym-migration='libgupnp-dlna-2.0-dbg (<< 0.10.5-2~)'

override_dh_install:
	# rename gupnp-dlna-*-2.0 binaries to not have the -2.0 postfix
	for program in debian/tmp/usr/bin/gupnp-dlna-*-2.0 ; do \
		mv $$program $${program%%-2.0} ; \
	done
	find debian/tmp -name '*.la' -delete
	dh_install --fail-missing
