File: rules

package info (click to toggle)
v4l-utils 1.32.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,276 kB
  • sloc: ansic: 85,528; cpp: 69,473; perl: 11,915; sh: 1,333; python: 883; php: 119; makefile: 39
file content (58 lines) | stat: -rwxr-xr-x 2,006 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export QT_SELECT=qt5
export DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow

CONFIGURE_FLAGS += -Ddefault_library=both
CONFIGURE_FLAGS += -Ddoxygen-html=true
CONFIGURE_FLAGS += -Dgconv=disabled
CONFIGURE_FLAGS += -Dv4l2-compliance-32=false
CONFIGURE_FLAGS += -Dv4l2-ctl-32=false

# see https://salsa.debian.org/qt-kde-team/qt/qtbase/-/blob/master/debian/rules#L33
gles2_architectures := armel armhf
ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(gles2_architectures)))
CONFIGURE_FLAGS += -Dqvidcap=disabled
BUILD_PACKAGES = -Nqvidcap
endif

ifeq ($(DEB_HOST_ARCH_OS),linux)
deb_systemdsystemunitdir = $(shell pkg-config --variable=systemdsystemunitdir systemd | sed s,^/,,)
deb_udevdir = $(shell pkg-config --variable=udevdir udev | sed s,^/,,)
endif

%:
	dh $@ --buildsystem=meson+ninja $(BUILD_PACKAGES)

override_dh_auto_clean:
	dh_auto_clean
	rm -f debian/ir-keytable.install.$(DEB_HOST_ARCH)

override_dh_auto_configure:
	dh_auto_configure -- -Dlibv4lconvertsubdir=libv4lconvert0 $(CONFIGURE_FLAGS)

override_dh_install:
	# Remove useless autogenreated doxygen files
	rm -f usr/share/doc/v4l-utils/html/*.md5

ifeq ($(DEB_HOST_ARCH_OS),linux)
	# this file is only conditionally created (clang availablility, enabled systemd filters)
	cp -f debian/ir-keytable.install debian/ir-keytable.install.$(DEB_HOST_ARCH)
	test ! -f debian/tmp/$(deb_systemdsystemunitdir)/systemd-udevd.service.d/50-rc_keymap.conf || echo $(deb_systemdsystemunitdir)/systemd-udevd.service.d/50-rc_keymap.conf >> debian/ir-keytable.install.$(DEB_HOST_ARCH)
	echo $(deb_udevdir) >> debian/ir-keytable.install.$(DEB_HOST_ARCH)
endif

	dh_install

override_dh_installchangelogs:
	dh_installchangelogs -Nlibv4l-dev -Nv4l-utils -Nqv4l2 ChangeLog

override_dh_installdocs:
	dh_installdocs -Nlibv4l-dev -Nv4l-utils -Nqv4l2

override_dh_makeshlibs:
	dh_makeshlibs -Xv4l1compat -Xv4l2convert -Xlibv4l-mplane -Xrc_keymaps/protocols

override_dh_shlibdeps:
	dh_shlibdeps -Xrc_keymaps/protocols