File: rules

package info (click to toggle)
phonon 4:4.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 4,288 kB
  • sloc: cpp: 16,079; sh: 62; makefile: 58; xml: 32; awk: 22
file content (74 lines) | stat: -rwxr-xr-x 3,328 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/pkg-kde-tools/qt-kde-team/2/debian-qt-kde.mk

# Enable strict interdependencies
libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
include /usr/share/pkg-kde-tools/qt-kde-team/2/library-packages.mk

RECOMMENDED_PHONON4_QT4_BACKEND := phonon-backend-gstreamer
RECOMMENDED_PHONON4_QT5_BACKEND := phonon4qt5-backend-vlc

override_dh_auto_clean:
	$(overridden_command)
	rm -rf build-qt5

override_dh_auto_configure:
	$(overridden_command) -- -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON -DPHONON_INSTALL_QT_COMPAT_HEADERS=ON
	$(overridden_command) --builddirectory=build-qt5 -- -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON -DPHONON_BUILD_PHONON4QT5=ON -DPHONON_INSTALL_QT_COMPAT_HEADERS=ON

override_dh_auto_build:
	$(overridden_command)
	$(overridden_command) --builddirectory=build-qt5

override_dh_auto_install:
	$(overridden_command)
	$(overridden_command) --builddirectory=build-qt5

override_dh_install:
	rm debian/tmp/usr/include/KDE/Phonon/AudioDevice
	rm debian/tmp/usr/include/KDE/Phonon/AudioDeviceEnumerator
	rm debian/tmp/usr/include/phonon/Phonon/AudioDevice
	rm debian/tmp/usr/include/phonon/Phonon/AudioDeviceEnumerator
	rm debian/tmp/usr/include/phonon4qt5/KDE/Phonon/AudioDevice
	rm debian/tmp/usr/include/phonon4qt5/KDE/Phonon/AudioDeviceEnumerator
	rm debian/tmp/usr/include/phonon4qt5/phonon/Phonon/AudioDevice
	rm debian/tmp/usr/include/phonon4qt5/phonon/Phonon/AudioDeviceEnumerator
	dh_install --fail-missing

override_dh_strip:
	$(overridden_command) -plibphonon4 \
			      -plibphononexperimental4 \
			      -plibphonon-dev \
			      --dbgsym-migration='phonon-dbg (<= 4:4.9.0-1~~)'
	$(overridden_command) --remaining-packages --dbgsym-migration='phonon4qt5-dbg (<= 4:4.9.0-1~~)'

# shlibs is needed for library-packages.mk (strict shlibs) to work
override_dh_makeshlibs:
	$(overridden_command) -plibphonon4 -V'libphonon4 (>= $(dqk_upstream_version)), phonon'
	$(overridden_command) -plibphonon4qt5-4 -V'libphonon4qt5-4 (>= $(dqk_upstream_version)), phonon4qt5'
	$(overridden_command) -V --remaining-packages

override_dh_shlibdeps:
	$(overridden_command) -- -xphonon -xphonon4qt5

override_dh_gencontrol:
	# Expand some variables in maintainer scripts and debconf templates
	@for f in debian/*/DEBIAN/post* \
	          debian/*/DEBIAN/pre* \
	          debian/*/DEBIAN/config \
	          debian/*/DEBIAN/templates; do \
	    if [ -f "$$f" ]; then \
	        cmd="awk -f debian/expand_vars.awk -v recommended_backend='$(RECOMMENDED_PHONON4_QT4_BACKEND)' -v  recommended4qt5_backend='$(RECOMMENDED_PHONON4_QT5_BACKEND)' -- $$f > $$f.tmp && cat $$f.tmp >| $$f && rm -f $$f.tmp"; \
	        echo "$$cmd"; eval "$$cmd"; \
	    fi; \
	done
	if [ -d debian/phonon-backend-null ]; then \
	    sed -i 's/\$${recommended_backend}/$(RECOMMENDED_PHONON4_QT4_BACKEND)/g' \
	        debian/phonon-backend-null/usr/share/doc/phonon-backend-null/README.Debian; \
	fi
	if [ -d debian/phonon4qt5-backend-null ]; then \
	    sed -i 's/\$${recommended4qt5_backend}/$(RECOMMENDED_PHONON4_QT5_BACKEND)/g' \
	        debian/phonon4qt5-backend-null/usr/share/doc/phonon4qt5-backend-null/README.Debian; \
	fi
	$(overridden_command) -- -Vphonon:Recommended-Backend-qt4=$(RECOMMENDED_PHONON4_QT4_BACKEND) -Vphonon:Recommended-Backend-qt5=$(RECOMMENDED_PHONON4_QT5_BACKEND)