#!/usr/bin/make -f

export QT_SELECT := qt5

export DEB_CONFIGURE_EXTRA_FLAGS += --with-ffmpeg=/usr

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

DVBCUT_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
export CPPFLAGS += -DDVBCUT_VERSION=\"$(DVBCUT_VERSION)\"

%:
	dh $@ --buildsystem=autoconf --with=autoreconf,autotools-dev --parallel

override_dh_auto_clean:
	[ ! -f Makefile ] || make -f Makefile distclean
	dh_clean dvbcut.desktop src/Makefile configure
	dh_clean
	dh_auto_clean

override_dh_auto_install:

