#!/usr/bin/make -f

SRC_NAME:=gmpc-plugins
DEV_NAME:=$(SRC_NAME)-dev
DBG_NAME:=$(SRC_NAME)-dbg
DEB_DH_STRIP_ARGS:=--dbg-package=$(DBG_NAME)

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-lyricwiki \
		--disable-jamendo \
		--disable-magnatune \
		--disable-tagedit \
		--disable-wikipedia \
		--disable-albumview

override_dh_strip:
	dh_strip $(DEB_DH_STRIP_ARGS)

override_dh_install:
	mv debian/tmp/usr/lib/gmpc/plugins/awnplugin.so \
	   debian/tmp/usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/gmpc/plugins
	dh_install

override_dh_clean:
	dh_clean
	rm -f config.status config.log
