#!/usr/bin/make -f

# Use this variable to pass configure options for projectM to cmake
PROJECTM_CMAKE_FLAGS = \
		-DprojectM_FONT_TITLE="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf" \
		-DprojectM_FONT_MENU="/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf" \
		-DINCLUDE-PROJECTM-TEST=OFF \
		-DINCLUDE-PROJECTM-JACK=ON

# Define install target dir
INSTALLDIR = $(CURDIR)/debian/tmp

# ProjectM source and build dir
SRCDIR = $(CURDIR)/src
BUILDDIR = $(SRCDIR)/build

%:
	dh $@ --list-missing --sourcedirectory=$(SRCDIR) --builddirectory=$(BUILDDIR)
.PHONY: override_dh_strip

override_dh_auto_clean:
	dh_auto_clean
	# Make sure builddir is gone
	rm -rf $(BUILDDIR)

override_dh_auto_configure:
	dh_auto_configure -- $(PROJECTM_CMAKE_FLAGS)

override_dh_auto_install:
	dh_auto_install --destdir=$(INSTALLDIR)

override_dh_strip:
	dh_strip --dbg-package=projectm-dbg
