#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

ifneq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
DOC= -Ddocs=disabled
endif


%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- $(DOC) \
		-Ddefault_lv2_path='~/.lv2:/usr/local/lib/lv2:/usr/lib/$(DEB_HOST_MULTIARCH)/lv2:/usr/lib/lv2'

ifneq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
override_dh_install-indep:
	echo "usr/share/doc/lilv-0/singlehtml/" has not bee built, skipping
endif

override_dh_installchangelogs:
	dh_installchangelogs NEWS
