Disable optimisations only when compiling for debugging.diff -r1.39 -r1.40 pkgsrc/www/webkit-gtk/Makefile.common
(joerg)
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.39 2015/01/18 18:52:01 wiz Exp $ | 1 | # $NetBSD: Makefile.common,v 1.40 2015/03/31 15:55:44 joerg Exp $ | |
2 | # used by www/webkit-gtk/Makefile | 2 | # used by www/webkit-gtk/Makefile | |
3 | 3 | |||
4 | DISTNAME= webkitgtk-2.4.8 | 4 | DISTNAME= webkitgtk-2.4.8 | |
5 | CATEGORIES= www | 5 | CATEGORIES= www | |
6 | MASTER_SITES= http://www.webkitgtk.org/releases/ | 6 | MASTER_SITES= http://www.webkitgtk.org/releases/ | |
7 | EXTRACT_SUFX= .tar.xz | 7 | EXTRACT_SUFX= .tar.xz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.webkitgtk.org/ | 10 | HOMEPAGE= http://www.webkitgtk.org/ | |
11 | 11 | |||
12 | DISTINFO_FILE= ${.CURDIR}/../../www/webkit-gtk/distinfo | 12 | DISTINFO_FILE= ${.CURDIR}/../../www/webkit-gtk/distinfo | |
13 | PATCHDIR= ${.CURDIR}/../../www/webkit-gtk/patches | 13 | PATCHDIR= ${.CURDIR}/../../www/webkit-gtk/patches | |
14 | 14 | |||
@@ -16,27 +16,26 @@ USE_LANGUAGES= c c++ | @@ -16,27 +16,26 @@ USE_LANGUAGES= c c++ | |||
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= automake bison gmake perl:build pkg-config msgfmt | 17 | USE_TOOLS+= automake bison gmake perl:build pkg-config msgfmt | |
18 | 18 | |||
19 | # GCC >= 4.8 (for std::this_thread::yield() at least) or Clang >= 3.3 | 19 | # GCC >= 4.8 (for std::this_thread::yield() at least) or Clang >= 3.3 | |
20 | GCC_REQD+= 4.8 | 20 | GCC_REQD+= 4.8 | |
21 | 21 | |||
22 | PKGCONFIG_OVERRIDE= Source/WebKit/gtk/webkit.pc.in | 22 | PKGCONFIG_OVERRIDE= Source/WebKit/gtk/webkit.pc.in | |
23 | 23 | |||
24 | MAKE_FILE= GNUmakefile | 24 | MAKE_FILE= GNUmakefile | |
25 | GNU_CONFIGURE= yes | 25 | GNU_CONFIGURE= yes | |
26 | 26 | |||
27 | CONFIGURE_ARGS+= --enable-x11-target \ | 27 | CONFIGURE_ARGS+= --enable-x11-target \ | |
28 | --disable-geolocation \ | 28 | --disable-geolocation \ | |
29 | --disable-optimizations \ | |||
30 | --disable-gtk-doc-html | 29 | --disable-gtk-doc-html | |
31 | 30 | |||
32 | .include "options.mk" | 31 | .include "options.mk" | |
33 | 32 | |||
34 | REPLACE_PERL+= Source/JavaScriptCore/create_hash_table \ | 33 | REPLACE_PERL+= Source/JavaScriptCore/create_hash_table \ | |
35 | Source/WebCore/bindings/scripts/*.pl \ | 34 | Source/WebCore/bindings/scripts/*.pl \ | |
36 | Source/WebCore/bindings/scripts/InFilesCompiler.pm \ | 35 | Source/WebCore/bindings/scripts/InFilesCompiler.pm \ | |
37 | Source/WebCore/bindings/scripts/InFilesParser.pm \ | 36 | Source/WebCore/bindings/scripts/InFilesParser.pm \ | |
38 | Source/WebCore/css/*.pl \ | 37 | Source/WebCore/css/*.pl \ | |
39 | Source/WebCore/dom/*.pl \ | 38 | Source/WebCore/dom/*.pl \ | |
40 | Source/WebCore/make-hash-tools.pl \ | 39 | Source/WebCore/make-hash-tools.pl \ | |
41 | Source/WebCore/platform/text/mac/*.pl | 40 | Source/WebCore/platform/text/mac/*.pl | |
42 | 41 |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: options.mk,v 1.7 2014/09/17 17:35:23 macallan Exp $ | 1 | # $NetBSD: options.mk,v 1.8 2015/03/31 15:55:44 joerg 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 | 5 | PKG_SUPPORTED_OPTIONS= debug enchant opengl webkit-jit | |
6 | PKG_SUGGESTED_OPTIONS= enchant opengl | 6 | PKG_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) \ | |
@@ -23,29 +23,31 @@ PKG_SUGGESTED_OPTIONS+= webkit-jit | @@ -23,29 +23,31 @@ PKG_SUGGESTED_OPTIONS+= webkit-jit | |||
23 | # | 23 | # | |
24 | # JIT support | 24 | # JIT support | |
25 | # | 25 | # | |
26 | .if !empty(PKG_OPTIONS:Mwebkit-jit) | 26 | .if !empty(PKG_OPTIONS:Mwebkit-jit) | |
27 | CONFIGURE_ARGS+= --enable-jit | 27 | CONFIGURE_ARGS+= --enable-jit | |
28 | .else | 28 | .else | |
29 | CONFIGURE_ARGS+= --disable-jit | 29 | CONFIGURE_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) | |
36 | CONFIGURE_ARGS+= --enable-debug | 36 | CONFIGURE_ARGS+= --enable-debug \ | |
37 | --disable-optimizations | |||
37 | .else | 38 | .else | |
38 | CONFIGURE_ARGS+= --disable-debug | 39 | CONFIGURE_ARGS+= --disable-debug \ | |
40 | --enable-optimizations | |||
39 | .endif | 41 | .endif | |
40 | 42 | |||
41 | # | 43 | # | |
42 | # OpenGL support: enable support for GLX, WebGL and accelerated compositing | 44 | # OpenGL support: enable support for GLX, WebGL and accelerated compositing | |
43 | # | 45 | # | |
44 | # TODO: should we split them in multiple options? | 46 | # TODO: should we split them in multiple options? | |
45 | # | 47 | # | |
46 | .if !empty(PKG_OPTIONS:Mopengl) | 48 | .if !empty(PKG_OPTIONS:Mopengl) | |
47 | CONFIGURE_ARGS+= --enable-glx | 49 | CONFIGURE_ARGS+= --enable-glx | |
48 | CONFIGURE_ARGS+= --enable-webgl | 50 | CONFIGURE_ARGS+= --enable-webgl | |
49 | CONFIGURE_ARGS+= --enable-accelerated-compositing | 51 | CONFIGURE_ARGS+= --enable-accelerated-compositing | |
50 | .else | 52 | .else | |
51 | CONFIGURE_ARGS+= --disable-glx | 53 | CONFIGURE_ARGS+= --disable-glx |