#!/usr/bin/make -f

PLATFORM = $(shell dpkg-architecture -qDEB_TARGET_GNU_CPU | sed -e "s/powerpc64le/ppc64le/")

override_dh_auto_configure:
	./configure						\
		--platform=$(PLATFORM)				\
		--includedir=/usr/include			\
		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH)		\
		--mandir=/usr/share/man				\
		--prefix=/usr					\
		--cores=2

override_dh_auto_test:
	make -j1 check

%:
	dh $@

.PHONY: build

