#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,now

ifeq ($(DEB_HOST_ARCH_OS),linux)
GTK_LAYER_SHELL = enabled
LINUX_DEPENDS = libgtk-layer-shell-dev (>= 0.8), libwayland-dev
else
GTK_LAYER_SHELL = disabled
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	    -D docs=true \
	    -D deprecated_warnings=false \
	    -D debian_derivative=true \
	    -D kbd-layout-controller=disabled \
	    -D gtk-layer-shell=$(GTK_LAYER_SHELL)

override_dh_gencontrol:
	dh_gencontrol -- -Vxapp:Linux-Depends="$(LINUX_DEPENDS)"

override_dh_python3:
	dh_python3
	dh_python3 -p mate-xapp-status-applet /usr/libexec/xapps
