#!/usr/bin/make -f
export DH_VERBOSE=1
export DEB_BUILD_OPTIONS += noautodbgsym

%:
	dh $@ --buildsystem=cmake

override_dh_auto_clean:
	rm -f JUCE
	dh_auto_clean

override_dh_auto_configure:
	ln -sf /usr/src/JUCE-8.0.10 \
		JUCE
	dh_auto_configure -- \
		-DCMAKE_BUILD_TYPE=Release \
		-DVST2SDKPATH=/usr/include/vst24 \
		-DIEM_BUILD_STANDALONE=ON \
		-DIEM_BUILD_LV2=ON \
		-DIEM_BUILD_VST2=ON \
		-DIEM_BUILD_VST3=ON \
		-DIEM_POST_BUILD_INSTALL=NO

override_dh_auto_install:
