blob: c67505077bf6528e2bff7bc302f21efad967cce4 [file] [log] [blame]
Cyril Brulebois9dd488c2012-02-21 23:58:19 +01001#!/usr/bin/make -f
2
3override_dh_auto_configure:
Héctor Orón Martínez507c0602019-08-23 15:05:17 +02004 dh_auto_configure -- -Dscreenshare=true \
Héctor Orón Martínez51dab432022-02-07 13:02:27 +01005 -Dsystemd=true
Mike Gabrielb1fe2b22013-06-28 14:31:18 +02006
7override_dh_auto_test:
Héctor Orón Martínezc00f9922021-03-04 22:12:48 +01008 mkdir -p $(CURDIR)/debian/tmp/tmp/xdgruntimedir
9 XDG_RUNTIME_DIR=$(CURDIR)/debian/tmp/tmp/xdgruntimedir dh_auto_test || true
Cyril Brulebois9dd488c2012-02-21 23:58:19 +010010
Héctor Orón Martínez507c0602019-08-23 15:05:17 +020011override_dh_missing:
12 dh_missing --fail-missing -X.la
Cyril Brulebois9dd488c2012-02-21 23:58:19 +010013
14override_dh_makeshlibs:
Héctor Orón Martínez51dab432022-02-07 13:02:27 +010015 dh_makeshlibs -Xlibweston-10/ -- -c4 -ldebian/weston/usr/lib/$(DEB_TARGET_MULTIARCH)/weston/
Héctor Orón Martínez4bcbce92020-02-10 12:23:53 +010016
17override_dh_shlibdeps:
Héctor Orón Martínez9dec5192020-09-04 14:19:31 +020018 dh_shlibdeps -O--buildsystem=meson -- -ldebian/weston/usr/lib/$(DEB_TARGET_MULTIARCH)/weston/
Cyril Brulebois9dd488c2012-02-21 23:58:19 +010019
Hector Oron65e75322013-10-11 13:03:04 +020020override_dh_fixperms:
21 dh_fixperms -Xusr/bin/weston-launch
22
Héctor Orón Martínez507c0602019-08-23 15:05:17 +020023# Workaround for https://gitlab.freedesktop.org/wayland/weston/issues/269
24override_dh_install:
25 sed -e '/libdir=/d' \
26 -e '/includedir=/d' \
Héctor Orón Martínez51dab432022-02-07 13:02:27 +010027 -i debian/tmp/usr/share/pkgconfig/libweston-10-protocols.pc
Héctor Orón Martínez507c0602019-08-23 15:05:17 +020028 dh_install
29
Cyril Brulebois9dd488c2012-02-21 23:58:19 +010030%:
Héctor Orón Martínez507c0602019-08-23 15:05:17 +020031 dh $@ --with quilt --buildsystem=meson
Cyril Brulebois9dd488c2012-02-21 23:58:19 +010032
33# For maintainer use only, generate a tarball:
34gentarball: SOURCE=$(shell dpkg-parsechangelog|awk '/^Source:/ {print $$2}')
35gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//')
36gentarball:
Mike Gabrielb1fe2b22013-06-28 14:31:18 +020037 git archive --format=tar upstream-unstable --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz