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