aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2014-12-07 23:20:36 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2014-12-08 00:08:34 +0100
commit0d995ce80f00c0d46b4d40b919610fc0fd1f8232 (patch)
tree630d3f54c149dbce4061d350fcbe58160142e4b0 /media-libs
parentmedia-libs/cogl: add wayland backend support (diff)
downloadgnome-0d995ce80f00c0d46b4d40b919610fc0fd1f8232.tar.gz
gnome-0d995ce80f00c0d46b4d40b919610fc0fd1f8232.tar.bz2
gnome-0d995ce80f00c0d46b4d40b919610fc0fd1f8232.zip
media-libs/clutter: add multiple backend support
Need someone to test aqua though.
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/clutter/clutter-1.20.0.ebuild57
-rw-r--r--media-libs/clutter/clutter-9999.ebuild56
2 files changed, 70 insertions, 43 deletions
diff --git a/media-libs/clutter/clutter-1.20.0.ebuild b/media-libs/clutter/clutter-1.20.0.ebuild
index 91acce43..3972accc 100644
--- a/media-libs/clutter/clutter-1.20.0.ebuild
+++ b/media-libs/clutter/clutter-1.20.0.ebuild
@@ -13,39 +13,52 @@ DESCRIPTION="Clutter is a library for creating graphical user interfaces"
LICENSE="LGPL-2.1+ FDL-1.1+"
SLOT="1.0"
-IUSE="debug doc egl gtk +introspection test" # evdev tslib
+IUSE="aqua debug doc egl gtk +introspection test wayland +X"
+REQUIRED_USE="
+ || ( aqua wayland X )
+ wayland? ( egl )
+"
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
# NOTE: glx flavour uses libdrm + >=mesa-7.3
# XXX: uprof needed for profiling
# >=libX11-1.3.1 needed for X Generic Event support
-# XXX: evdev input requires libinput and gudev >= 136
+# do not depend on tslib, it does not build and is disable by default upstream
RDEPEND="
>=dev-libs/glib-2.37.3:2
>=dev-libs/atk-2.5.3[introspection?]
>=dev-libs/json-glib-0.12[introspection?]
- >=media-libs/cogl-1.17.5:1.0=[introspection?,pango]
- media-libs/fontconfig
- >=x11-libs/cairo-1.12:=[glib]
+ >=media-libs/cogl-1.17.5:1.0=[introspection?,pango,wayland?]
+ >=x11-libs/cairo-1.12:=[aqua?,glib]
>=x11-libs/pango-1.30[introspection?]
virtual/opengl
x11-libs/libdrm:=
- >=x11-libs/libX11-1.3.1
- x11-libs/libXext
- x11-libs/libXdamage
- x11-proto/inputproto
- >=x11-libs/libXi-1.3
- >=x11-libs/libXcomposite-0.4
- egl? ( media-libs/cogl[gles2] )
- gtk? ( >=x11-libs/gtk+-3.3.18:3 )
+ egl? (
+ >=dev-libs/libinput-0.4
+ media-libs/cogl[gles2]
+ >=virtual/libgudev-136
+ x11-libs/libxkbcommon
+ )
+ gtk? ( >=x11-libs/gtk+-3.3.18:3[aqua?] )
introspection? ( >=dev-libs/gobject-introspection-0.9.6 )
+ X? (
+ media-libs/fontconfig
+ >=x11-libs/libX11-1.3.1
+ x11-libs/libXext
+ x11-libs/libXdamage
+ x11-proto/inputproto
+ >=x11-libs/libXi-1.3
+ >=x11-libs/libXcomposite-0.4 )
+ wayland? (
+ dev-libs/wayland
+ x11-libs/gdk-pixbuf:2 )
"
DEPEND="${RDEPEND}
>=dev-util/gtk-doc-am-1.20
- virtual/pkgconfig
>=sys-devel/gettext-0.17
+ virtual/pkgconfig
doc? (
>=dev-util/gtk-doc-1.20
>=app-text/docbook-sgml-utils-0.6.14[jadetex]
@@ -70,26 +83,26 @@ src_configure() {
# XXX: Conformance test suite (and clutter itself) does not work under Xvfb
# (GLX error blabla)
# XXX: Profiling, coverage disabled for now
- # XXX: What about cex100/osx/wayland/win32 backends?
- # XXX: evdev/tslib input seem to be experimental?
+ # XXX: What about cex100/win32 backends?
gnome2_src_configure \
- --enable-xinput \
- --enable-x11-backend=yes \
--disable-profile \
--disable-maintainer-flags \
--disable-gcov \
--disable-cex100-backend \
- --disable-quartz-backend \
- --disable-wayland-backend \
--disable-win32-backend \
--disable-tslib-input \
- --disable-evdev-input \
+ $(use_enable aqua quartz-backend) \
$(usex debug --enable-debug=yes --enable-debug=minimum) \
$(use_enable doc docs) \
$(use_enable egl egl-backend) \
+ $(use_enable egl evdev-input) \
$(use_enable gtk gdk-backend) \
$(use_enable introspection) \
- $(use_enable test gdk-pixbuf)
+ $(use_enable test gdk-pixbuf) \
+ $(use_enable wayland wayland-backend) \
+ $(use_enable wayland wayland-compositor) \
+ $(use_enable X xinput) \
+ $(use_enable X x11-backend)
}
src_test() {
diff --git a/media-libs/clutter/clutter-9999.ebuild b/media-libs/clutter/clutter-9999.ebuild
index ae1f8373..ab463773 100644
--- a/media-libs/clutter/clutter-9999.ebuild
+++ b/media-libs/clutter/clutter-9999.ebuild
@@ -16,7 +16,11 @@ DESCRIPTION="Clutter is a library for creating graphical user interfaces"
LICENSE="LGPL-2.1+ FDL-1.1+"
SLOT="1.0"
-IUSE="debug doc egl gtk +introspection test" # evdev tslib
+IUSE="aqua debug doc egl gtk +introspection test wayland +X"
+REQUIRED_USE="
+ || ( aqua wayland X )
+ wayland? ( egl )
+"
if [[ ${PV} = 9999 ]]; then
KEYWORDS=""
else
@@ -26,32 +30,42 @@ fi
# NOTE: glx flavour uses libdrm + >=mesa-7.3
# XXX: uprof needed for profiling
# >=libX11-1.3.1 needed for X Generic Event support
-# XXX: evdev input requires libinput and gudev >= 136
+# do not depend on tslib, it does not build and is disable by default upstream
RDEPEND="
>=dev-libs/glib-2.37.3:2
>=dev-libs/atk-2.5.3[introspection?]
>=dev-libs/json-glib-0.12[introspection?]
- >=media-libs/cogl-1.17.5:1.0=[introspection?,pango]
- media-libs/fontconfig
- >=x11-libs/cairo-1.12:=[glib]
+ >=media-libs/cogl-1.17.5:1.0=[introspection?,pango,wayland?]
+ >=x11-libs/cairo-1.12:=[aqua?,glib]
>=x11-libs/pango-1.30[introspection?]
virtual/opengl
x11-libs/libdrm:=
- >=x11-libs/libX11-1.3.1
- x11-libs/libXext
- x11-libs/libXdamage
- x11-proto/inputproto
- >=x11-libs/libXi-1.3
- >=x11-libs/libXcomposite-0.4
- gtk? ( >=x11-libs/gtk+-3.3.18:3 )
+ egl? (
+ >=dev-libs/libinput-0.4
+ media-libs/cogl[gles2]
+ >=virtual/libgudev-136
+ x11-libs/libxkbcommon
+ )
+ gtk? ( >=x11-libs/gtk+-3.3.18:3[aqua?] )
introspection? ( >=dev-libs/gobject-introspection-0.9.6 )
+ X? (
+ media-libs/fontconfig
+ >=x11-libs/libX11-1.3.1
+ x11-libs/libXext
+ x11-libs/libXdamage
+ x11-proto/inputproto
+ >=x11-libs/libXi-1.3
+ >=x11-libs/libXcomposite-0.4 )
+ wayland? (
+ dev-libs/wayland
+ x11-libs/gdk-pixbuf:2 )
"
DEPEND="${RDEPEND}
>=dev-util/gtk-doc-am-1.20
- virtual/pkgconfig
>=sys-devel/gettext-0.17
+ virtual/pkgconfig
doc? (
>=dev-util/gtk-doc-1.20
>=app-text/docbook-sgml-utils-0.6.14[jadetex]
@@ -76,26 +90,26 @@ src_configure() {
# XXX: Conformance test suite (and clutter itself) does not work under Xvfb
# (GLX error blabla)
# XXX: Profiling, coverage disabled for now
- # XXX: What about cex100/osx/wayland/win32 backends?
- # XXX: evdev/tslib input seem to be experimental?
+ # XXX: What about cex100/win32 backends?
gnome2_src_configure \
- --enable-xinput \
- --enable-x11-backend=yes \
--disable-profile \
--disable-maintainer-flags \
--disable-gcov \
--disable-cex100-backend \
- --disable-quartz-backend \
- --disable-wayland-backend \
--disable-win32-backend \
--disable-tslib-input \
- --disable-evdev-input \
+ $(use_enable aqua quartz-backend) \
$(usex debug --enable-debug=yes --enable-debug=minimum) \
$(use_enable doc docs) \
$(use_enable egl egl-backend) \
+ $(use_enable egl evdev-input) \
$(use_enable gtk gdk-backend) \
$(use_enable introspection) \
- $(use_enable test gdk-pixbuf)
+ $(use_enable test gdk-pixbuf) \
+ $(use_enable wayland wayland-backend) \
+ $(use_enable wayland wayland-compositor) \
+ $(use_enable X xinput) \
+ $(use_enable X x11-backend)
}
src_test() {