#!/usr/bin/make -f
#export DH_VERBOSE = 1

include /usr/share/dpkg/default.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
mpvpkgname := $(shell dpkg-query --show '--showformat=$${Depends}' libmpv-dev | cut -d ' ' -f1)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	  -DCMAKE_BUILD_TYPE=Release \
	  -DVERSION=$(DEB_VERSION_UPSTREAM)

execute_after_dh_shlibdeps-arch:
	echo libmpv:Depends=$(mpvpkgname) >> debian/deepin-movie.substvars
	echo libmpv:Depends=$(mpvpkgname) >> debian/libdmr0.1.substvars
