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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	# The following line will block the build after #993791 is solved.
	# When the build is blocked, remove this override and check the patch 030.
	cat /usr/include/obs/obs-frontend-api.h | egrep 'include <util/darray\.h>' || exit 1
	dh_auto_configure

override_dh_install:
	mkdir -p debian/obs-move-transition/usr/lib/${DEB_TARGET_MULTIARCH}/obs-plugins
	find -name libmove-transition.so -exec cp {} \
              debian/obs-move-transition/usr/lib/${DEB_TARGET_MULTIARCH}/obs-plugins/move-transition.so \;
	dh_install
