debian/rules: convert to use meson buildsystem
Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
Héctor Orón Martínez
3 years ago
1 | 1 | |
2 | 2 | SOURCE=wayland |
3 | 3 | |
4 | ifneq (,$(filter cross,$(DEB_BUILD_PROFILES))) | |
5 | configure_flags += --with-host-scanner | |
6 | endif | |
7 | 4 | # Don't build the documentation when not building arch:all packages |
8 | 5 | ifeq (,$(filter libwayland-doc,$(shell dh_listpackages))) |
9 | configure_flags += --disable-documentation | |
6 | configure_flags += -Ddocumentation=false | |
10 | 7 | endif |
11 | 8 | |
12 | 9 | override_dh_auto_configure: |
15 | 12 | # Kill *.la files, and forget no-one: |
16 | 13 | override_dh_install: |
17 | 14 | find debian/tmp -name '*.la' -delete |
18 | dh_install --fail-missing | |
15 | dh_missing --fail-missing | |
19 | 16 | |
20 | 17 | override_dh_makeshlibs: |
21 | 18 | dh_makeshlibs -plibwayland-client0 \ |
39 | 36 | dh_auto_test || true |
40 | 37 | |
41 | 38 | %: |
42 | dh $@ --with quilt --builddirectory=build/ | |
39 | dh $@ --with quilt --builddirectory=build/ --buildsystem=meson | |
43 | 40 | |
44 | 41 | # For maintainer use only, generate a tarball: |
45 | 42 | gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//') |