public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: net-libs/webkit-gtk/
Date: Sun, 17 Nov 2013 23:35:35 +0000 (UTC)	[thread overview]
Message-ID: <1384731274.b50ac474a79ad199aff897eb5184572d15a1aa91.eva@gentoo> (raw)

commit:     b50ac474a79ad199aff897eb5184572d15a1aa91
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 23:34:34 2013 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 23:34:34 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=b50ac474

net-libs/webkit-gtk: enhance webgl support

Finally went through the crazy autofoo to figure out how to enable wegl
correctly.

Building with USE="gles2" fails on amd64 for me, but maybe someone else
will have better luck.

---
 net-libs/webkit-gtk/webkit-gtk-2.2.2.ebuild | 59 +++++++++++++++--------------
 1 file changed, 31 insertions(+), 28 deletions(-)

diff --git a/net-libs/webkit-gtk/webkit-gtk-2.2.2.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.2.2.ebuild
index 3e6c3a9..b4eb0ab 100644
--- a/net-libs/webkit-gtk/webkit-gtk-2.2.2.ebuild
+++ b/net-libs/webkit-gtk/webkit-gtk-2.2.2.ebuild
@@ -16,18 +16,19 @@ SRC_URI="http://www.webkitgtk.org/releases/${MY_P}.tar.xz"
 LICENSE="LGPL-2+ BSD"
 SLOT="3/29" # soname version
 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~x86-macos"
-IUSE="aqua coverage debug +geoloc +gstreamer libsecret +introspection +jit spell +webgl"
+IUSE="aqua coverage debug +geoloc gles2 +gstreamer +introspection +jit libsecret +opengl spell +webgl"
 # bugs 372493, 416331
 REQUIRED_USE="
 	geoloc? ( introspection )
 	introspection? ( gstreamer )
+	webgl? ( ^^ ( gles2 opengl ) )
+
 "
 
 # use sqlite, svg by default
 # Aqua support in gtk3 is untested
 # gtk2 is needed for plugin process support
 # gtk3-3.10 required for wayland
-# TODO: There's 3 acceleration backends: opengl, egl and gles2
 RDEPEND="
 	dev-libs/libxml2:2
 	dev-libs/libxslt
@@ -53,7 +54,8 @@ RDEPEND="
 	libsecret? ( app-crypt/libsecret )
 	spell? ( >=app-text/enchant-0.22:= )
 	webgl? (
-		virtual/opengl
+		gles2? ( media-libs/mesa[egl,gles2] )
+		opengl? ( media-libs/mesa[egl] )
 		x11-libs/cairo[opengl]
 		x11-libs/libXcomposite
 		x11-libs/libXdamage )
@@ -192,30 +194,7 @@ src_configure() {
 	# Try to use less memory, bug #469942
 	append-ldflags "-Wl,--no-keep-memory"
 
-	local myconf
-	# TODO: Check Web Audio support
-	# TODO: There's 3 acceleration backends: opengl, egl and gles2
-	# should somehow let user select between them?
-	#
-	# * dependency-tracking is required so parallel builds won't fail
-	myconf="
-		$(use_enable coverage)
-		$(use_enable debug)
-		$(use_enable geoloc geolocation)
-		$(use_enable spell spellcheck)
-		$(use_enable introspection)
-		$(use_enable gstreamer video)
-		$(use_enable jit)
-		$(use_enable libsecret credential_storage)
-		$(use_enable webgl)
-		--disable-egl
-		--disable-gles2
-		--with-gtk=3.0
-		--enable-accelerated-compositing
-		--enable-dependency-tracking
-		--disable-gtk-doc
-		"$(usex aqua "--with-font-backend=pango --with-target=quartz" "")
-		# Aqua support in gtk3 is untested
+	local myconf=""
 
 	if has_version "virtual/rubygems[ruby_targets_ruby20]"; then
 		myconf="${myconf} RUBY=$(type -P ruby20)"
@@ -225,7 +204,31 @@ src_configure() {
 		myconf="${myconf} RUBY=$(type -P ruby18)"
 	fi
 
-	econf ${myconf}
+	# TODO: Check Web Audio support
+	# should somehow let user select between them?
+	#
+	# * Aqua support in gtk3 is untested
+	# * egl is needed for gles2
+	# * dependency-tracking is required so parallel builds won't fail
+	econf \
+		$(use_enable coverage) \
+		$(use_enable debug) \
+		$(use_enable geoloc geolocation) \
+		$(use_enable gles2) \
+		$(use_enable gstreamer video) \
+		$(use_enable introspection) \
+		$(use_enable jit) \
+		$(use_enable libsecret credential_storage) \
+		$(use_enable opengl glx) \
+		$(use_enable spell spellcheck) \
+		$(use_enable webgl egl) \
+		$(use_enable webgl) \
+		--with-gtk=3.0 \
+		--enable-accelerated-compositing \
+		--enable-dependency-tracking \
+		--disable-gtk-doc \
+		$(usex aqua "--with-font-backend=pango --with-target=quartz" "")
+		${myconf}
 }
 
 #src_compile() {


             reply	other threads:[~2013-11-17 23:35 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-17 23:35 Gilles Dartiguelongue [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-25 14:45 [gentoo-commits] proj/gnome:master commit in: net-libs/webkit-gtk/ Gilles Dartiguelongue
2015-05-25  9:18 Gilles Dartiguelongue
2014-12-22 23:50 Gilles Dartiguelongue
2014-11-30 20:14 Gilles Dartiguelongue
2014-11-03 23:24 Gilles Dartiguelongue
2014-11-03 23:24 Gilles Dartiguelongue
2014-10-19 21:59 Gilles Dartiguelongue
2014-02-12 23:48 Gilles Dartiguelongue
2013-11-27 23:32 Gilles Dartiguelongue
2013-11-26 21:54 Gilles Dartiguelongue
2013-11-26 21:47 Gilles Dartiguelongue
2013-11-17 23:35 Gilles Dartiguelongue
2013-01-15 15:13 Priit Laes
2013-01-01 19:36 Alexandre Rostovtsev
2012-12-27  4:55 Alexandre Rostovtsev
2012-12-26  7:59 Gilles Dartiguelongue
2012-12-25 23:55 Gilles Dartiguelongue
2012-12-25 15:03 Priit Laes
2012-10-28 18:54 Alexandre Rostovtsev
2012-10-28  9:46 Priit Laes
2012-10-28  8:10 Alexandre Rostovtsev
2012-10-28  7:08 Alexandre Rostovtsev
2012-10-17 15:03 Priit Laes
2012-09-05 15:09 Priit Laes
2012-08-24 21:35 Priit Laes
2012-07-26 14:40 Nirbheek Chauhan
2012-07-22  4:41 Priit Laes
2012-04-05 21:43 Alexandre Restovtsev
2012-03-25  0:10 Alexandre Restovtsev
2012-03-24 23:40 Alexandre Restovtsev
2012-03-17 19:33 Alexandre Restovtsev
2012-03-10 11:08 Priit Laes
2012-03-05  7:17 Alexandre Restovtsev
2012-02-27  3:30 Alexandre Restovtsev
2012-02-08  7:52 Priit Laes
2012-01-26 22:47 Priit Laes
2011-10-30  2:57 Alexandre Restovtsev
2011-10-29 11:03 Priit Laes
2011-05-22 20:47 Priit Laes
2011-04-27 22:22 Gilles Dartiguelongue
2011-04-10 18:04 Gilles Dartiguelongue
2011-02-23 20:28 Priit Laes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1384731274.b50ac474a79ad199aff897eb5184572d15a1aa91.eva@gentoo \
    --to=eva@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox