on 7dc2001 help sign in
unity8/debian/rules
47 lines 1.4 kB history raw
1#!/usr/bin/make -f
2# -*- makefile -*-
4include /usr/share/dpkg/default.mk
6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=1
8export DPKG_GENSYMBOLS_CHECK_LEVEL=4
9export NO_PNG_PKG_MANGLE=1
11# Explicitly selecting a G{CC,++}-version here to avoid accidental
12# ABI breaks introduced by toolchain updates.
13export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
14export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
16%:
17 dh $@ --parallel --fail-missing --with python2,python3
19override_dh_auto_clean:
20 dh_auto_clean
21 rm -rf builddir
23override_dh_auto_configure:
24 # Debian defines CMAKE_INSTALL_LOCALSTATEDIR as /usr/var, which is wrong.
25 # So until Debian bug 719148 is fixed, do it ourselves.
26 dh_auto_configure -- -DCMAKE_INSTALL_LOCALSTATEDIR="/var"
28override_dh_auto_build:
29 # doc is not a default target
30 dh_auto_build -- all doc
32override_dh_install:
33 # install autopilot tests
34 cd tests/autopilot; \
35 set -ex; for python in $(shell pyversions -r) $(shell py3versions -r); do \
36 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
37 done; \
38 cd $(CURDIR)
39 dh_install -X'*.pyc' --fail-missing
41# use private lib directories
42override_dh_makeshlibs:
43 dh_makeshlibs -Nunity8-private -Nunity8-fake-env
45# libMockLightDM-qml.so links against liblightdm-qt5-2.so which doesn't exist
46override_dh_shlibdeps:
47 dh_shlibdeps -XlibMockLightDM-qml.so