#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DDPSO_UI=qt \
		-DDPSO_QT_VERSION=5

override_dh_auto_install:
	dh_auto_install

	# Remove .txt extension from the changelog
	mv debian/dpscreenocr/usr/share/doc/dpscreenocr/changelog.txt debian/dpscreenocr/usr/share/doc/dpscreenocr/changelog

	# Remove extra license
	rm -f debian/dpscreenocr/usr/share/doc/dpscreenocr/LICENSE.txt
