#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

# vera++ embeds the interpreter, so libpython and Boost.Python must be the same
# version.  Boost's CMake config otherwise takes the first libboost_python
# variant it globs, which paired 313 with libpython3.14 (#1140903).
PY3VER := $(shell py3versions -dv)

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure -- -DVERA_USE_SYSTEM_BOOST:BOOL=ON -DVERA_LUA:BOOL=OFF -DVERA_PYTHON:BOOL=ON -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DPYTHON_EXECUTABLE=/usr/bin/python$(PY3VER) -DBoost_PYTHON_VERSION=$(PY3VER)
