File xmms2-0.8-add-lib-vorbis-and-ogg.patch of Package xmms2

Index: xmms2-0.8DrO_o/src/clients/vistest/wscript
===================================================================
--- xmms2-0.8DrO_o.orig/src/clients/vistest/wscript
+++ xmms2-0.8DrO_o/src/clients/vistest/wscript
@@ -23,12 +23,12 @@ def build(bld):
             t.install_path = None
 
 
-    if bld.env.LIB_vorbisenc:
+    if bld.env.LIB_vorbisenc and bld.env.LIB_vorbis and bld.env.LIB_ogg:
         t = bld(features = 'c cprogram',
             target = 'xmms2-ripper',
             source = 'ripper.c',
             includes = '. ../../.. ../../include',
-            uselib = 'vorbisenc',
+            uselib = 'vorbisenc vorbis ogg',
             use = 'xmmsclient'
             )
         if not bld.env.INSTALL_VIS_REFERENCE_CLIENTS:
@@ -56,6 +56,10 @@ def configure(conf):
     conf.check_cfg(package='vorbisenc', uselib_store='vorbisenc',
             args='--cflags --libs', mandatory=False)
 
+    conf.check_cfg(package='vorbis', uselib_store='vorbis', args='--cflags --libs', mandatory=False)
+
+    conf.check_cfg(package='ogg', uselib_store='ogg', args='--cflags --libs', mandatory=False)
+
     if conf.check_cfg(package='libvisual-0.4', uselib_store='visual',
             args='--cflags --libs', mandatory=False):
         conf.check_cfg(package='sdl', uselib_store='sdl',
openSUSE Build Service is sponsored by