gnu: wxwidgets: Enable webview support.

* gnu/packages/wxwidgets.scm (wxwidgets)[inputs]: Add webkitgtk-2.4.
[arguments]: Add configure flags to enable webview via the webkitgtk
backend.
This commit is contained in:
Ricardo Wurmus 2016-03-28 13:19:18 +02:00
parent 2729509003
commit fc7c74e43d

View File

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -31,6 +32,7 @@
#:use-module (gnu packages image) #:use-module (gnu packages image)
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages sdl) #:use-module (gnu packages sdl)
#:use-module (gnu packages webkit)
#:use-module (gnu packages xorg)) #:use-module (gnu packages xorg))
(define-public wxwidgets (define-public wxwidgets
@ -45,7 +47,6 @@
(sha256 (sha256
(base32 "0paq27brw4lv8kspxh9iklpa415mxi8zc117vbbbhfjgapf7js1l")))) (base32 "0paq27brw4lv8kspxh9iklpa415mxi8zc117vbbbhfjgapf7js1l"))))
(build-system glib-or-gtk-build-system) (build-system glib-or-gtk-build-system)
;; TODO: add WebKit
(inputs (inputs
`(("glu" ,glu) `(("glu" ,glu)
;; XXX gstreamer-0.10 builds fail ;; XXX gstreamer-0.10 builds fail
@ -56,12 +57,17 @@
("libsm" ,libsm) ("libsm" ,libsm)
("libtiff" ,libtiff) ("libtiff" ,libtiff)
("mesa" ,mesa) ("mesa" ,mesa)
("webkitgtk" ,webkitgtk-2.4)
("sdl" ,sdl))) ("sdl" ,sdl)))
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config))) `(("pkg-config" ,pkg-config)))
(arguments (arguments
'(#:configure-flags '(#:configure-flags
'("--with-regex=sys" "--with-libmspack" "--with-sdl") '("--with-regex=sys" "--with-libmspack"
"--with-sdl"
"--enable-webview"
"--enable-webkit"
"--enable-webviewwebkit")
#:make-flags #:make-flags
(list (string-append "LDFLAGS=-Wl,-rpath=" (list (string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out") "/lib")) (assoc-ref %outputs "out") "/lib"))