-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
rules
executable file
·95 lines (74 loc) · 2.11 KB
/
rules
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed
%:
dh $@
ifneq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
DOCS=disabled
else
DOCS=enabled
endif
ifneq (,$(filter s390x hppa m68k powerpc ppc64 sparc64,$(DEB_HOST_ARCH)))
BLUEZ5_CODEC_LDAC=disabled
else
BLUEZ5_CODEC_LDAC=enabled
endif
override_dh_auto_configure:
dh_auto_configure -- --buildtype=plain \
-Daudiotestsrc=enabled \
-Dauto_features=enabled \
-Db_lto=true \
-Db_pie=true \
-Dlibcamera=disabled \
-Ddocs=enabled \
-Dexamples=enabled \
-Dinstalled_tests=enabled \
-Dman=enabled \
-Dtest=enabled \
-Dvideotestsrc=enabled \
-Dvolume=enabled \
$(NULL)
install -d debian/ld.so.conf.d
echo "/usr/lib/$(DEB_HOST_MULTIARCH)/pipewire-0.3/jack/" > "debian/ld.so.conf.d/pipewire-jack-$(DEB_HOST_MULTIARCH).conf"
test_timeout_multiplier = 1
ifneq ($(filter arm hppa ia64 m68k riscv64 sh4 sparc%,$(DEB_HOST_ARCH_CPU)),)
test_timeout_multiplier = 5
endif
ifneq ($(filter mips%,$(DEB_HOST_ARCH_CPU)),)
test_timeout_multiplier = 10
endif
#override_dh_auto_test:
# dh_auto_test \
# -- \
# --timeout-multiplier $(test_timeout_multiplier) \
# $(NULL)
#
# -------------------- COMMENT -----------------
#
# somehow with --timeout-multiplier option build leads to fail
# in ubuntu 20.04, everything is ok >=21.04(didn't test on 20.10)
# there is no workaround I found without removing it. If anyone
# have an Idea with it, please give PR with solution.
override_dh_auto_test:
dh_auto_test \
-- \
$(NULL)
override_dh_missing:
dh_missing --fail-missing
override_dh_makeshlibs:
dh_makeshlibs \
--exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0 \
--exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/pipewire-0.3 \
--exclude=/usr/lib/$(DEB_HOST_MULTIARCH)/spa-0.2 \
-- -c4
override_dh_shlibdeps-arch:
dh_shlibdeps \
-ppipewire-audio-client-libraries \
-l/usr/lib/$(DEB_HOST_MULTIARCH)/pipewire-0.3 \
-- \
-Ldebian/pipewire-audio-client-libraries.shlibs.local \
$(NULL)
dh_shlibdeps \
--remaining-packages \
-l/usr/lib/$(DEB_HOST_MULTIARCH)/pipewire-0.3 \
$(NULL)