File chromium-7.0.500.0-system-speex.patch of Package chromium

Index: chromium/src/build/linux/system.gyp
===================================================================
--- chromium.orig/src/build/linux/system.gyp
+++ chromium/src/build/linux/system.gyp
@@ -453,6 +453,26 @@
       }]]
     },
     {
+      'target_name': 'speex',
+      'type': 'none',
+      'conditions': [
+        ['_toolset=="target"', {
+          'direct_dependent_settings': {
+            'cflags': [
+              '<!@(pkg-config --cflags speex)',
+            ],
+          },
+          'link_settings': {
+            'ldflags': [
+              '<!@(pkg-config --libs-only-L --libs-only-other speex)',
+            ],
+            'libraries': [
+              '<!@(pkg-config --libs-only-l speex)',
+            ],
+          },
+      }]]
+    },
+    {
       'target_name': 'gnome_keyring',
       'type': 'none',
       'conditions': [
Index: chromium/src/content/browser/speech/audio_encoder.cc
===================================================================
--- chromium.orig/src/content/browser/speech/audio_encoder.cc
+++ chromium/src/content/browser/speech/audio_encoder.cc
@@ -11,7 +11,7 @@
 #include "base/string_number_conversions.h"
 #include "content/browser/speech/audio_buffer.h"
 #include "third_party/flac/flac.h"
-#include "third_party/speex/speex.h"
+#include <speex/speex.h>
 
 using std::string;
 using speech::AudioChunk;
Index: chromium/src/content/content_browser.gypi
===================================================================
--- chromium.orig/src/content/content_browser.gypi
+++ chromium/src/content/content_browser.gypi
@@ -873,7 +873,7 @@
     }, { # OS!="android"
       'dependencies': [
         '../third_party/flac/flac.gyp:libflac',
-        '../third_party/speex/speex.gyp:libspeex',
+        '../build/linux/system.gyp:speex',
       ],
     }],
     ['OS=="mac"', {
openSUSE Build Service is sponsored by