#!/usr/bin/make -f

CFLAGS += -Wno-error
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

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

override_dh_auto_configure:
	dh_auto_configure -- \
	--with-package-name="GStreamer FFMPEG Plugins"
	
override_dh_installdocs:
	dh_installdocs -A NEWS

override_dh_strip:
	dh_strip --dbg-package gstreamer0.10-ffmpeg-dbg
	dh_gstscancodecs

#override_dh_auto_clean:
#	[ ! -f Makefile ] || $(MAKE) clean

override_dh_clean:
	dh_clean stamp-h1 docs/version.entities config.h config.log \
	config.status libtool

#	find -name *.pc | xargs -r rm
#	find -name Makefile | xargs -r rm
