#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

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

override_dh_auto_configure:
	# Work around aclocal.m4 getting patched before others
	# which matters on slow buildds
	touch aclocal.m4
	touch Makefile.in
	touch audio/Makefile.in
	touch video/Makefile.in
	touch config.h.in
	touch stamp-h.in
	touch configure

	dh_auto_configure -- --enable-mmx=no --enable-opengl-player=no

override_dh_install:
	dh_install --fail-missing -Xlibsmpeg.la
