| @@ -1,81 +1,82 @@ | | | @@ -1,81 +1,82 @@ |
1 | # $NetBSD: options.mk,v 1.23 2022/06/07 20:28:43 wiz Exp $ | | 1 | # $NetBSD: options.mk,v 1.24 2024/01/21 00:53:46 nikita Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | PKG_OPTIONS_VAR= PKG_OPTIONS.webkit-gtk | | 4 | PKG_OPTIONS_VAR= PKG_OPTIONS.webkit-gtk |
5 | PKG_SUPPORTED_OPTIONS= debug enchant opengl webkit-jit wayland | | 5 | PKG_SUPPORTED_OPTIONS= debug enchant opengl webkit-jit wayland |
6 | PKG_SUGGESTED_OPTIONS= enchant opengl | | 6 | PKG_SUGGESTED_OPTIONS= enchant opengl |
7 | .include "../../devel/wayland/platform.mk" | | 7 | .include "../../devel/wayland/platform.mk" |
8 | .if ${PLATFORM_SUPPORTS_WAYLAND} == "yes" | | 8 | .if ${PLATFORM_SUPPORTS_WAYLAND} == "yes" |
9 | PKG_SUGGESTED_OPTIONS+= wayland | | 9 | PKG_SUGGESTED_OPTIONS+= wayland |
10 | .endif | | 10 | .endif |
11 | | | 11 | |
12 | .include "../../mk/bsd.fast.prefs.mk" | | 12 | .include "../../mk/bsd.fast.prefs.mk" |
13 | | | 13 | |
14 | # | | 14 | # |
15 | # Platforms that support the webkit-jit option | | 15 | # Platforms that support the webkit-jit option |
16 | # | | 16 | # |
17 | # Please see: | | 17 | # Please see: |
18 | # Source/cmake/WebKitFeatures.cmake | | 18 | # Source/cmake/WebKitFeatures.cmake |
19 | # Source/WTF/wtf/PlatformEnable.h | | 19 | # Source/WTF/wtf/PlatformEnable.h |
20 | # | | 20 | # |
21 | WEBKIT_JIT_MACHINE_PLATFORMS+= Darwin-*-* | | 21 | WEBKIT_JIT_MACHINE_PLATFORMS+= Darwin-*-* |
22 | WEBKIT_JIT_MACHINE_PLATFORMS+= DragonFly-*-* | | 22 | WEBKIT_JIT_MACHINE_PLATFORMS+= DragonFly-*-* |
23 | WEBKIT_JIT_MACHINE_PLATFORMS+= FreeBSD-*-x86_64 FreeBSD-*-aarch64 | | 23 | WEBKIT_JIT_MACHINE_PLATFORMS+= FreeBSD-*-x86_64 FreeBSD-*-aarch64 |
24 | WEBKIT_JIT_MACHINE_PLATFORMS+= Linux-*-x86_64 Linux-*-arm* | | 24 | WEBKIT_JIT_MACHINE_PLATFORMS+= Linux-*-x86_64 Linux-*-arm* |
25 | WEBKIT_JIT_MACHINE_PLATFORMS+= Linux-*-aarch64 Linux-*-mips* | | 25 | WEBKIT_JIT_MACHINE_PLATFORMS+= Linux-*-aarch64 Linux-*-mips* |
26 | WEBKIT_JIT_MACHINE_PLATFORMS+= NetBSD-*-x86_64 NetBSD-*-aarch64 | | 26 | WEBKIT_JIT_MACHINE_PLATFORMS+= NetBSD-*-x86_64 NetBSD-*-aarch64 |
27 | | | 27 | |
28 | .if !empty(WEBKIT_JIT_MACHINE_PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) | | 28 | .if !empty(WEBKIT_JIT_MACHINE_PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) |
29 | PKG_SUGGESTED_OPTIONS+= webkit-jit | | 29 | PKG_SUGGESTED_OPTIONS+= webkit-jit |
30 | .endif | | 30 | .endif |
31 | | | 31 | |
32 | .include "../../mk/bsd.options.mk" | | 32 | .include "../../mk/bsd.options.mk" |
33 | | | 33 | |
34 | # | | 34 | # |
35 | # JIT support | | 35 | # JIT support |
36 | # | | 36 | # |
37 | .if !empty(PKG_OPTIONS:Mwebkit-jit) | | 37 | .if !empty(PKG_OPTIONS:Mwebkit-jit) |
38 | CMAKE_ARGS+= -DENABLE_JIT=ON | | 38 | CMAKE_ARGS+= -DENABLE_JIT=ON |
39 | CMAKE_ARGS+= -DENABLE_C_LOOP=OFF | | 39 | CMAKE_ARGS+= -DENABLE_C_LOOP=OFF |
40 | .else | | 40 | .else |
41 | CMAKE_ARGS+= -DENABLE_JIT=OFF | | 41 | CMAKE_ARGS+= -DENABLE_JIT=OFF |
42 | .endif | | 42 | .endif |
43 | | | 43 | |
44 | # | | 44 | # |
45 | # OpenGL support: enable support for GLX, WebGL and accelerated compositing | | 45 | # OpenGL support: enable support for GLX, WebGL and accelerated compositing |
46 | # | | 46 | # |
47 | .if !empty(PKG_OPTIONS:Mopengl) | | 47 | .if !empty(PKG_OPTIONS:Mopengl) |
48 | CMAKE_ARGS+= -DUSE_OPENGL_OR_ES=ON | | 48 | CMAKE_ARGS+= -DUSE_OPENGL_OR_ES=ON |
49 | .else | | 49 | .else |
50 | CMAKE_ARGS+= -DUSE_OPENGL_OR_ES=OFF | | 50 | CMAKE_ARGS+= -DUSE_OPENGL_OR_ES=OFF |
51 | .endif | | 51 | .endif |
52 | | | 52 | |
53 | # | | 53 | # |
54 | # Spellcheck support using enchant | | 54 | # Spellcheck support using enchant |
55 | # | | 55 | # |
56 | .if !empty(PKG_OPTIONS:Menchant) | | 56 | .if !empty(PKG_OPTIONS:Menchant) |
57 | CMAKE_ARGS+= -DENABLE_SPELLCHECK=ON | | 57 | CMAKE_ARGS+= -DENABLE_SPELLCHECK=ON |
58 | .include "../../textproc/enchant2/buildlink3.mk" | | 58 | .include "../../textproc/enchant2/buildlink3.mk" |
59 | .else | | 59 | .else |
60 | CMAKE_ARGS+= -DENABLE_SPELLCHECK=OFF | | 60 | CMAKE_ARGS+= -DENABLE_SPELLCHECK=OFF |
61 | .endif | | 61 | .endif |
62 | | | 62 | |
63 | # | | 63 | # |
64 | # Debug build | | 64 | # Debug build |
65 | # | | 65 | # |
66 | .if !empty(PKG_OPTIONS:Mdebug) | | 66 | .if !empty(PKG_OPTIONS:Mdebug) |
67 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug | | 67 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug |
| | | 68 | .include "../../lang/ruby/buildlink3.mk" |
68 | .else | | 69 | .else |
69 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release | | 70 | CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release |
70 | .endif | | 71 | .endif |
71 | | | 72 | |
72 | # | | 73 | # |
73 | # Wayland display server support | | 74 | # Wayland display server support |
74 | # | | 75 | # |
75 | .if !empty(PKG_OPTIONS:Mwayland) | | 76 | .if !empty(PKG_OPTIONS:Mwayland) |
76 | CMAKE_ARGS+= -DENABLE_WAYLAND_TARGET=ON | | 77 | CMAKE_ARGS+= -DENABLE_WAYLAND_TARGET=ON |
77 | CMAKE_ARGS+= -DUSE_WPE_RENDERER=OFF # TODO | | 78 | CMAKE_ARGS+= -DUSE_WPE_RENDERER=OFF # TODO |
78 | .include "../../devel/wayland/buildlink3.mk" | | 79 | .include "../../devel/wayland/buildlink3.mk" |
79 | .else | | 80 | .else |
80 | CMAKE_ARGS+= -DENABLE_WAYLAND_TARGET=OFF | | 81 | CMAKE_ARGS+= -DENABLE_WAYLAND_TARGET=OFF |
81 | .endif | | 82 | .endif |