summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/opengl-apple/ChangeLog39
-rw-r--r--media-libs/opengl-apple/metadata.xml5
-rw-r--r--media-libs/opengl-apple/opengl-apple-3.ebuild55
3 files changed, 99 insertions, 0 deletions
diff --git a/media-libs/opengl-apple/ChangeLog b/media-libs/opengl-apple/ChangeLog
new file mode 100644
index 000000000000..dd27ae146960
--- /dev/null
+++ b/media-libs/opengl-apple/ChangeLog
@@ -0,0 +1,39 @@
+# ChangeLog for media-libs/opengl-apple
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Id: ChangeLog,v 1.1 2010/01/24 18:58:57 grobian Exp $
+
+*opengl-apple-3 (24 Jan 2010)
+
+ 24 Jan 2010; Fabian Groffen <grobian@gentoo.org> +opengl-apple-3.ebuild,
+ +metadata.xml:
+ Renamed to opengl-apple for consistency with other -apple packages,
+ imported in gentoo-x86.
+
+*apple-opengl-3 (14 Dec 2009)
+
+ 14 Dec 2009; Fabian Groffen <grobian@gentoo.org> +apple-opengl-3.ebuild:
+ Version bump, drop Apple OpenGL Framework stuff, and only link to X11
+ stuff. This fixes freeglut-2.6 compilation, but most importantly, it seems
+ opengl is always meant to be the X11/Xorg variant, since otherwise the
+ framework will be used instead.
+
+ 11 Apr 2009; Fabian Groffen <grobian@gentoo.org> +metadata.xml,
+ apple-opengl-2.ebuild:
+ Removed EAPI="prefix", added metadata.xml
+
+*apple-opengl-2 (09 Nov 2008)
+
+ 09 Nov 2008; Fabian Groffen <grobian@gentoo.org> -apple-opengl-1.ebuild,
+ +apple-opengl-2.ebuild:
+ Bump, heiko_ complains that we conflict with x11-proto/glproto, so depend on
+ it, and remove the conflicting files
+
+ 09 Nov 2008; Fabian Groffen <grobian@gentoo.org> apple-opengl-1.ebuild:
+ also add GLw
+
+ 09 Nov 2008; Fabian Groffen <grobian@gentoo.org> apple-opengl-1.ebuild:
+ Include glx.h and versioned libraries from /usr/X11R6
+
+ 09 Nov 2008; Fabian Groffen <grobian@gentoo.org> ChangeLog:
+ initial version of opengl wrapper around the Apple Framework
+
diff --git a/media-libs/opengl-apple/metadata.xml b/media-libs/opengl-apple/metadata.xml
new file mode 100644
index 000000000000..f737f232e3bf
--- /dev/null
+++ b/media-libs/opengl-apple/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>prefix</herd>
+</pkgmetadata>
diff --git a/media-libs/opengl-apple/opengl-apple-3.ebuild b/media-libs/opengl-apple/opengl-apple-3.ebuild
new file mode 100644
index 000000000000..46281d06dfd0
--- /dev/null
+++ b/media-libs/opengl-apple/opengl-apple-3.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id: opengl-apple-3.ebuild,v 1.1 2010/01/24 18:58:57 grobian Exp $
+
+#EAPI="3"
+
+DESCRIPTION="Links to Apple's OpenGL X11 implementation"
+HOMEPAGE="http://www.apple.com/"
+LICENSE="as-is"
+KEYWORDS="-* ~ppc-macos ~x64-macos ~x86-macos"
+SLOT=0
+IUSE="doc"
+
+DEPEND=">=app-admin/eselect-opengl-1.0.6-r01.1
+ doc? ( app-doc/opengl-manpages )
+ x11-proto/glproto"
+RDEPEND="${DEPEND}"
+
+X11_OPENGL_DIR="/usr/X11R6"
+
+pkg_setup() {
+ [[ ! -d ${X11_OPENGL_DIR} ]] && \
+ die "${X11_OPENGL_DIR} not found, do you have X11/Xquartz installed?"
+}
+
+src_install() {
+ dodir /usr/lib/opengl/${PN}/{lib,include}
+ dodir /usr/include/GL
+
+ cd "${ED}"/usr/lib/opengl/${PN}/include || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/gl.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glext.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glx.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glxext.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glxmd.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glxproto.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glxtokens.h || die
+ cd "${ED}"/usr/lib/opengl/${PN}/lib || die
+ ln -s "${X11_OPENGL_DIR}"/lib/libGL.dylib || die
+
+ cd "${ED}"/usr/include/GL || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/glu.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/GLwDrawA.h || die
+ ln -s "${X11_OPENGL_DIR}"/include/GL/osmesa.h || die
+ cd "${ED}"/usr/lib || die
+ ln -s "${X11_OPENGL_DIR}"/lib/libGLU.dylib || die
+ ln -s "${X11_OPENGL_DIR}"/lib/libGLw.a || die
+}
+
+pkg_postinst() {
+ # Set as default VM if none exists
+ eselect opengl set ${PN}
+
+ elog "Note: you're using your OSX (pre-)installed OpenGL X11 implementation from ${X11_OPENGL_DIR}"
+}