blob: 45d9aa6ffcd471042a767156a33e021900a0de65 (
plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# $NetBSD: options.mk,v 1.19 2019/10/05 14:59:47 nia Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.webkit-gtk
PKG_SUPPORTED_OPTIONS= debug enchant introspection opengl webkit-jit wayland
PKG_SUGGESTED_OPTIONS= enchant introspection opengl
PLIST_VARS= introspection
.include "../../mk/bsd.prefs.mk"
#
# Platforms that support the webkit-jit option
#
# Please see:
# Source/cmake/WebKitFeatures.cmake
# Source/WTF/wtf/Platform.h
#
WEBKIT_JIT_MACHINE_PLATFORMS+= Darwin-*-*
WEBKIT_JIT_MACHINE_PLATFORMS+= DragonFly-*-*
WEBKIT_JIT_MACHINE_PLATFORMS+= FreeBSD-*-x86_64 FreeBSD-*-aarch64
WEBKIT_JIT_MACHINE_PLATFORMS+= Linux-*-x86_64 Linux-*-arm*
WEBKIT_JIT_MACHINE_PLATFORMS+= Linux-*-aarch64 Linux-*-mips*
WEBKIT_JIT_MACHINE_PLATFORMS+= NetBSD-*-x86_64 NetBSD-*-aarch64
.if !empty(WEBKIT_JIT_MACHINE_PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@)
PKG_SUGGESTED_OPTIONS+= webkit-jit
.endif
.include "../../mk/bsd.options.mk"
#
# JIT support
#
.if !empty(PKG_OPTIONS:Mwebkit-jit)
CMAKE_ARGS+= -DENABLE_JIT=ON
CMAKE_ARGS+= -DENABLE_C_LOOP=OFF
.else
CMAKE_ARGS+= -DENABLE_JIT=OFF
.endif
#
# OpenGL support: enable support for GLX, WebGL and accelerated compositing
#
.if !empty(PKG_OPTIONS:Mopengl)
CMAKE_ARGS+= -DENABLE_OPENGL=ON
.else
CMAKE_ARGS+= -DENABLE_OPENGL=OFF
.endif
#
# Spellcheck support using enchant
#
.if !empty(PKG_OPTIONS:Menchant)
CMAKE_ARGS+= -DENABLE_SPELLCHECK=ON
.include "../../textproc/enchant2/buildlink3.mk"
.else
CMAKE_ARGS+= -DENABLE_SPELLCHECK=OFF
.endif
#
# Debug build
#
.if !empty(PKG_OPTIONS:Mdebug)
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Debug
.else
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
.endif
#
# Introspection
#
.if !empty(PKG_OPTIONS:Mintrospection)
PLIST.introspection= yes
BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=0.9.5
BUILDLINK_DEPMETHOD.gobject-introspection+= build
.include "../../devel/gobject-introspection/buildlink3.mk"
CMAKE_ARGS+= -DENABLE_INTROSPECTION=ON
.else
CMAKE_ARGS+= -DENABLE_INTROSPECTION=OFF
.endif
#
# Wayland display server support
#
.if !empty(PKG_OPTIONS:Mwayland)
CMAKE_ARGS+= -DENABLE_WAYLAND_TARGET=ON
CMAKE_ARGS+= -DUSE_WPE_RENDERER=OFF # TODO
.include "../../devel/wayland/buildlink3.mk"
.else
CMAKE_ARGS+= -DENABLE_WAYLAND_TARGET=OFF
.endif
|