#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_CONFIGURE_EXTRA_FLAGS := \
	--enable-sdl \
	--enable-sdlimage \
	--enable-opengl \
	--enable-allegro

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_install:
	dh_install
	find  $(CURDIR)/debian/libguichan-dev/usr/lib/$(DEB_HOST_MULTIARCH)/ \
		-type f -name lib\*.a \
		-exec strip --remove-section=.comment {} \;
