Name libwayland-server0
Description wayland compositor infrastructure - server library
Version 1.22.0-2.1build1
Package Base wayland
Homepage https://wayland.freedesktop.org/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Emilio Pozuelo Monfort <pochu@debian.org>', 'Héctor Orón Martínez <zumbi@debian.org>', 'Marius Gripsgard <mariogrip@debian.org>']
Distro-repo https://git.launchpad.net/ubuntu/+source/wayland/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libwayland-server0/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6', 'libffi8']
Optional-Dependencies []
Build-Dependencies ['debhelper', 'quilt', 'pkg-config', 'libexpat1-dev', 'libffi-dev', 'libxml2-dev', 'libwayland-bin <cross>', 'meson']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash edbfa4b6857691ae922cc768a753fab230eee9e956aa2ce4f2eaa8d9ad777dca
#!/usr/bin/make -f

SOURCE=wayland

# Don't build the documentation when not building arch:all packages
ifeq (,$(filter libwayland-doc,$(shell dh_listpackages)))
configure_flags += -Ddocumentation=false
endif

override_dh_auto_configure:
	dh_auto_configure -- $(configure_flags)

# Kill *.la files, and forget no-one:
override_dh_install:
	find debian/tmp -name '*.la' -delete
	dh_install --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -plibwayland-client0 \
		-V 'libwayland-client0 (>= 1.2.0)' -- -c4
	dh_makeshlibs -plibwayland-cursor0 \
		-V 'libwayland-cursor0 (>= 1.0.4)' -- -c4
	dh_makeshlibs -plibwayland-egl1 \
		-V 'libwayland-egl1 (>= 1.14.91)' -- -c4
	dh_makeshlibs -plibwayland-server0 \
		-V 'libwayland-server0 (>= 1.2.0)' -- -c4

# Debug package:
override_dh_strip:
	dh_strip -plibwayland-client0 --dbgsym-migration='libwayland-client0 (<< 1.10.0-2)'
	dh_strip -plibwayland-cursor0 --dbgsym-migration='libwayland-cursor0 (<< 1.10.0-2)'
	dh_strip -plibwayland-server0 --dbgsym-migration='libwayland-server0 (<< 1.10.0-2)'
	dh_strip -a --remaining-packages

override_dh_auto_test:
	# the test suite does not pass completely in headless mode
	dh_auto_test || true

%:
	dh $@ --with quilt --builddirectory=build/ --buildsystem=meson

# For maintainer use only, generate a tarball:
gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
gentarball:
	git archive --format=tar upstream-experimental --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz