Name v4l-utils
Description Collection of command line video4linux utilities
Version 1.26.1-4build3
Package Base
Homepage https://linuxtv.org/wiki/index.php/V4l-utils
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors []
Distro-repo https://git.launchpad.net/ubuntu/+source/v4l-utils/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/v4l-utils/plain/debian/patches/../?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/v4l-utils/plain/debian/patches/dont-gererate-treeview.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/v4l-utils/plain/debian/patches/series?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/v4l-utils/plain/debian/patches/time_t-wrapper-clash.diff?h=ubuntu/noble', 'https://git.launchpad.net/ubuntu/+source/v4l-utils/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6', 'libgcc-s1', 'libstdc++6', 'libudev1', 'libv4l-0t64', 'libv4l2rds0t64']
Optional-Dependencies []
Build-Dependencies ['dpkg-dev', 'debhelper-compat', 'clang', 'doxygen', 'gettext', 'graphviz', 'libasound2-dev', 'libbpf-dev [linux-any]', 'libelf-dev', 'libqt5opengl5-dev', 'libtool', 'libjpeg-dev', 'meson', 'ninja-build', 'qtbase5-dev', 'libudev-dev [linux-any]', 'libx11-dev', 'pkgconf', 'systemd-dev [linux-any]']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash d2f7d64e4f85c1d948067886e0c4e5310cb9de70222db932589b101fc6c742a1
#!/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
CONFIGURE_FLAGS += -Dv4l2-tracer=disabled

# 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