#!/usr/bin/make -f DEB_BUILD_MAINT_OPTIONS = hardening=+all DEB_CFLAGS_MAINT_APPEND = -D_FORTIFY_SOURCE=2 DEB_CXXFLAGS_MAINT_APPEND = -D_FORTIFY_SOURCE=2 export DEB_BUILD_MAINT_OPTIONS DEB_CFLAGS_MAINT_APPEND DEB_CXXFLAGS_MAINT_APPEND SMOOTH_CONFIG = systemlibbz2 SMOOTH_CONFIG += systemlibcpuid SMOOTH_CONFIG += systemlibcurl SMOOTH_CONFIG += systemlibfribidi SMOOTH_CONFIG += systemlibiconv SMOOTH_CONFIG += systemlibjpeg SMOOTH_CONFIG += systemlibpng SMOOTH_CONFIG += systemlibwebp SMOOTH_CONFIG += systemlibxml2 SMOOTH_CONFIG += systemzlib # Replace space with comma in Smooth config list because some of the Makefile # rule will strip the double quote and the configs will be recognize as targets. empty := comma := , space := $(empty) $(empty) SMOOTH_MAKE_CONFIG := $(subst $(space),$(comma),$(strip $(SMOOTH_CONFIG))) %: dh $@ override_dh_auto_build: dh_auto_build -- prefix=/usr config="$(SMOOTH_MAKE_CONFIG)" override_dh_auto_install: dh_auto_install -- prefix=/usr config="$(SMOOTH_MAKE_CONFIG)"