#!/usr/bin/make -f DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Enable SSE only on amd64, since its part of the base architecture: FLAGS= CONFFLAGS= ifeq ($(DEB_HOST_ARCH_CPU),$(filter $(DEB_HOST_ARCH_CPU),amd64)) CONFFLAGS = --enable-sse=2 else CONFFLAGS = --enable-sse=no endif FLAGS += -ffast-math CFLAGS += $(FLAGS) CXXFLAGS += $(FLAGS) %: dh $@ override_dh_auto_configure: # change --libdir to install lv2's .so where they correspond dh_auto_configure -- \ --enable-lv2=yes \ --enable-cli=yes \ --enable-resampler \ --with-test=yes \ --libdir=/usr/lib/ \ --enable-largefile \ --disable-silent-rules \ $(CONFFLAGS) override_dh_auto_install: dh_auto_install # remove french manpages in the wrong place find debian/drumgizmo/usr/share/man -name '*fr.1*' -delete