#!/usr/bin/make -f

DPKG_EXPORT_BUILD_FLAGS = 1

include /usr/share/dpkg/buildflags.mk

ifndef TERM
CONFIG_EXTRA=--without-terminfo
endif

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	./configure $(CONFIG_EXTRA) \
		--prefix=/usr \
		--bindir=/usr/games \
		--mandir=/usr/share/man \
		--enable-desktop

