#!/usr/bin/make -f

PACKAGE = libpixman-1-0
SHLIBS  = 0.21.6

# Disable Gtk+ autodetection:
override_dh_auto_configure:
	dh_auto_configure -- --disable-gtk

# Install in debian/tmp to retain control through dh_install:
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp -name '*.la' -delete
	dh_install --fail-missing

# Debug package:
override_dh_strip:
	dh_strip --dbg-package=$(PACKAGE)-dbg

# Shlibs:
override_dh_makeshlibs:
	dh_makeshlibs -p$(PACKAGE) --add-udeb $(PACKAGE)-udeb -V"$(PACKAGE) (>= $(SHLIBS))" -- -c4

%:
	dh $@ --with quilt,autoreconf --builddirectory=build/
