blob: fa523d89fb8b6900f7d031ee01beec5a1a936da3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#!/usr/bin/make -f
# This ensures that cmake uses debian's version of hamlib
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
# Belt and Braces
export WSJT_SKIP_MANPAGES=1
# Debian Hardening
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
# GCC 16 (trixie) reports a -Wmaybe-uninitialized false positive in system
# Boost headers on armhf; demote that warning on armhf only. Must be set
# before buildflags.mk is included.
include /usr/share/dpkg/architecture.mk
ifeq ($(DEB_HOST_ARCH),armhf)
DEB_CXXFLAGS_MAINT_APPEND = -Wno-error=maybe-uninitialized
endif
# test_jtty_tbcc_list_decoder compares two code paths bit-for-bit on metric
# ties; FMA contraction (GCC default on aarch64) rounds them differently.
ifeq ($(DEB_HOST_ARCH),arm64)
DEB_FFLAGS_MAINT_APPEND = -ffp-contract=off
endif
DPKG_EXPORT_BUILDFLAGS := true
include /usr/share/dpkg/buildflags.mk
%:
dh $@
override_dh_auto_configure:
# look for documentation in /usr/share/doc/wsjtx instead of .../WSJT-X
dh_auto_configure -- -DCMAKE_INSTALL_DOCDIR=share/doc/wsjtx -DWSJT_BUILD_UTILS=ON
override_dh_installchangelogs:
# there are various files with upstream notes, NEWS is the most comprehensive one
dh_installchangelogs NEWS
override_dh_installdocs-indep:
dh_installdocs --indep
# Fix font-awesome from cloudflare
sed -i -e 's/https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/4.7.0\/css\/font-awesome.min.css/\/usr\/share\/fonts-font-awesome\/css\/font-awesome.min.css/g' \
debian/wsjtx-doc/usr/share/doc/wsjtx/wsjtx-main-*.html \
debian/tmp/usr/share/doc/wsjtx/wsjtx-main-*.html
# Create non-version-dependant filename
cd debian/wsjtx-doc/usr/share/doc/wsjtx && ln -s wsjtx-main-*.html wsjtx-main.html
override_dh_auto_test:
# C.UTF-8 to fix the test_frequency_editors test
# the release archive identity tests expect the pristine upstream tree
# (unexpanded $Format:%H$ placeholder, export-subst .gitattributes)
# ignore tests on i386, its FP math is different in too many places
LANG=C.UTF-8 xvfb-run dh_auto_test -- ARGS+=-E ARGS+=test_release || [ $(DEB_HOST_ARCH) = i386 ]
|