#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Ensure texlive respects SOURCE_DATE_EPOCH
export FORCE_SOURCE_DATE=1

# FIXME: upstream has created configure with autoconf that does not know --runstatedir=/run 
#        unfortunately recreating configure depends from some macros that are not provided
#        so cheating for the moment, disable autoreconf and stick to debhelper 10

%:
	dh $@ --without autoreconf

override_dh_auto_build:
	dh_auto_build
	cd Doc && ( latex man ; latex man ; dvipdfm man )

override_dh_auto_configure:
	dh_auto_configure -- --enable-static --enable-dependency-linking

override_dh_auto_install:
	dh_auto_install --
	$(RM) debian/tmp/usr/share/coin/doc/SYMPHONY/LICENSE
	chrpath -d debian/tmp/usr/bin/symphony

override_dh_clean:
	dh_clean --exclude=Makefile.orig
