#!/usr/bin/make -f

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

# build simple version first #
override_dh_auto_configure:
	autoreconf -f -i
	dh_auto_configure  -- \
		LDFLAGS="-Wl,--as-needed" \
		--with-htmldir=/usr/share/doc/geeqie/html \
		--with-readmedir=/usr/share/doc/geeqie/ \
		--enable-lirc 

override_dh_auto_build:
	dh_auto_build
	convert geeqie.png -scale 32x32 geeqie.xpm

override_dh_auto_install:
	mkdir -p $(CURDIR)/debian/tmp/usr/share/doc/geeqie/html
	dh_auto_install

override_dh_compress:
	# Readme is shown from program, do not compress it
	dh_compress -XREADME

override_dh_strip:
	dh_strip -a --dbg-package=geeqie-dbg
