#!/usr/bin/make -f

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

DEB_KDE_LINK_WITH_AS_NEEDED = yes
QT5_PATH = build/qt5/so
include /usr/share/pkg-kde-tools/makefiles/1/variables.mk

%:
	dh $@ --with pkgkde_symbolshelper

override_dh_auto_configure:
	mkdir -p $(QT5_PATH)
	QT_SELECT=qt5 dh_auto_configure -B$(QT5_PATH) -- -DBUILD_FINGERPRINT=TRUE -DBUILD_TESTS=FALSE -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON $(DEB_CMAKE_CUSTOM_FLAGS)

override_dh_auto_build:
	QT_SELECT=qt5 dh_auto_build -B$(QT5_PATH)

override_dh_auto_clean:
	dh_auto_clean -B$(QT5_PATH)

override_dh_auto_install:
	dh_auto_install -B$(QT5_PATH)

override_dh_strip:
	dh_strip --dbgsym-migration='liblastfm5-dbg (<< 1.1.0), liblastfm-fingerprint5-dbg (<< 1.1.0)'
