#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	  -DCMAKE_INSTALL_BINDIR=/usr/games \
	  -DSTANDALONE_INSTALL=FALSE \
	  -DSTEAM=FALSE \
	  -DUSE_VENDORED_PHYSFS=FALSE \
	  -DUSE_VENDORED_SDL=FALSE

execute_after_dh_auto_install:
# Wanted documentations will be installed using dh_installdocs
	rm -rfv $(CURDIR)/debian/maelstrom/usr/share/doc/
# Do not ship the empty mods directory
	rmdir $(CURDIR)/debian/maelstrom/usr/share/Maelstrom/mods
