1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# Set binary version
include /usr/share/dpkg/pkg-info.mk
export COMPTON_VERSION = $(DEB_VERSION_UPSTREAM)
# Stop ninja from using 'ccache' as the compiler
export CC = "/usr/bin/cc"
%:
dh $@
ifneq (,$(filter armel m68k powerpc sh4,${DEB_HOST_ARCH}))
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81358
# these platforms requires explicit link with -libatomic
export DEB_LDFLAGS_MAINT_APPEND += -latomic
endif
override_dh_auto_configure:
dh_auto_configure -- -Dwith_docs=true -Dcompton=false
|