#!/usr/bin/make -f

CONFIGURE_SWITCHES = --enable-ipv6 --with-bot --with-proxy --enable-true-color --with-perl-lib=vendor --disable-static

# enable DANE only on linux, libval doesn't compile on kfreebsd (yet)
ifneq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
	CONFIGURE_SWITCHES += --enable-dane
endif

%:
	dh $@ --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_SWITCHES)

override_dh_install:
	find debian/tmp -name '*.la' -delete
	dh_install

override_dh_strip:
	dh_strip --dbg-package=irssi-dbg
