2014-09-08 23:14:59 +02:00
|
|
|
#!/usr/bin/make -f
|
2015-02-14 16:50:54 +01:00
|
|
|
# export DH_VERBOSE=1
|
2014-09-08 23:14:59 +02:00
|
|
|
|
2016-10-18 00:23:18 +02:00
|
|
|
export LC_ALL=C.UTF-8
|
2015-08-22 09:25:27 +08:00
|
|
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
2016-10-18 00:23:18 +02:00
|
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
2014-09-08 23:14:59 +02:00
|
|
|
|
2020-04-09 15:19:28 +05:30
|
|
|
WHICH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
|
|
|
|
|
|
|
|
ifeq ($(WHICH_OS), hurd)
|
|
|
|
NOT_LINUX := -DBUILD_BACKLIGHT_LINUX_BACKEND=NO
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(WHICH_OS), kfreebsd)
|
|
|
|
NOT_LINUX := -DBUILD_BACKLIGHT_LINUX_BACKEND=NO
|
|
|
|
endif
|
|
|
|
|
2014-09-08 23:14:59 +02:00
|
|
|
%:
|
2017-12-04 03:08:16 +01:00
|
|
|
dh ${@} --buildsystem cmake
|
|
|
|
|
|
|
|
override_dh_missing:
|
|
|
|
dh_missing --fail-missing
|
2016-10-18 00:23:18 +02:00
|
|
|
|
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- \
|
2020-04-09 15:19:28 +05:30
|
|
|
-DUPDATE_TRANSLATIONS=OFF \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
$(NOT_LINUX)
|