2015-01-22 02:00:02 +03:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
NULL =
|
|
|
|
|
2018-02-01 19:10:36 +03:00
|
|
|
DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|
|
|
|
|
|
|
SANATIZE_ADDRESS = -DWITH_SANITIZE_ADDRESS=ON
|
|
|
|
|
2015-01-22 02:00:02 +03:00
|
|
|
DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=FALSE \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH=FALSE \
|
|
|
|
-DWITH_PULSE=ON \
|
|
|
|
-DWITH_CHANNELS=ON \
|
2016-06-15 14:36:27 +03:00
|
|
|
-DBUILTIN_CHANNELS=ON \
|
2015-01-22 02:00:02 +03:00
|
|
|
-DWITH_CUPS=ON \
|
|
|
|
-DWITH_PCSC=ON \
|
|
|
|
-DWITH_GSTREAMER_0_10=ON \
|
2018-08-06 08:55:30 +03:00
|
|
|
-DWITH_FFMPEG=ON \
|
|
|
|
-DWITH_DSP_FFMPEG=ON \
|
2015-01-22 02:00:02 +03:00
|
|
|
-DCHANNEL_URBDRC=ON \
|
|
|
|
-DCHANNEL_URBDRC_CLIENT=ON \
|
|
|
|
-DWITH_SERVER=ON \
|
|
|
|
-DBUILD_TESTING=OFF \
|
2017-12-22 13:42:31 +03:00
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
2015-01-22 02:00:02 +03:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/opt/freerdp-nightly/ \
|
2015-01-22 03:35:38 +03:00
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=include \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
2018-02-01 19:10:36 +03:00
|
|
|
$(SANATIZE_ADDRESS) \
|
2015-01-22 02:00:02 +03:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@ --parallel
|
|
|
|
|
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- $(DEB_CMAKE_EXTRA_FLAGS)
|
|
|
|
|
|
|
|
override_dh_shlibdeps:
|
2015-01-22 03:35:38 +03:00
|
|
|
dh_shlibdeps -l /opt/freerdp-nightly/lib/
|
2015-01-22 02:00:02 +03:00
|
|
|
|
|
|
|
override_dh_strip:
|
|
|
|
dh_strip --dbg-package=freerdp-nightly-dbg
|
|
|
|
|
|
|
|
override_dh_install:
|
2015-01-22 03:57:32 +03:00
|
|
|
mkdir -p debian/tmp/opt/freerdp-nightly/lib/cmake/
|
2016-03-14 11:38:35 +03:00
|
|
|
rm -rf debian/tmp/opt/freerdp-nightly/lib/freerdp2/*.a
|
2015-01-22 03:57:32 +03:00
|
|
|
|
2015-01-22 02:00:02 +03:00
|
|
|
dh_install --fail-missing
|
|
|
|
|
|
|
|
override_dh_clean:
|
|
|
|
rm -f config.h
|
|
|
|
dh_clean
|