#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

# Needed for cross-building:
#
#   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853881
#
# According to the report, debhelper 10 supports this already, but I'd like to
# be compatible with older distros for now, so I still set this manually
export PKG_CONFIG := $(DEB_HOST_GNU_TYPE)-pkg-config
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --with python3

override_dh_auto_build:
	VERSION=$(shell echo $(DEB_VERSION) | sed "s/-.*//") make

override_dh_python3:
	dh_numpy3
	dh_python3

# don't compress docs
override_dh_compress:
	dh_compress -X.org -X.fig
