#!/usr/bin/make -f

NULL =

ifeq ($(shell dpkg-vendor --query vendor),Debian)
    THEMING_PACKAGE = debian-lomiri-default-settings
endif

%:
	dh $@

override_dh_auto_configure:
#   TODO add touch session once we have lomiri-system-compositor in
	dh_auto_configure -- \
		-DENABLE_UBUNTU_ACCOUNTSSERVICE=$(if $(shell dpkg-vendor --derives-from Ubuntu && echo y),ON,OFF) \
		-DENABLE_TOUCH_SESSION=OFF \
		$(NULL)

# Debian's logo is in base-files, while Ubuntu's is in base-files
override_dh_gencontrol:
ifeq ($(shell dpkg-vendor --query vendor),Debian)
	dh_gencontrol -- \
	        -Vdistrotheme:Recommends=$(THEMING_PACKAGE) \
	        $(NULL)
else
	dh_gencontrol
endif

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..
