$OpenBSD: patch-third_party_libjpeg_turbo_libjpeg_gyp,v 1.1 2013/05/30 18:42:18 robert Exp $
--- third_party/libjpeg_turbo/libjpeg.gyp.orig.port	Thu May 30 01:07:54 2013
+++ third_party/libjpeg_turbo/libjpeg.gyp	Thu May 30 01:50:50 2013
@@ -231,7 +231,7 @@
             ],
           },
         }],
-        [ 'OS=="linux" or (OS=="android" and target_arch!="arm")', {
+        [ 'OS=="linux" or os_bsd==1 or (OS=="android" and target_arch!="arm")', {
           'conditions': [
             [ 'use_system_yasm==0', {
               'dependencies': [
@@ -261,6 +261,9 @@
                   '-Ilinux/'
                 ],
               }],
+            ],
+            'include_dirs': [
+              '/usr/local/include',
             ],
           },
         }],
