#!/usr/bin/make -f
# You must remove unused comment lines for the released package.
#export DH_VERBOSE = 1
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
#	dh $@ --buildsystem=cmake 
	dh $@ --with autoreconf 

override_dh_auto_configure:
	dh_auto_configure --sourcedirectory=gstplayer-1.0 \
	                  --buildsystem=qmake
	dh_auto_configure --sourcedirectory=plugin/projection \
	                  --buildsystem=qmake
	dh_auto_configure -O--buildsystem=cmake
override_dh_auto_build:
	dh_auto_build --sourcedirectory=gstplayer-1.0 \
	              --buildsystem=qmake
	dh_auto_build --sourcedirectory=plugin/projection \
	              --buildsystem=qmake
	dh_auto_build -O--buildsystem=cmake
override_dh_auto_clean:
	dh_auto_clean --sourcedirectory=gstplayer-1.0 \
	              --buildsystem=qmake
	dh_auto_clean --sourcedirectory=plugin/projection \
	              --buildsystem=qmake
	dh_auto_clean -O--buildsystem=cmake
	dh_autoreconf_clean -O--buildsystem=cmake
	dh_clean -O--buildsystem=cmake
#override_dh_autoreconf:
#	dh_autoreconf -- ./autogen.sh
override_dh_installsystemd:
	dh_installsystemd --restart-after-upgrade miracle-wifid.service
