#!/usr/bin/make -f
# -*- makefile-gmake -*-
#
# 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

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure \
	  --buildsystem=cmake \
	  -- \
	  -DCMAKE_BUILD_TYPE=Release \
	  -DINSTALL_LIB_DIR=/usr/lib/$$(dpkg-architecture -qDEB_HOST_MULTIARCH) \
	  -DOVERRIDE_GIT_DESCRIBE=v$$(basename $$(pwd) | sed -e 's/^duckdb-//')
