Fri Jul 1 12:28:12 2022 UTC ()
Support a debug-info option (simmilar to firefox)


(martin)
diff -r1.5 -r1.6 pkgsrc/www/webkit24-gtk/options.mk

cvs diff -r1.5 -r1.6 pkgsrc/www/webkit24-gtk/Attic/options.mk (expand / switch to unified diff)

--- pkgsrc/www/webkit24-gtk/Attic/options.mk 2022/06/28 11:26:24 1.5
+++ pkgsrc/www/webkit24-gtk/Attic/options.mk 2022/07/01 12:28:12 1.6
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: options.mk,v 1.5 2022/06/28 11:26:24 nia Exp $ 1# $NetBSD: options.mk,v 1.6 2022/07/01 12:28:12 martin Exp $
2# 2#
3 3
4PKG_OPTIONS_VAR= PKG_OPTIONS.webkit-gtk 4PKG_OPTIONS_VAR= PKG_OPTIONS.webkit-gtk
5PKG_SUPPORTED_OPTIONS= debug enchant opengl webkit-jit 5PKG_SUPPORTED_OPTIONS= debug debug-info enchant opengl webkit-jit
6PKG_SUGGESTED_OPTIONS= enchant opengl 6PKG_SUGGESTED_OPTIONS= enchant opengl
7 7
8.include "../../mk/bsd.prefs.mk" 8.include "../../mk/bsd.prefs.mk"
9 9
10# XXX JIT produces invalid code 10# XXX JIT produces invalid code
11# it's also entirely unsupported on powerpc and sparc 11# it's also entirely unsupported on powerpc and sparc
12.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) \ 12.if empty(MACHINE_PLATFORM:MNetBSD-*-i386) \
13 && empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) \ 13 && empty(MACHINE_PLATFORM:MNetBSD-*-x86_64) \
14 && empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) \ 14 && empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) \
15 && empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) \ 15 && empty(MACHINE_PLATFORM:MNetBSD-*-sparc64) \
16 && empty(MACHINE_PLATFORM:MNetBSD-*-sparc) \ 16 && empty(MACHINE_PLATFORM:MNetBSD-*-sparc) \
17 && empty(MACHINE_PLATFORM:MSunOS-*) 17 && empty(MACHINE_PLATFORM:MSunOS-*)
18PKG_SUGGESTED_OPTIONS+= webkit-jit 18PKG_SUGGESTED_OPTIONS+= webkit-jit
@@ -29,26 +29,29 @@ CONFIGURE_ARGS+= --enable-jit @@ -29,26 +29,29 @@ CONFIGURE_ARGS+= --enable-jit
29CONFIGURE_ARGS+= --disable-jit 29CONFIGURE_ARGS+= --disable-jit
30.endif 30.endif
31 31
32# 32#
33# debug support 33# debug support
34# 34#
35.if !empty(PKG_OPTIONS:Mdebug) 35.if !empty(PKG_OPTIONS:Mdebug)
36CONFIGURE_ARGS+= --enable-debug \ 36CONFIGURE_ARGS+= --enable-debug \
37 --disable-optimizations 37 --disable-optimizations
38.else 38.else
39CONFIGURE_ARGS+= --disable-debug \ 39CONFIGURE_ARGS+= --disable-debug \
40 --enable-optimizations 40 --enable-optimizations
41.endif 41.endif
 42.if !empty(PKG_OPTIONS:Mdebug-info)
 43CONFIGURE_ARGS+= --enable-debug-symbols=yes
 44.endif
42 45
43# 46#
44# OpenGL support: enable support for GLX, WebGL and accelerated compositing 47# OpenGL support: enable support for GLX, WebGL and accelerated compositing
45# 48#
46# TODO: should we split them in multiple options? 49# TODO: should we split them in multiple options?
47# 50#
48.if !empty(PKG_OPTIONS:Mopengl) 51.if !empty(PKG_OPTIONS:Mopengl)
49.include "../../graphics/MesaLib/buildlink3.mk" 52.include "../../graphics/MesaLib/buildlink3.mk"
50CONFIGURE_ARGS+= --enable-glx 53CONFIGURE_ARGS+= --enable-glx
51CONFIGURE_ARGS+= --enable-webgl 54CONFIGURE_ARGS+= --enable-webgl
52CONFIGURE_ARGS+= --enable-accelerated-compositing 55CONFIGURE_ARGS+= --enable-accelerated-compositing
53.else 56.else
54CONFIGURE_ARGS+= --disable-glx 57CONFIGURE_ARGS+= --disable-glx