Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4 include /usr/share/dpkg/architecture.mk
5
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all optimize=+lto
7 export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs
8
9 ifeq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
10 # wayland is only available on linux-any
11 confflags += -Dwith_wayland=no
12 endif
13
14 VA_DRIVER = va-driver-all | va-driver
15 ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo ubuntu),ubuntu)
16 SUBSTVARS=-V'vendor:Recommends=' -V'vendor:Suggests=$(VA_DRIVER)'
17 else
18 SUBSTVARS=-V'vendor:Recommends=$(VA_DRIVER)' -V'vendor:Suggests='
19 endif
20
21 %:
22 dh $@ -Smeson
23
24 override_dh_autoreconf:
25 # do nothing
26
27 override_dh_auto_configure:
28 dh_auto_configure -- $(confflags)
29
30 execute_before_dh_auto_build:
31 cd debian/dh && pod2man -c Debhelper -r '' dh_libva dh_libva.1
32
33 execute_before_dh_shlibdeps:
34 echo "libva 2 libva2 (>= $(DEB_VERSION_UPSTREAM)), libva2 (<< $(DEB_VERSION_UPSTREAM).1)" > debian/shlibs.local
35
36 override_dh_installchangelogs:
37 dh_installchangelogs NEWS
38
39 override_dh_gencontrol:
40 dh_gencontrol -- $(SUBSTVARS)