summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2011-01-27 16:44:03 +0000
committerJeremy Olexa <darkside@gentoo.org>2011-01-27 16:44:03 +0000
commit75364d2e3e20353f5d32fd3330414eec1cbfb291 (patch)
tree69283a9f986322478e00c6368c945d21c536493a /media-libs
parentRestrict Jython ABIs. (diff)
downloadgentoo-2-75364d2e3e20353f5d32fd3330414eec1cbfb291.tar.gz
gentoo-2-75364d2e3e20353f5d32fd3330414eec1cbfb291.tar.bz2
gentoo-2-75364d2e3e20353f5d32fd3330414eec1cbfb291.zip
Push Gentoo Prefix changes from x11 overlay, as approved
(Portage version: 2.1.9.35/cvs/Linux i686)
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/mesa/ChangeLog5
-rw-r--r--media-libs/mesa/mesa-7.10.ebuild27
2 files changed, 20 insertions, 12 deletions
diff --git a/media-libs/mesa/ChangeLog b/media-libs/mesa/ChangeLog
index 0815f7868ccd..445cc37d91e9 100644
--- a/media-libs/mesa/ChangeLog
+++ b/media-libs/mesa/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for media-libs/mesa
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.307 2011/01/12 00:14:54 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.308 2011/01/27 16:44:03 darkside Exp $
+
+ 27 Jan 2011; Jeremy Olexa <darkside@gentoo.org> mesa-7.10.ebuild:
+ Push Gentoo Prefix changes from x11 overlay, as approved
*mesa-7.10 (12 Jan 2011)
diff --git a/media-libs/mesa/mesa-7.10.ebuild b/media-libs/mesa/mesa-7.10.ebuild
index 496d349a0408..e4f80870b202 100644
--- a/media-libs/mesa/mesa-7.10.ebuild
+++ b/media-libs/mesa/mesa-7.10.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-7.10.ebuild,v 1.1 2011/01/12 00:14:54 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-7.10.ebuild,v 1.2 2011/01/27 16:44:03 darkside Exp $
EAPI=3
@@ -35,7 +35,7 @@ fi
LICENSE="LGPL-2 kilgard"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
INTEL_CARDS="intel"
RADEON_CARDS="radeon"
@@ -140,6 +140,11 @@ src_prepare() {
-e "s/-DHAVE_POSIX_MEMALIGN//" \
configure.ac || die
fi
+ # Solaris needs some recent POSIX stuff in our case
+ if [[ ${CHOST} == *-solaris* ]] ; then
+ sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die
+ sed -i -e 's/uint/unsigned int/g' src/egl/drivers/glx/egl_glx.c || die
+ fi
# In order for mesa to complete it's build process we need to use a tool
# that it compiles. When we cross compile this clearly does not work
@@ -238,9 +243,9 @@ src_install() {
fi
# Remove redundant headers
# GLUT thing
- rm -f "${D}"/usr/include/GL/glut*.h || die "Removing glut include failed."
+ rm -f "${ED}"/usr/include/GL/glut*.h || die "Removing glut include failed."
# Glew includes
- rm -f "${D}"/usr/include/GL/{glew,glxew,wglew}.h \
+ rm -f "${ED}"/usr/include/GL/{glew,glxew,wglew}.h \
|| die "Removing glew includes failed."
# Install config file for eselect mesa
@@ -252,15 +257,15 @@ src_install() {
ebegin "Moving libGL and friends for dynamic switching"
dodir /usr/$(get_libdir)/opengl/${OPENGL_DIR}/{lib,extensions,include}
local x
- for x in "${D}"/usr/$(get_libdir)/libGL.{la,a,so*}; do
+ for x in "${ED}"/usr/$(get_libdir)/libGL.{la,a,so*}; do
if [ -f ${x} -o -L ${x} ]; then
- mv -f "${x}" "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib \
+ mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/lib \
|| die "Failed to move ${x}"
fi
done
- for x in "${D}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do
+ for x in "${ED}"/usr/include/GL/{gl.h,glx.h,glext.h,glxext.h}; do
if [ -f ${x} -o -L ${x} ]; then
- mv -f "${x}" "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \
+ mv -f "${x}" "${ED}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \
|| die "Failed to move ${x}"
fi
done
@@ -272,7 +277,7 @@ src_install() {
dodir /usr/$(get_libdir)/mesa
for x in ${gallium_drivers[@]}; do
if [ -f "${S}/$(get_libdir)/gallium/${x}" ]; then
- mv -f "${D}/usr/$(get_libdir)/dri/${x}" "${D}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
+ mv -f "${ED}/usr/$(get_libdir)/dri/${x}" "${ED}/usr/$(get_libdir)/dri/${x/_dri.so/g_dri.so}" \
|| die "Failed to move ${x}"
insinto "/usr/$(get_libdir)/dri/"
if [ -f "${S}/$(get_libdir)/${x}" ]; then
@@ -281,13 +286,13 @@ src_install() {
fi
fi
done
- for x in "${D}"/usr/$(get_libdir)/dri/*.so; do
+ for x in "${ED}"/usr/$(get_libdir)/dri/*.so; do
if [ -f ${x} -o -L ${x} ]; then
mv -f "${x}" "${x/dri/mesa}" \
|| die "Failed to move ${x}"
fi
done
- pushd "${D}"/usr/$(get_libdir)/dri || die "pushd failed"
+ pushd "${ED}"/usr/$(get_libdir)/dri || die "pushd failed"
ln -s ../mesa/*.so . || die "Creating symlink failed"
# remove symlinks to drivers known to eselect
for x in ${gallium_drivers[@]}; do