summaryrefslogtreecommitdiff
path: root/debian/rules
blob: df6d7c9a572509196ab4a2587b8f9a938390b1a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/make -f
#export DH_VERBOSE=1

# Debian host name can be different between each architectures
# Preparing it's name for libdlt.so path
DEB_HOST_MULTIARCH = $(shell dpkg-architecture -q DEB_HOST_MULTIARCH)

%:
	dh $@ --buildsystem cmake --builddirectory=build

override_dh_auto_configure:
	dh_auto_configure -- \
	-DWITH_SYSTEMD=ON -DWITH_SYSTEMD_JOURNAL=ON \
	-DWITH_MAN=ON -DWITH_DLT_DBUS=ON \
	-DWITH_DLT_KPI=ON -DWITH_DLT_ADAPTOR=ON \
	-DWITH_DLT_SYSTEM=ON -DCMAKE_INSTALL_PREFIX=/opt/tooling/dlt \
	-DCMAKE_INSTALL_SYSCONFDIR=/opt/tooling/dlt/etc \
	-DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH)

# Specific the path of libdlt.so for linking 
override_dh_shlibdeps:
	dh_shlibdeps -l$(CURDIR)/debian/tmp/opt/tooling/dlt/lib/$(DEB_HOST_MULTIARCH)/

override_dh_install:
	sed -i 's/INSTALL_PREFIX_PATH/opt\/tooling\/dlt/g' debian/*.install; \
	dh_install