on feea33f help sign in
unity8/debian/rules
50 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"
27 env
29override_dh_auto_build:
30 # doc is not a default target
31 dh_auto_build -- all doc
32 env
33 cd obj-* && make testGreeterPam
35override_dh_install:
36 # install autopilot tests
37 cd tests/autopilot; \
38 set -ex; for python in $(shell pyversions -r) $(shell py3versions -r); do \
39 $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
40 done; \
41 cd $(CURDIR)
42 dh_install -X'*.pyc' --fail-missing
44# use private lib directories
45override_dh_makeshlibs:
46 dh_makeshlibs -Nunity8-private -Nunity8-fake-env
48# libMockLightDM-qml.so links against liblightdm-qt5-2.so which doesn't exist
49override_dh_shlibdeps:
50 dh_shlibdeps -XlibMockLightDM-qml.so