#!/usr/bin/make -f
# -*- makefile -*-

# gcc 4.9 ICEs when building libwebp for arm64, use 4.8 for now
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=757738
DEB_HOST_ARCH ?= $(shell dpkg-architecture -q DEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH),arm64)
  export DEB_CFLAGS_MAINT_APPEND=-frename-registers
endif

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure --    \
	        -DCMAKE_INSTALL_RPATH="" \
	        -DBUILD_SHARED_LIBS=1 \
	        $(NULL)
