#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND="-Wl,--as-needed"

# export DH_VERBOSE=1


%:
	dh $@ --with python2,python3,pkgkde-symbolshelper --buildsystem=pybuild

override_dh_auto_configure:
	dh_auto_configure -- --configure-args \
	       "-DPHP_BINDINGS=OFF \
	        -DPYTHON_BINDINGS=ON \
	        -DPYTHON_INSTALL_DIR={install_dir}"

override_dh_missing:
	dh_missing --fail-missing

override_dh_auto_test-arch:
	-xvfb-run -- dh_auto_test

override_dh_shlibdeps:
	dh_shlibdeps -- -xkdepim-runtime
