[med-svn] [opensurgsim] 02/04: Only build multiaxis on linux kernels

Paul Novotny paulnovo-guest at moszumanska.debian.org
Tue Oct 25 22:00:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

paulnovo-guest pushed a commit to branch master
in repository opensurgsim.

commit 6a653996a0a1129505dc7e8d4d806e6866552d32
Author: Paul Novotny <paul at paulnovo.us>
Date:   Mon Oct 24 17:00:27 2016 -0400

    Only build multiaxis on linux kernels
    
    The multiaxis input device is dependant on linux headers, so it should
    only be turned on when using a linux kernel. This should fix build
    failures on Hurd and kfreebsd.
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 916a2ac..0c89f2f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,11 +11,17 @@ else
     EIGEN_ALIGNMENT=OFF
 endif
 
+ifeq ($(DEB_TARGET_ARCH_OS),linux)
+    BUILD_DEVICE_MULTIAXIS=ON
+else
+    BUILD_DEVICE_MULTIAXIS=OFF
+endif
+
 override_dh_auto_configure:
 	dh_auto_configure -- \
 	-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
 	-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-	-DBUILD_DEVICE_MULTIAXIS:BOOL=ON \
+	-DBUILD_DEVICE_MULTIAXIS:BOOL=$(BUILD_DEVICE_MULTIAXIS) \
 	-DBUILD_DOCUMENTATION:BOOL=ON \
 	-DBUILD_EXAMPLES:BOOL=OFF \
 	-DBUILD_SHARED_LIBS:BOOL=ON \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/opensurgsim.git



More information about the debian-med-commit mailing list