[Xfce4-commits] <midori:master> Link explicitly against libjavascriptcoregtk

Christian Dywan noreply at xfce.org
Wed Oct 5 10:04:02 CEST 2011


Updating branch refs/heads/master
         to bd5a85fb9f21d74d0808d66f6af07e5f9f7cf615 (commit)
       from f303736ad0e7bc0c44c307127dfbb08ee1a4c109 (commit)

commit bd5a85fb9f21d74d0808d66f6af07e5f9f7cf615
Author: Guido Berhoerster <gber at opensuse.org>
Date:   Wed Oct 5 10:01:05 2011 +0200

    Link explicitly against libjavascriptcoregtk
    
    Fixes: https://bugs.launchpad.net/midori/+bug/855978

 midori/wscript_build |    3 ++-
 wscript              |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/midori/wscript_build b/midori/wscript_build
index a69e08d..45b3486 100644
--- a/midori/wscript_build
+++ b/midori/wscript_build
@@ -7,7 +7,8 @@ import platform
 
 progressive = True
 libs = 'M UNIQUE LIBSOUP GMODULE GTHREAD LIBIDN GIO GTK SQLITE ' \
-       'LIBNOTIFY WEBKIT LIBXML X11 XSS WS2_32 OPENSSL HILDON HILDON_FM'
+       'LIBNOTIFY WEBKIT JAVASCRIPTCOREGTK LIBXML X11 XSS WS2_32 OPENSSL HILDON' \
+       'HILDON_FM'
 
 if progressive or Options.commands['check']:
     obj = bld.new_task_gen ('cc', 'staticlib')
diff --git a/wscript b/wscript
index 840c390..736ddfc 100644
--- a/wscript
+++ b/wscript
@@ -197,6 +197,9 @@ def configure (conf):
         conf.check (lib='Xss', libpath='/usr/X11R6/lib', mandatory=False)
     check_pkg ('gtk+-2.0', '2.10.0', var='GTK', args=args)
     check_pkg ('webkit-1.0', '1.1.17', args=args)
+    webkit_version = conf.check_cfg (modversion='webkit-1.0').split ('.')
+    if int(webkit_version[0]) >= 1 and int(webkit_version[1]) >= 5 and int(webkit_version[2]) >= 1:
+        check_pkg ('javascriptcoregtk-1.0', '1.1.17', args=args)
     check_pkg ('libsoup-2.4', '2.25.2')
     conf.define ('HAVE_LIBSOUP_2_25_2', 1)
     check_pkg ('libsoup-2.4', '2.27.90', False, var='LIBSOUP_2_27_90')


More information about the Xfce4-commits mailing list