summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-third_party__libvpx__libvpx.gyp
blob: 09e4285b8bbc934b7c8a76ff7e7839768de5bc20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
--- third_party/libvpx/libvpx.gyp.orig	2011-08-30 12:19:17.000000000 +0300
+++ third_party/libvpx/libvpx.gyp	2011-09-08 02:22:17.000000000 +0300
@@ -4,7 +4,7 @@
 {
   'variables': {
     'conditions': [
-      ['OS=="mac" or OS=="linux"', {
+      ['OS=="mac" or OS=="linux" or OS=="freebsd"', {
         'asm_obj_extension': 'o',
       }],
       ['OS=="win"', {
@@ -13,7 +13,7 @@
     ],
   },
   'conditions': [
-    [ '(OS=="linux" or OS=="mac" or OS=="win") and target_arch!="arm" and target_arch!="arm-neon"', {
+    [ '(OS=="linux" or OS=="freebsd" or OS=="mac" or OS=="win") and target_arch!="arm" and target_arch!="arm-neon"', {
       'targets': [
         {
           # This libvpx target contains both encoder and decoder.
@@ -25,7 +25,7 @@
               '<(SHARED_INTERMEDIATE_DIR)/third_party/libvpx',
             'yasm_path': '<(PRODUCT_DIR)/yasm',
             'conditions': [
-              [ 'OS=="linux" and target_arch=="ia32"', {
+              [ '(OS=="linux" or OS=="freebsd") and target_arch=="ia32"', {
                 'yasm_flags': [
                   '-felf32',
                   '-m', 'x86',
@@ -33,7 +33,7 @@
                   '-I', 'source/libvpx',
                 ],
               }],
-              [ 'OS=="linux" and target_arch=="x64"', {
+              [ '(OS=="linux" or OS=="freebsd") and target_arch=="x64"', {
                 'yasm_flags': [
                   '-felf64',
                   '-m', 'amd64',
@@ -265,6 +265,11 @@
             'libvpx_path': 'lib/linux/arm',
           },
         }],
+        ['OS=="freebsd"', {
+          'variables': {
+            'libvpx_path': '/usr/local/lib',
+         },
+        }],
         ['OS=="win"', {
           'variables': {
             'libvpx_path': 'lib/win/ia32',