aboutsummaryrefslogtreecommitdiff
path: root/devel/electron37/files/patch-third__party_test__fonts_fontconfig_BUILD.gn
blob: e70144fa30e1e069415144f01cd27d574633f808 (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
--- third_party/test_fonts/fontconfig/BUILD.gn.orig	2025-01-27 17:37:37 UTC
+++ third_party/test_fonts/fontconfig/BUILD.gn
@@ -26,7 +26,11 @@ if (is_linux || is_chromeos) {
 
   copy("fonts_conf") {
     sources = [ "fonts.conf" ]
-    outputs = [ "$root_out_dir/etc/fonts/{{source_file_part}}" ]
+    if (is_freebsd) {
+      outputs = [ "$root_out_dir/usr/local/etc/fonts/{{source_file_part}}" ]
+    } else {
+      outputs = [ "$root_out_dir/etc/fonts/{{source_file_part}}" ]
+    }
   }
 
   if (current_toolchain == host_toolchain) {
@@ -47,7 +51,11 @@ if (is_linux || is_chromeos) {
         "//third_party/test_fonts",
       ]
       args = []
-      inputs = [ "$root_out_dir/etc/fonts/fonts.conf" ]
+      if (is_freebsd) {
+        inputs = [ "$root_out_dir/usr/local/etc/fonts/fonts.conf" ]
+      } else {
+        inputs = [ "$root_out_dir/etc/fonts/fonts.conf" ]
+      }
       outputs = [
         "$root_out_dir/fontconfig_caches/fb5c91b2895aa445d23aebf7f9e2189c-le64.cache-9",
         "$root_out_dir/fontconfig_caches/CACHEDIR.TAG",