summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-08-30 15:49:25 -0700
committerChad Versace <chad.versace@linux.intel.com>2012-08-30 16:10:55 -0700
commit18bf65b19059aa349920cb6525d8bdae2d446787 (patch)
treee1eb802ef7bce0031702fd9555f2cb23776f83d0 /pkg
parent50667bb14e30c5ad453ce3e92034aafb4c8e1f92 (diff)
pkg/gentoo: Add waffle-1.0.1.ebuild
Hey Chad, Attached is an ebuild for waffle-1.0.1. The gles1/2 USE flags simply ensure that Mesa is built with gles1/2 support. Gentoo should really have a virtual for egl/gles1/gles2, but we don't yet. We could add examples and test USE flags, but I'm not sure if we should. Matt
Diffstat (limited to 'pkg')
-rw-r--r--pkg/gentoo/waffle-1.0.1.ebuild34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/gentoo/waffle-1.0.1.ebuild b/pkg/gentoo/waffle-1.0.1.ebuild
new file mode 100644
index 0000000..e70d432
--- /dev/null
+++ b/pkg/gentoo/waffle-1.0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit cmake-utils
+
+DESCRIPTION="Library that allows selection of GL API and of window system at runtime"
+HOMEPAGE="http://people.freedesktop.org/~chadversary/waffle/"
+SRC_URI="http://people.freedesktop.org/~chadversary/waffle/files/release/${P}/${P}.tar.xz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="egl gles1 gles2 wayland"
+
+DEPEND="
+ media-libs/mesa[egl?,gles1?,gles2?]
+ virtual/opengl
+ wayland? ( >=dev-libs/wayland-0.95.0 )
+ x11-libs/libX11
+ x11-libs/libxcb"
+RDEPEND="${DEPEND}"
+
+src_configure() {
+ mycmakeargs=(
+ -Dwaffle_has_glx=ON
+ $(cmake-utils_use egl waffle_has_x11_egl)
+ $(cmake-utils_use wayland waffle_has_wayland)
+ )
+
+ cmake-utils_src_configure
+}