summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cloos <cloos@jhcloos.com>2008-05-10 16:49:42 -0400
committerJames Cloos <cloos@jhcloos.com>2008-05-10 16:49:42 -0400
commitb7e12a6e9fecb3720adb69f4b52f0904cd9ad24d (patch)
tree4921eeef8bb119b18d4b75cad55e527686edfeb8
parente355024f7dc63c640b1b4dd2123519b419bb031a (diff)
Add media-libs/mesa-glcore to match proj/x11 overlay
-rw-r--r--media-libs/mesa-glcore/Manifest1
-rw-r--r--media-libs/mesa-glcore/mesa-glcore-9999.ebuild81
2 files changed, 82 insertions, 0 deletions
diff --git a/media-libs/mesa-glcore/Manifest b/media-libs/mesa-glcore/Manifest
new file mode 100644
index 0000000..d5774c5
--- /dev/null
+++ b/media-libs/mesa-glcore/Manifest
@@ -0,0 +1 @@
+EBUILD mesa-glcore-9999.ebuild 2036 RMD160 bc5a77a7ec2672204ef10d1f7da8fd224ad9a1a5 SHA1 cac26778f46acec956e894c65ec4742c1079fb7e SHA256 e447f7e0326cedfdc1ba52b15749406aca187dce4aa652d94f465ffa31b971bf
diff --git a/media-libs/mesa-glcore/mesa-glcore-9999.ebuild b/media-libs/mesa-glcore/mesa-glcore-9999.ebuild
new file mode 100644
index 0000000..eabdba3
--- /dev/null
+++ b/media-libs/mesa-glcore/mesa-glcore-9999.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-7.0.2.ebuild,v 1.6 2007/11/16 18:16:30 dberkholz Exp $
+
+EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
+EGIT_PROJECT="mesa"
+
+inherit autotools multilib flag-o-matic git
+
+OPENGL_DIR="xorg-x11"
+
+MY_PN="${PN/m/M}"
+MY_P="${MY_PN}-${PV//_}"
+MY_SRC_P="${MY_PN}Lib-${PV//_}"
+DESCRIPTION="The GLcore module for OpenGL use under X"
+HOMEPAGE="http://mesa3d.sourceforge.net/"
+if [[ $PV = *_rc* ]]; then
+ SRC_URI="http://www.mesa3d.org/beta/${MY_SRC_P}.tar.gz"
+elif [[ $PV = 9999 ]]; then
+ SRC_URI=""
+else
+ SRC_URI="mirror://sourceforge/mesa3d/${MY_SRC_P}.tar.bz2"
+fi
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="debug pic kernel_FreeBSD"
+
+RDEPEND=">=x11-base/xorg-server-9999"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ x11-misc/makedepend
+ x11-libs/libX11
+ x11-proto/xextproto
+ >=x11-proto/glproto-1.4.8"
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ local myconf
+
+ if use debug; then
+ strip-flags
+ append-flags -g
+ fi
+
+ # gcc 4.2 has buggy ivopts
+ if [[ $(gcc-version) = "4.2" ]]; then
+ append-flags -fno-ivopts
+ fi
+
+ # FreeBSD 6.* doesn't have posix_memalign().
+ [[ ${CHOST} == *-freebsd6.* ]] && sed -i -e "s/-DHAVE_POSIX_MEMALIGN//" configure.ac
+
+ eautoreconf
+
+ # This is where we might later change to build xlib/osmesa
+ myconf="${myconf} --with-driver=dri"
+
+ # Overloaded dri-driverdir flag for GLcore installation location
+ myconf="${myconf} --with-dri-driverdir=/usr/$(get_libdir)/xorg/modules/extensions"
+
+ # Deactivate assembly code for pic build
+ myconf="${myconf} $(use_enable pic asm)"
+
+ # Sparc assembly code is not working
+ myconf="${myconf} $(use_enable sparc asm)"
+
+ econf ${myconf} || die
+ pushd src/mesa 2>/dev/null
+ emake libmesa.a || die
+ popd 2>/dev/null
+ emake glcore || die
+}
+
+src_install() {
+# dodir /usr
+ emake \
+ DESTDIR="${D}" \
+ glcore-install || die "Installation failed"
+}