File: rules

package info (click to toggle)
qt-gstreamer 1.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,768 kB
  • ctags: 3,648
  • sloc: cpp: 20,239; yacc: 156; lex: 125; makefile: 49
file content (61 lines) | stat: -rwxr-xr-x 2,039 bytes parent folder | download
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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

BUILD_QT5 := $(DEB_HOST_GNU_TYPE)-qt5
CMAKE_OPTS :=  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
               -DQTGSTREAMER_STATIC=OFF \
               -DQTGSTREAMER_TESTS=OFF \
               -DQTGSTREAMER_EXAMPLES=OFF \
               -DGST_PACKAGE_NAME="QtGStreamer (Debian)" \
               -DGST_PACKAGE_ORIGIN="http://packages.qa.debian.org/qt-gstreamer" \
               -DUSE_QT_PLUGIN_DIR=OFF

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_OPTS)
	dh_auto_configure --builddirectory=$(BUILD_QT5) -- \
                          -DQT_VERSION=5 $(CMAKE_OPTS)

override_dh_auto_build-arch:
	dh_auto_build --parallel -a -- all
	dh_auto_build --parallel --builddirectory=$(BUILD_QT5) -a -- all

override_dh_auto_build-indep:
	dh_auto_build --parallel -i -- doc
	dh_auto_build --parallel --builddirectory=$(BUILD_QT5) -i -- doc

override_dh_strip:
	dh_strip -p libqtglib-2.0-0 \
                 -p libqtgstreamer-1.0-0 \
                 -p libqtgstreamerui-1.0-0 \
                 -p libqtgstreamerutils-1.0-0 \
                 -p qml-module-qtgstreamer \
                 -p qtgstreamer-declarative \
                 -p qtgstreamer-plugins \
                 --dbg-package=qtgstreamer-dbg
	dh_strip --remaining-packages --dbg-package=qt5gstreamer-dbg

override_dh_auto_install-arch:
	dh_auto_install --parallel -a
	dh_auto_install --parallel --builddirectory=$(BUILD_QT5) -a

override_dh_auto_install-indep:
	dh_auto_install --parallel -i
	dh_auto_install --parallel --builddirectory=$(BUILD_QT5) -i
	cp -r obj-$(DEB_HOST_GNU_TYPE)/doc debian/tmp/doc
	find debian/tmp/doc/html -name '*.md5' -exec rm {} \;
	-rm debian/tmp/doc/html/jquery.js

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(BUILD_QT5)

override_dh_gencontrol:
	mkdir -p debian/fake-home
	HOME=debian/fake-home \
	LD_LIBRARY_PATH=debian/qtgstreamer-plugins/usr/lib/$(DEB_HOST_MULTIARCH):$(LD_LIBRARY_PATH) \
	rm -rf debian/fake-home
	dh_gencontrol

%:
	dh $@ --parallel --with=pkgkde-symbolshelper