blob: 2c19e289c4e0580dd52009fa42bebaa2f62cafed (
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
|
#!/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
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)
LANG=C.UTF-8 xvfb-run dh_auto_test -- ARGS+=-E ARGS+=test_release
|