$OpenBSD: patch-remoting_remoting_host_gypi,v 1.7 2015/01/22 11:16:41 robert Exp $
--- remoting/remoting_host.gypi.orig.port	Thu Dec 18 10:41:00 2014
+++ remoting/remoting_host.gypi	Sun Dec 21 15:31:02 2014
@@ -12,7 +12,7 @@
   'variables': {
     'conditions': [
       # Remoting host is supported only on Windows, OSX and Linux (with X11).
-      ['OS=="win" or OS=="mac" or (OS=="linux" and use_x11==1)', {
+      ['OS=="win" or OS=="mac" or ((OS=="linux" or os_bsd==1) and use_x11==1)', {
         'enable_me2me_host': 1,
         'enable_it2me_host': 1,
         'enable_remoting_host': 1,
@@ -302,7 +302,7 @@
             'host/win/wts_terminal_observer.h',
           ],
           'conditions': [
-            ['OS=="linux"', {
+            ['OS=="linux" or os_bsd==1', {
               'dependencies': [
                 '../build/linux/system.gyp:x11',
                 '../build/linux/system.gyp:xext',
@@ -311,13 +311,8 @@
                 '../build/linux/system.gyp:xrandr',
                 '../build/linux/system.gyp:xtst',
               ],
-              'link_settings': {
-                'libraries': [
-                  '-lpam',
-                ],
-              },
             }],
-            ['OS=="linux" and chromeos==0 and use_ozone==0', {
+            ['(OS=="linux" or os_bsd==1) and chromeos==0 and use_ozone==0', {
               'dependencies' : [
                 # Always use GTK on Linux, even for Aura builds.
                 '../build/linux/system.gyp:gtk',
@@ -910,7 +905,7 @@
             'host/it2me/it2me_native_messaging_host_main.h',
           ],
           'conditions': [
-            ['OS=="linux" and chromeos==0 and use_ozone==0', {
+            ['(OS=="linux" or os_bsd==1) and chromeos==0 and use_ozone==0', {
               'dependencies': [
                 # Always use GTK on Linux, even for Aura builds.
                 '../build/linux/system.gyp:gtk',
