summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Chvatal <scarabeus@gentoo.org>2011-03-03 15:27:26 +0000
committerTomas Chvatal <scarabeus@gentoo.org>2011-03-03 15:27:26 +0000
commit2ff33d6d0ef7fa8e6432f9a21826f0c14f96687b (patch)
tree97742bb583234a8a787421a918fb2e00af57975a /media-libs/mesa
parentVersion bump. Drop older. Remove not needed hack. (diff)
downloadhistorical-2ff33d6d0ef7fa8e6432f9a21826f0c14f96687b.tar.gz
historical-2ff33d6d0ef7fa8e6432f9a21826f0c14f96687b.tar.bz2
historical-2ff33d6d0ef7fa8e6432f9a21826f0c14f96687b.zip
Version bump to latest releases.
Package-Manager: portage-2.2.0_alpha26/cvs/Linux x86_64
Diffstat (limited to 'media-libs/mesa')
-rw-r--r--media-libs/mesa/ChangeLog9
-rw-r--r--media-libs/mesa/Manifest8
-rw-r--r--media-libs/mesa/mesa-7.10.1.ebuild (renamed from media-libs/mesa/mesa-7.10-r1.ebuild)2
-rw-r--r--media-libs/mesa/mesa-7.9.2.ebuild326
4 files changed, 340 insertions, 5 deletions
diff --git a/media-libs/mesa/ChangeLog b/media-libs/mesa/ChangeLog
index 1d6d792c0d20..2bf6178821ce 100644
--- a/media-libs/mesa/ChangeLog
+++ b/media-libs/mesa/ChangeLog
@@ -1,6 +1,13 @@
# 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.316 2011/03/03 00:04:47 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/ChangeLog,v 1.317 2011/03/03 15:27:26 scarabeus Exp $
+
+*mesa-7.10.1 (03 Mar 2011)
+*mesa-7.9.2 (03 Mar 2011)
+
+ 03 Mar 2011; Tomáš Chvátal <scarabeus@gentoo.org> +mesa-7.9.2.ebuild,
+ -mesa-7.10-r1.ebuild, +mesa-7.10.1.ebuild:
+ Version bump to latest releases.
03 Mar 2011; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
mesa-7.9.1.ebuild, mesa-7.10-r1.ebuild:
diff --git a/media-libs/mesa/Manifest b/media-libs/mesa/Manifest
index e4fc9cce45b0..71a7e41cf172 100644
--- a/media-libs/mesa/Manifest
+++ b/media-libs/mesa/Manifest
@@ -1,12 +1,14 @@
AUX eselect-mesa.conf.7.10 1670 RMD160 a500c3af1c036678a84548b92e348b12a72ec117 SHA1 38cc1b51398382f5a2d1b89da4f16d3fa0e55450 SHA256 3ff15cedc353feeb2da450533c2ea2efc33ed1c8434a7b3037999c4965907149
AUX eselect-mesa.conf.7.9 1652 RMD160 922a0cc81e31548eacc7bc079448a93912124180 SHA1 2fb5a1fad37cc907871541ba8daca927dca968bb SHA256 bee4d061f1fb63c4c70d3f643fee7b53726c8826782f57b988f545e12eccd8c1
AUX glx_ro_text_segm.patch 731 RMD160 6d2bd85591d6349fa45a5ee16c724859c640e902 SHA1 3015aa2bd139bcdf2c3fae61f460f0c5aaeb1df7 SHA256 e36af5b530fdbe2b0e62a035bf4bf4baef267c3dc56133d1a58e56899ebffc5c
-DIST MesaLib-7.10.tar.bz2 5842557 RMD160 211011257228352dd305b589f0eab3854a2b7e49 SHA1 3cc8a077a3668041eb7296a94afcd807a3b90379 SHA256 bcf28f43f39c28da271c0f5857fb32898d4ade3e035e80a0ceece1c2df6e0aca
+DIST MesaLib-7.10.1.tar.bz2 5866217 RMD160 013ce67ea1ddb2563c173b786dcfdf5eb61865f5 SHA1 0cb966b35e57edb00d1cb09d88f502b171ce33d2 SHA256 9f4c67b212d9ecb83819e76645cecbebafbbfd6cb76290d0c2ea9f5ad9507390
DIST MesaLib-7.9.1.tar.bz2 5640520 RMD160 5d83557160dc13f98647889bab351712c7b67316 SHA1 a442f77072c690ccd8c2659664929684f74d82fd SHA256 403986cd83d957db17957f11c320c9562cc8675273efbaa402e88bf4e6586721
+DIST MesaLib-7.9.2.tar.bz2 5648858 RMD160 d6665c1eb1035b9bebc743401355c39aaffcdf5c SHA1 973d27e49654b7bd1ed0d3c4c986d26d25ccabed SHA256 6b54c96ba0673c3f088bf9a56c2d64a6e54831a1065dedf0ac234d7cd5151253
DIST MesaLib-7.9.tar.bz2 5678494 RMD160 4aad7da22324556dcd3e833d149d8ae8de1fce7d SHA1 5afc7f6f4ee02a1ca39f29ef261cc14e8787d892 SHA256 e0cd67f4516d809e18fbc85dc721e84217d524d77d815b59e0c7c2d7ea1129f3
DIST mesa-7.9.1-gentoo-patches-01.tar.bz2 2139 RMD160 9db0129c3aca3ed63c0b6665ac2f061997364c05 SHA1 b41022dfcf554d8460c96804d3d97224d05e7607 SHA256 b2b593a3cc529913a34a59c017dad4a51ae82e8b2dd4bf333a52260c3cab0aa1
-EBUILD mesa-7.10-r1.ebuild 9511 RMD160 70146a25ed6e01b4709785496348c3d8f401e9cf SHA1 7aaaa5805063b1fbad9c2a1fda41c2c118651816 SHA256 802dd3b6ad38f51377545296cd26a75d26bd6e3731cbee6f32eb151d0bd16f96
+EBUILD mesa-7.10.1.ebuild 9511 RMD160 93419913bb1ddf2adb641b85b1dba4d499570dd6 SHA1 73c1563d7eb0739d3f672232f955bf320a91a41f SHA256 4bcc369de5d63af29fbc7a3ed74bfcafe94f0a1dc0cd81b23a7301b0c0849900
EBUILD mesa-7.9.1.ebuild 8876 RMD160 92abfc9556fafa207f83f3e3b8e51b700f213ecb SHA1 88709c7ba0411c28795a4769fbc2cbc3c43e8c76 SHA256 758dfd7efcf6639bac148c3a105c494c7dd25f71d761bfdab3f799eeb0ba35c4
+EBUILD mesa-7.9.2.ebuild 8882 RMD160 0ce148e004419bed58dde65aa0dcdf69b4f9d3ef SHA1 51c15d25bce347b567660769189a867ca674d3bf SHA256 91ce360d02814f8eb3e8c6b83c280923a6ef5f73cc1644b91fdd0094888c150a
EBUILD mesa-7.9.ebuild 8870 RMD160 9c0b094243e217077373c8b9c9569e3bbd1bf212 SHA1 0fb00ac71a09c8c95346a2b3b9aeb69aab87e5e3 SHA256 460449c3618cca7402c120be735d43661cf040499c6d5c06070e7aa5dc67c365
-MISC ChangeLog 53443 RMD160 d69ec0fe2aa8dd6cad4a9dea4ddbde40bde15397 SHA1 bf3b7cd8eaf807b2285419fe7e94afae28ba7540 SHA256 24837e8df749d841fad7d8e32ee71b5f03c29069fa0a81720f8a93433888313d
+MISC ChangeLog 53654 RMD160 cda5865105e3dce67039395a342d5731960af012 SHA1 b6705af37c0b3bdd0082c6f671538197dc166172 SHA256 f1eeb9ec7c58430749cc669559db644c725cd2965d4c59ced7a1c9c606f43130
MISC metadata.xml 560 RMD160 7c8109dd5de8c3a809ae27690d50f9d85e201ac9 SHA1 6d640e373282205f6755c647bb907e9b66ab390a SHA256 67727cfae939284efe0ce0a48b1c5d54193bf5bf1c63f9b41b621dbc937f9f37
diff --git a/media-libs/mesa/mesa-7.10-r1.ebuild b/media-libs/mesa/mesa-7.10.1.ebuild
index 58f4fb6528b7..84f4c39959af 100644
--- a/media-libs/mesa/mesa-7.10-r1.ebuild
+++ b/media-libs/mesa/mesa-7.10.1.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-r1.ebuild,v 1.3 2011/03/03 00:04:47 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-7.10.1.ebuild,v 1.1 2011/03/03 15:27:26 scarabeus Exp $
EAPI=3
diff --git a/media-libs/mesa/mesa-7.9.2.ebuild b/media-libs/mesa/mesa-7.9.2.ebuild
new file mode 100644
index 000000000000..9c28519d9dac
--- /dev/null
+++ b/media-libs/mesa/mesa-7.9.2.ebuild
@@ -0,0 +1,326 @@
+# 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.9.2.ebuild,v 1.1 2011/03/03 15:27:26 scarabeus Exp $
+
+EAPI=3
+
+EGIT_REPO_URI="git://anongit.freedesktop.org/mesa/mesa"
+
+if [[ ${PV} = 9999* ]]; then
+ GIT_ECLASS="git"
+ EXPERIMENTAL="true"
+fi
+
+inherit base autotools multilib flag-o-matic python toolchain-funcs ${GIT_ECLASS}
+
+OPENGL_DIR="xorg-x11"
+
+MY_PN="${PN/m/M}"
+MY_P="${MY_PN}-${PV/_/-}"
+MY_SRC_P="${MY_PN}Lib-${PV/_/-}"
+
+FOLDER="${PV/_rc*/}"
+[[ ${PV/_rc*/} == ${PV} ]] || FOLDER+="/RC"
+
+DESCRIPTION="OpenGL-like graphic library for Linux"
+HOMEPAGE="http://mesa3d.sourceforge.net/"
+
+#SRC_PATCHES="mirror://gentoo/${P}-gentoo-patches-01.tar.bz2"
+if [[ $PV = 9999* ]]; then
+ SRC_URI="${SRC_PATCHES}"
+else
+ SRC_URI="ftp://ftp.freedesktop.org/pub/mesa/${FOLDER}/${MY_SRC_P}.tar.bz2
+ ${SRC_PATCHES}"
+fi
+
+LICENSE="LGPL-2 kilgard"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
+
+INTEL_CARDS="intel"
+RADEON_CARDS="radeon"
+VIDEO_CARDS="${INTEL_CARDS} ${RADEON_CARDS} mach64 mga nouveau r128 savage sis vmware tdfx via"
+for card in ${VIDEO_CARDS}; do
+ IUSE_VIDEO_CARDS+=" video_cards_${card}"
+done
+
+IUSE="${IUSE_VIDEO_CARDS}
+ +classic debug +gallium gles llvm motif +nptl pic selinux kernel_FreeBSD"
+
+LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.23"
+# keep correct libdrm and dri2proto dep
+# keep blocks in rdepend for binpkg
+RDEPEND="
+ !<x11-base/xorg-server-1.7
+ !<=x11-proto/xf86driproto-2.0.3
+ >=app-admin/eselect-mesa-0.0.3
+ >=app-admin/eselect-opengl-1.1.1-r2
+ dev-libs/expat
+ dev-libs/libxml2[python]
+ sys-libs/talloc
+ x11-libs/libICE
+ >=x11-libs/libX11-1.3.99.901
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXmu
+ x11-libs/libXxf86vm
+ motif? ( x11-libs/openmotif )
+ gallium? (
+ llvm? (
+ amd64? ( dev-libs/udis86 )
+ x86? ( dev-libs/udis86 )
+ x86-fbsd? ( dev-libs/udis86 )
+ sys-devel/llvm
+ )
+ )
+ ${LIBDRM_DEPSTRING}[video_cards_nouveau?,video_cards_vmware?]
+ video_cards_nouveau? ( <x11-libs/libdrm-2.4.24 )
+"
+for card in ${INTEL_CARDS}; do
+ RDEPEND="${RDEPEND}
+ video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_intel] )
+ "
+done
+
+for card in ${RADEON_CARDS}; do
+ RDEPEND="${RDEPEND}
+ video_cards_${card}? ( ${LIBDRM_DEPSTRING}[video_cards_radeon] )
+ "
+done
+
+DEPEND="${RDEPEND}
+ =dev-lang/python-2*
+ dev-util/pkgconfig
+ x11-misc/makedepend
+ >=x11-proto/dri2proto-2.2
+ >=x11-proto/glproto-1.4.11
+ x11-proto/inputproto
+ >=x11-proto/xextproto-7.0.99.1
+ x11-proto/xf86driproto
+ x11-proto/xf86vidmodeproto
+"
+
+S="${WORKDIR}/${MY_P}"
+
+# It is slow without texrels, if someone wants slow
+# mesa without texrels +pic use is worth the shot
+QA_EXECSTACK="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
+QA_WX_LOAD="usr/lib*/opengl/xorg-x11/lib/libGL.so*"
+
+# Think about: ggi, fbcon, no-X configs
+
+pkg_setup() {
+ # gcc 4.2 has buggy ivopts
+ if [[ $(gcc-version) = "4.2" ]]; then
+ append-flags -fno-ivopts
+ fi
+
+ # recommended by upstream
+ append-flags -ffast-math
+
+ python_set_active_version 2
+ python_pkg_setup
+}
+
+src_unpack() {
+ [[ $PV = 9999* ]] && git_src_unpack || base_src_unpack
+}
+
+src_prepare() {
+ # apply patches
+ if [[ ${PV} != 9999* && -n ${SRC_PATCHES} ]]; then
+ EPATCH_FORCE="yes" \
+ EPATCH_SOURCE="${WORKDIR}/patches" \
+ EPATCH_SUFFIX="patch" \
+ epatch
+ fi
+ # FreeBSD 6.* doesn't have posix_memalign().
+ if [[ ${CHOST} == *-freebsd6.* ]]; then
+ sed -i \
+ -e "s/-DHAVE_POSIX_MEMALIGN//" \
+ configure.ac || 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
+ # so we require mesa to be built on the host system first. -solar
+ if tc-is-cross-compiler; then
+ sed -i -e "s#^GLSL_CL = .*\$#GLSL_CL = glsl_compiler#g" \
+ "${S}"/src/mesa/shader/slang/library/Makefile || die
+ fi
+
+ [[ $PV = 9999* ]] && git_src_prepare
+ base_src_prepare
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use classic; then
+ # Configurable DRI drivers
+ driver_enable swrast
+
+ # Intel code
+ driver_enable video_cards_intel i810 i915 i965
+
+ # Nouveau code
+ driver_enable video_cards_nouveau nouveau
+
+ # ATI code
+ driver_enable video_cards_radeon radeon r200 r300 r600
+
+ driver_enable video_cards_savage savage
+ driver_enable video_cards_sis sis
+ driver_enable video_cards_tdfx tdfx
+ driver_enable video_cards_via unichrome
+ fi
+
+ myconf="${myconf} $(use_enable gallium)"
+ if use !gallium && use !classic; then
+ ewarn "You enabled neither classic nor gallium USE flags. No hardware"
+ ewarn "drivers will be built."
+ fi
+ if use gallium; then
+ elog "You have enabled gallium infrastructure."
+ elog "This infrastructure currently support these drivers:"
+ elog " Intel: works only i915 and i965 somehow."
+ elog " LLVMpipe: Software renderer."
+ elog " Nouveau: Support for nVidia NV30 and later cards."
+ elog " Radeon: Newest implementation of r300-r700 driver."
+ elog " Svga: VMWare Virtual GPU driver."
+ echo
+ myconf="${myconf}
+ --with-state-trackers=glx,dri,egl,vega
+ $(use_enable llvm gallium-llvm)
+ $(use_enable gles gles1)
+ $(use_enable gles gles2)
+ $(use_enable gles gles-overlay)
+ $(use_enable video_cards_vmware gallium-svga)
+ $(use_enable video_cards_nouveau gallium-nouveau)
+ $(use_enable video_cards_intel gallium-i915)
+ $(use_enable video_cards_intel gallium-i965)
+ $(use_enable video_cards_radeon gallium-radeon)
+ $(use_enable video_cards_radeon gallium-r600)"
+ else
+ if use video_cards_nouveau || use video_cards_vmware; then
+ elog "SVGA and nouveau drivers are available only via gallium interface."
+ elog "Enable gallium useflag if you want to use them."
+ fi
+ fi
+
+ # --with-driver=dri|xlib|osmesa || do we need osmesa?
+ econf \
+ --disable-option-checking \
+ --with-driver=dri \
+ --disable-glut \
+ --without-demos \
+ --enable-xcb \
+ $(use_enable debug) \
+ $(use_enable motif glw) \
+ $(use_enable motif) \
+ $(use_enable nptl glx-tls) \
+ $(use_enable !pic asm) \
+ --with-dri-drivers=${DRI_DRIVERS} \
+ ${myconf}
+}
+
+src_install() {
+ base_src_install
+
+ # Save the glsl-compiler for later use
+ if ! tc-is-cross-compiler; then
+ dobin "${S}"/src/glsl/glsl_compiler || die
+ fi
+ # Remove redundant headers
+ # GLUT thing
+ rm -f "${D}"/usr/include/GL/glut*.h || die "Removing glut include failed."
+ # Glew includes
+ rm -f "${D}"/usr/include/GL/{glew,glxew,wglew}.h \
+ || die "Removing glew includes failed."
+
+ # Install config file for eselect mesa
+ insinto /usr/share/mesa
+ newins "${FILESDIR}/eselect-mesa.conf.7.9" eselect-mesa.conf || die
+
+ # Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib
+ # because user can eselect desired GL provider.
+ 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
+ if [ -f ${x} -o -L ${x} ]; then
+ mv -f "${x}" "${D}"/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
+ if [ -f ${x} -o -L ${x} ]; then
+ mv -f "${x}" "${D}"/usr/$(get_libdir)/opengl/${OPENGL_DIR}/include \
+ || die "Failed to move ${x}"
+ fi
+ done
+ eend $?
+
+ if use classic || use gallium; then
+ ebegin "Moving DRI/Gallium drivers for dynamic switching"
+ local gallium_drivers=( i915_dri.so i965_dri.so r300_dri.so r600_dri.so swrast_dri.so )
+ 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}" \
+ || die "Failed to move ${x}"
+ insinto "/usr/$(get_libdir)/dri/"
+ if [ -f "${S}/$(get_libdir)/${x}" ]; then
+ insopts -m0755
+ doins "${S}/$(get_libdir)/${x}" || die "failed to install ${x}"
+ fi
+ fi
+ done
+ for x in "${D}"/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"
+ ln -s ../mesa/*.so . || die "Creating symlink failed"
+ # remove symlinks to drivers known to eselect
+ for x in ${gallium_drivers[@]}; do
+ if [ -f ${x} -o -L ${x} ]; then
+ rm "${x}" || die "Failed to remove ${x}"
+ fi
+ done
+ popd
+ eend $?
+ fi
+}
+
+pkg_postinst() {
+ # Switch to the xorg implementation.
+ echo
+ eselect opengl set --use-old ${OPENGL_DIR}
+ # Select classic/gallium drivers
+ eselect mesa set --auto
+}
+
+# $1 - VIDEO_CARDS flag
+# other args - names of DRI drivers to enable
+driver_enable() {
+ case $# in
+ # for enabling unconditionally
+ 1)
+ DRI_DRIVERS+=",$1"
+ ;;
+ *)
+ if use $1; then
+ shift
+ for i in $@; do
+ DRI_DRIVERS+=",${i}"
+ done
+ fi
+ ;;
+ esac
+}