#!/usr/bin/make -f
# Originally made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.
# Rewritten to use dh, by Balint Reczey

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This has to be exported to make some magic below work.
export DH_OPTIONS

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-lastfm --enable-mpd --enable-itunes --enable-chromecast --with-pulseaudio

override_dh_auto_install:
	cp $(CURDIR)/forked-daapd.service debian/
	dh_auto_install
	rm debian/forked-daapd/usr/lib/*/forked-daapd/forked-daapd-sqlext.la

override_dh_installinit:
	dh_installinit -- defaults 25

override_dh_makeshlibs:
	dh_makeshlibs -n

override_dh_installdocs:
	dh_installdocs -XNEWS

override_dh_clean:
	dh_clean
	rm -f debian/forked-daapd.service
