Commit 6d8882c1 authored by Mike Gabriel's avatar Mike Gabriel

debian/{control,rules}: Build with -DCHANNEL_URBDRC_CLIENT=on only on Linux...

debian/{control,rules}: Build with -DCHANNEL_URBDRC_CLIENT=on only on Linux OSes. (Closes: #815614).
parent 82b72033
......@@ -29,8 +29,8 @@ Build-Depends:
xmlto,
libavcodec-dev,
libxi-dev,
libusb-1.0-0-dev,
libudev-dev,
libusb-1.0-0-dev [linux-any],
libudev-dev [linux-any],
libdbus-glib-1-dev,
uuid-dev,
Standards-Version: 3.9.6
......
......@@ -13,6 +13,13 @@ else
ARM_FLOAT_ABI =
endif
DEB_BUILD_ARCH_OS=$(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
ifneq (,$(filter linux,$(DEB_BUILD_ARCH_OS)))
LINUX_URBDRC_CLIENT = -DCHANNEL_URBDRC_CLIENT=on
else
LINUX_URBDRC_CLIENT = -DCHANNEL_URBDRC_CLIENT=off
endif
include /usr/share/cdbs/1/class/cmake.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
......@@ -31,7 +38,7 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_INSTALL_INCLUDEDIR=include/$(shell dpkg-archit
-DWITH_CUPS=on \
-DWITH_PCSC=on \
-DWITH_JPEG=on \
-DCHANNEL_URBDRC_CLIENT=on \
$(LINUX_URBDRC_CLIENT) \
$(ARM_FLOAT_ABI) \
$(NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment