1 |
commit: 24004713f45a36ceef8836738df5953e7d08d99d |
2 |
Author: Matt Turner <mattst88 <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 31 21:58:58 2012 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Aug 31 21:58:58 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=commit;h=24004713 |
7 |
|
8 |
media-libs/waffle: Initial import. Useful for piglit testing |
9 |
|
10 |
--- |
11 |
media-libs/waffle/waffle-1.0.1.ebuild | 34 +++++++++++++++++++++++++++++++++ |
12 |
1 files changed, 34 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/media-libs/waffle/waffle-1.0.1.ebuild b/media-libs/waffle/waffle-1.0.1.ebuild |
15 |
new file mode 100644 |
16 |
index 0000000..e70d432 |
17 |
--- /dev/null |
18 |
+++ b/media-libs/waffle/waffle-1.0.1.ebuild |
19 |
@@ -0,0 +1,34 @@ |
20 |
+# Copyright 1999-2012 Gentoo Foundation |
21 |
+# Distributed under the terms of the GNU General Public License v2 |
22 |
+# $Header: $ |
23 |
+ |
24 |
+EAPI=4 |
25 |
+ |
26 |
+inherit cmake-utils |
27 |
+ |
28 |
+DESCRIPTION="Library that allows selection of GL API and of window system at runtime" |
29 |
+HOMEPAGE="http://people.freedesktop.org/~chadversary/waffle/" |
30 |
+SRC_URI="http://people.freedesktop.org/~chadversary/waffle/files/release/${P}/${P}.tar.xz" |
31 |
+ |
32 |
+LICENSE="MIT" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64" |
35 |
+IUSE="egl gles1 gles2 wayland" |
36 |
+ |
37 |
+DEPEND=" |
38 |
+ media-libs/mesa[egl?,gles1?,gles2?] |
39 |
+ virtual/opengl |
40 |
+ wayland? ( >=dev-libs/wayland-0.95.0 ) |
41 |
+ x11-libs/libX11 |
42 |
+ x11-libs/libxcb" |
43 |
+RDEPEND="${DEPEND}" |
44 |
+ |
45 |
+src_configure() { |
46 |
+ mycmakeargs=( |
47 |
+ -Dwaffle_has_glx=ON |
48 |
+ $(cmake-utils_use egl waffle_has_x11_egl) |
49 |
+ $(cmake-utils_use wayland waffle_has_wayland) |
50 |
+ ) |
51 |
+ |
52 |
+ cmake-utils_src_configure |
53 |
+} |