on 536699a help sign in
unity8/debian/rules
46 lines 1.3 kB history raw
1#!/usr/bin/make -f
2# -*- makefile -*-
4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=1
6export DPKG_GENSYMBOLS_CHECK_LEVEL=4
7export NO_PNG_PKG_MANGLE=1
9SCOPES_RECOMMENDS := $(shell perl debian/scopes-recommends-generator /usr/share/unity/client-scopes.json)
11.PHONY: build
12build %:
13 dh $@ --parallel --fail-missing --with python2,python3
15override_dh_auto_clean:
16 dh_auto_clean
17 rm -rf builddir
19override_dh_auto_configure:
20 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
21 # So until Debian bug 719148 is fixed, do it ourselves.
22 dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
24override_dh_auto_build:
25 # doc is not a default target
26 dh_auto_build -- all doc
28override_dh_install:
29 # install autopilot tests
30 cd tests/autopilot; \
31 set -ex; for python in $(shell pyversions -r) $(shell py3versions -r); do \
32 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
33 done; \
34 cd $(CURDIR)
35 dh_install -X'*.pyc' --fail-missing
37# use private lib directories
38override_dh_makeshlibs:
39 dh_makeshlibs -Nunity8-private -Nunity8-fake-env
41# libMockLightDM-qml.so links against liblightdm-qt5-2.so which doesn't exist
42override_dh_shlibdeps:
43 dh_shlibdeps -XlibMockLightDM-qml.so
45override_dh_gencontrol:
46 dh_gencontrol -- -Vunity-default-masterscopes="$(SCOPES_RECOMMENDS)"