#!/usr/bin/make -f

# No dbgsyms for MX repos
export DEB_BUILD_OPTIONS += noddebs  

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

include /usr/share/dpkg/architecture.mk

# openmp providing the same functionality is built
additional_confflags := -Dmodplug=false
ifeq ($(DEB_HOST_ARCH),armhf)
additional_confflags += -Dgl-spectrum=false
endif

export DEB_BUILD_MAINT_OPTIONS=hardening=+bindnow

%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- $(additional_confflags)

# Ummmm...why? Commenting this out
# override_dh_auto_clean:
#	-dh_auto_clean

override_dh_dwz:
