#!/usr/bin/make -f

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

ifeq ($(DEB_BUILD_ARCH),i386)
additional_confflags := --disable-sse2
endif

%:
	dh $@ --parallel --with autoreconf

override_dh_auto_configure:
	sh autogen.sh
	dh_auto_configure -- --disable-rpath $(additional_confflags) --disable-silent-rules \
	 --with-ffmpeg=libav --enable-qt --disable-sndio

override_dh_strip:
	dh_strip --dbg-package=audacious-plugins-dbg

override_dh_auto_clean:
	dh_auto_clean || true
	rm -f config.log

override_dh_builddeb:
	dh_builddeb -- -Z xz
