#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-z,defs

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-cpu-opt \
		--disable-dogs \
		--disable-nonfree-graphics

override_dh_auto_install:
	dh_auto_install -- \
		docdir=/usr/share/doc/prboom-plus \
		doc_DATA="AUTHORS README TODO"

override_dh_builddeb:
	dh_builddeb -- -Zxz

override_dh_install:
	dh_install -p prboom-plus -X prboom-plus-game-server
	dh_install -N prboom-plus

override_dh_installchangelogs:
	dh_installchangelogs NEWS
