#!/usr/bin/make -f
# debian/rules for the Debian libxi package.
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>
# Copyright © 2005 Daniel Stone <daniel@fooishbar.org>
# Copyright © 2005 David Nusinow <dnusinow@debian.org>

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# set this to the name of the main shlib's binary package
PACKAGE = libxi6

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		--with-xmlto \
		--without-fop

execute_before_dh_install:
	find $(CURDIR)/debian/tmp -name "*.la" -type f -delete
	find $(CURDIR)/debian/tmp -name "*.db" -type f -delete
	find $(CURDIR)/debian/tmp -name "*.xml" -type f -delete

override_dh_makeshlibs:
	dh_makeshlibs -V'libxi6 (>= 2:1.6.99.1)' --add-udeb=$(PACKAGE)-udeb -- -c4
