#!/usr/bin/make -f

ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
	OSS4_OPTS = --with-oss4=/usr/include/linux
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- \
	--enable-chromecast \
	--enable-itunes \
	--enable-lastfm \
	--with-pulseaudio \
	--with-systemddir=`pkgconf --variable=systemd_util_dir systemd` \
	$(OSS4_OPTS)

#	exit 1

override_dh_auto_install:
	dh_auto_install

	find debian -name *.la -delete

override_dh_clean:
	dh_clean src/daap_query_hash.h src/dacp_prop_hash.h src/dmap_fields_hash.h
