#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

CONFIGURE_FLAGS =
DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_FLAGS += --with-jack --with-alsa --with-oss
else
CONFIGURE_FLAGS += --disable-realtime
endif


%:
	dh $@ --parallel

override_dh_auto_configure:
	cd config && \
	ln -f -s /usr/share/misc/config.guess && \
	ln -f -s /usr/share/misc/config.sub
	dh_auto_configure -- \
					--with-rawwaves=/usr/share/stk \
					$(CONFIGURE_FLAGS)

override_dh_installchangelogs:
	dh_installchangelogs doc/ReleaseNotes.txt
