#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

# Circumvent GCC-10 FTBFS
### A common mistake in C is omitting extern when declaring a global variable in
### a header file. If the header is included by several files it results in
### multiple definitions of the same variable. In previous GCC versions this
### error is ignored. GCC 10 defaults to -fno-common, which means a linker error
### will now be reported.
export DEB_CFLAGS_MAINT_APPEND = -fcommon

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	    -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib/${DEB_HOST_MULTIARCH} \
	    -DUSE_DYNAMIC_LIBASS:BOOL=True
