--- /dev/null
+--- vrpn/vrpn_WiiMote.C.orig 2014-11-15 20:29:38.000000000 +0100
++++ vrpn/vrpn_WiiMote.C 2014-12-31 14:12:59.422912727 +0100
+@@ -377,7 +377,7 @@
+ #endif
+ wiimote(new vrpn_Wiimote_Device)
+ {
+-#ifdef vrpn_THREADS_AVAILABLE
++#ifndef vrpn_THREADS_AVAILABLE
+ last_reconnect_attempt.tv_sec = 0;
+ last_reconnect_attempt.tv_usec = 0;
+ #endif
-# TODO: openhaptics, ghost, wiiuse(GPL v3), libnifalcon, intersense, nidaqmx, viewpoint, phasespace, libfreespace
+# TODO: libnifalcon, intersense, nidaqmx, viewpoint, phasespace, libfreespace
+# proprietary: openhaptics, ghost,
# NATIONAL_INSTRUMENTS, NIDAQ, USDIGITAL, MICROSCRIBE, MONITONNODE, TRIVISIOCOLIBRI ???
#
# Conditional build:
%bcond_without gpm # GPM Linux mouse interface support (GPL v2+)
%bcond_without modbus # Modbus support
%bcond_with mpi # MPI support
+%bcond_without wiiuse # Wii support via wiiuse library (GPL v3+)
%bcond_without java # Java binding
#
-%define with_gpl 0%{?with_gpm:1}
+%define with_gpl 0%{?with_gpm:1}%{?with_wiiuse:1}
Summary: Virtual Reality Peripheral Network
Summary(pl.UTF-8): Sieć peryferiów do rzeczywistości wirtualnej (VR)
Name: vrpn
Patch0: %{name}-install.patch
Patch1: %{name}-jsoncpp.patch
Patch2: %{name}-modbus.patch
+Patch3: %{name}-wiiuse.patch
URL: http://www.cs.unc.edu/Research/vrpn/
BuildRequires: cmake >= 2.8.3
%{?with_apidocs:BuildRequires: doxygen}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
%build
install -d build
cd build
%cmake .. \
-DSYSCONF_INSTALL_DIR=%{_sysconfdir}/vrpn \
+ -DVRPN_BUILD_PYTHON=ON \
%{?with_gpl:-DVRPN_GPL_SERVER=ON} \
-DVRPN_USE_GPM_MOUSE=%{?with_gpm:ON}%{!?with_gpm:OFF} \
-DVRPN_USE_LOCAL_HIDAPI=OFF \
-DVRPN_USE_LOCAL_JSONCPP=OFF \
%{?with_modbus:-DVRPN_USE_MODBUS=ON} \
-DVRPN_USE_MPI=%{?with_mpi:ON}%{!?with_mpi:OFF} \
- -DVRPN_BUILD_PYTHON=ON
+ %{!?with_wiiuse:-DVRPN_USE_WIIUSE=OFF}
%{__make}