#!/usr/bin/make -f
%:
	dh $@ --parallel --buildsystem=cmake

override_dh_auto_configure:
ifneq (,$(filter %-doc,$(shell dh_listpackages)))
	dh_auto_configure -- -DBUILD_DOC=ON -DDOCDIR="/usr/share/doc/liblensfun-doc/html"
else
	dh_auto_configure -- -DBUILD_DOC=OFF
endif

override_dh_auto_clean:
	find -name "*.pyc" -exec rm -f '{}' \;
	dh_auto_clean

override_dh_install:
	dh_install --list-missing

override_dh_makeshlibs:
	dh_makeshlibs -V 'liblensfun0 (>= 0.2.8)'
