#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=-lto
export DEB_CXXFLAGS_MAINT_APPEND = -Wl,-z,now
ffmpegthumbnailerpkgname := $(shell dpkg-query --show '--showformat=$${Depends}' libffmpegthumbnailer-dev | cut -d ' ' -f1)

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	  -DCMAKE_BUILD_TYPE=Release \
	  -DCMAKE_INSTALL_PREFIX=/usr \
	  -DAPP_VERSION=$(DEB_VERSION_UPSTREAM) -DVERSION=$(DEB_VERSION_UPSTREAM)

execute_after_dh_shlibdeps-arch:
	echo ffmpegthumbnailer:Depends=$(ffmpegthumbnailerpkgname) >> debian/deepin-album.substvars
