File pingus-cwiid_with_bluez.patch of Package pingus

--- SConstruct.orig	2010-07-31 13:17:40.000000000 +0200
+++ SConstruct	2010-07-31 15:46:45.000000000 +0200
@@ -455,14 +455,12 @@
     
     if not env['with_wiimote']:
         reports += "  * Wiimote support: disabled\n"        
-    elif config.CheckLibWithHeader('cwiid', 'cwiid.h', 'c++'):
+    else:
         reports += "  * Wiimote support: yes\n"
         config_h_defines  += [('HAVE_CWIID', 1)]
-        env['LIBS']       += ['cwiid']
+        env['LIBS']       += ['cwiid', 'bluetooth', 'pthread', 'rt']
         env['optional_sources'] += ['src/input/wiimote_driver.cpp',
                                     'src/input/wiimote.cpp']
-    else:
-        reports += "  * Wiimote support: no (libcwiid or cwiid.h not found)\n"
 
     if not env['with_xinput']:
         reports += "  * XInput support: disabled\n"
openSUSE Build Service is sponsored by