File pingus-cwiid_with_bluez.patch of Package pingus
--- SConscript.orig 2011-10-11 23:06:19.189087994 -0600
+++ SConscript 2011-10-11 23:06:31.193752354 -0600
@@ -170,14 +170,12 @@ class Project:
def configure_wiimote(self):
if not self.env['with_wiimote']:
self.reports += " * Wiimote support: disabled\n"
- elif self.conf.CheckLibWithHeader('cwiid', 'cwiid.h', 'c++'):
+ else:
self.reports += " * Wiimote support: yes\n"
self.conf.env.Append(CPPDEFINES = [('HAVE_CWIID', 1)])
- self.conf.env.Append(LIBS = ['cwiid'])
+ self.conf.env.Append(LIBS = ['cwiid', 'bluetooth', 'pthread', 'rt'])
self.conf.env.Append(optional_sources = ['src/engine/input/wiimote/wiimote_driver.cpp',
'src/engine/input/wiimote/wiimote.cpp'])
- else:
- self.reports += " * Wiimote support: no (libcwiid or cwiid.h not found)\n"
def configure_xinput(self):
if not self.env['with_xinput']: