$OpenBSD: patch-remoting_remoting_gyp,v 1.1 2011/02/08 09:43:02 espie Exp $
--- remoting/remoting.gyp.orig	Fri Jan 21 10:19:47 2011
+++ remoting/remoting.gyp	Sun Jan 23 23:27:35 2011
@@ -16,7 +16,7 @@
   },
 
   'conditions': [
-    ['OS=="linux" or OS=="mac"', {
+    ['OS=="linux" or OS=="openbsd" or OS=="mac"', {
       'targets': [
         # Simple webserver for testing chromoting client plugin.
         {
@@ -40,6 +40,8 @@
             'chromoting_base',
             'chromoting_client',
             'chromoting_jingle_glue',
+	    '../build/linux/system.gyp:x11',
+	    '../build/linux/system.gyp:xext',
           ],
           'link_settings': {
             'libraries': [
@@ -221,7 +223,11 @@
             'host/event_executor_win.h',
           ],
         }],
-        ['OS=="linux"', {
+        ['OS=="linux" or OS=="openbsd"', {
+          'dependencies': [
+	    '../build/linux/system.gyp:x11',
+	    '../build/linux/system.gyp:xext',
+          ],
           'sources': [
             'host/capturer_linux.cc',
             'host/capturer_linux.h',
@@ -233,6 +239,7 @@
               '-lX11',
               '-lXdamage',
               '-lXtst',
+              '-lvpx',
             ],
           },
         }],
@@ -497,7 +504,7 @@
             'host/capturer_gdi_unittest.cc',
           ],
         }],
-        ['OS=="linux"', {
+        ['OS=="linux" or OS=="openbsd"', {
           'dependencies': [
             # Needed for the following #include chain:
             #   base/run_all_unittests.cc
