FreeRDP/packaging/deb/freerdp-nightly/rules
Bernhard Miklautz 1e842d2681 fix deb/freerdp-nightly: disable ASAN on i386
The nightly packages fail on some distributions on i386 if address
sanitizer is active (mostly due to oder libasan versions). Disable it
for now for i386.
2018-02-01 17:13:48 +01:00

56 lines
1.6 KiB
Makefile
Executable File

#!/usr/bin/make -f
NULL =
DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
ifeq ($(DEB_HOST_ARCH), i386)
SANATIZE_ADDRESS = -DWITH_SANITIZE_ADDRESS=OFF
else
SANATIZE_ADDRESS = -DWITH_SANITIZE_ADDRESS=ON
endif
DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=FALSE \
-DCMAKE_SKIP_INSTALL_RPATH=FALSE \
-DWITH_PULSE=ON \
-DWITH_CHANNELS=ON \
-DBUILTIN_CHANNELS=ON \
-DWITH_CUPS=ON \
-DWITH_PCSC=ON \
-DWITH_JPEG=ON \
-DWITH_GSTREAMER_0_10=ON \
-DWITH_GSM=ON \
-DCHANNEL_URBDRC=ON \
-DCHANNEL_URBDRC_CLIENT=ON \
-DWITH_SERVER=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/opt/freerdp-nightly/ \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_INSTALL_LIBDIR=lib \
$(SANATIZE_ADDRESS) \
$(NULL)
%:
dh $@ --parallel
override_dh_auto_configure:
dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
override_dh_shlibdeps:
dh_shlibdeps -l /opt/freerdp-nightly/lib/
override_dh_strip:
dh_strip --dbg-package=freerdp-nightly-dbg
override_dh_install:
mkdir -p debian/tmp/opt/freerdp-nightly/lib/cmake/
rm -rf debian/tmp/opt/freerdp-nightly/lib/freerdp2/*.a
dh_install --fail-missing
override_dh_clean:
rm -f config.h
dh_clean