diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2008-04-25 20:47:57 +0000 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2008-04-25 20:47:57 +0000 |
commit | 6b9e2f05eb5fd2a74a0c6c65f7ac2f5adae54d4e (patch) | |
tree | 711db7492e9e9503906431433445c153235913ce /x11-apps | |
parent | (#209900, #212511) Bump. (diff) | |
download | gentoo-2-6b9e2f05eb5fd2a74a0c6c65f7ac2f5adae54d4e.tar.gz gentoo-2-6b9e2f05eb5fd2a74a0c6c65f7ac2f5adae54d4e.tar.bz2 gentoo-2-6b9e2f05eb5fd2a74a0c6c65f7ac2f5adae54d4e.zip |
(#209900) Bump. Fixes multisample visual reporting.
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'x11-apps')
-rw-r--r-- | x11-apps/mesa-progs/ChangeLog | 8 | ||||
-rw-r--r-- | x11-apps/mesa-progs/mesa-progs-7.0.3.ebuild | 74 |
2 files changed, 81 insertions, 1 deletions
diff --git a/x11-apps/mesa-progs/ChangeLog b/x11-apps/mesa-progs/ChangeLog index 29d28cef3c70..1a83407382b3 100644 --- a/x11-apps/mesa-progs/ChangeLog +++ b/x11-apps/mesa-progs/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-apps/mesa-progs # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/ChangeLog,v 1.46 2008/02/05 11:26:10 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/ChangeLog,v 1.47 2008/04/25 20:47:57 dberkholz Exp $ + +*mesa-progs-7.0.3 (25 Apr 2008) + + 25 Apr 2008; Donnie Berkholz <dberkholz@gentoo.org>; + +mesa-progs-7.0.3.ebuild: + (#209900) Bump. Fixes multisample visual reporting. 05 Feb 2008; Markus Rothe <corsair@gentoo.org> mesa-progs-7.0.1.ebuild: Stable on ppc64 diff --git a/x11-apps/mesa-progs/mesa-progs-7.0.3.ebuild b/x11-apps/mesa-progs/mesa-progs-7.0.3.ebuild new file mode 100644 index 000000000000..833ba7363f4a --- /dev/null +++ b/x11-apps/mesa-progs/mesa-progs-7.0.3.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/mesa-progs-7.0.3.ebuild,v 1.1 2008/04/25 20:47:57 dberkholz Exp $ + +inherit toolchain-funcs + +MY_PN="${PN/m/M}" +MY_PN="${MY_PN/-progs}" +MY_P="${MY_PN}-${PV}" +LIB_P="${MY_PN}Lib-${PV}" +PROG_P="${MY_PN}Demos-${PV}" +DESCRIPTION="Mesa's OpenGL utility and demo programs (like glxgears)" +HOMEPAGE="http://mesa3d.sourceforge.net/" +SRC_URI="mirror://sourceforge/mesa3d/${LIB_P}.tar.bz2 + mirror://sourceforge/mesa3d/${PROG_P}.tar.bz2" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="" + +RDEPEND="virtual/glut + virtual/opengl + virtual/glu" + +DEPEND="${RDEPEND}" + +S="${WORKDIR}/Mesa-${PV}" + +pkg_setup() { + if [[ ${KERNEL} == "FreeBSD" ]]; then + CONFIG="freebsd" + elif use x86; then + CONFIG="linux-dri-x86" + elif use amd64; then + CONFIG="linux-dri-x86-64" + elif use ppc; then + CONFIG="linux-dri-ppc" + else + CONFIG="linux-dri" + fi +} + +src_unpack() { + HOSTCONF="${S}/configs/${CONFIG}" + + unpack ${A} + cd "${S}" + + # Kill this; we don't want /usr/X11R6/lib ever to be searched in this + # build. + echo "EXTRA_LIB_PATH =" >> ${HOSTCONF} + + echo "OPT_FLAGS = ${CFLAGS}" >> ${HOSTCONF} + echo "CC = $(tc-getCC)" >> ${HOSTCONF} + echo "CXX = $(tc-getCXX)" >> ${HOSTCONF} + + # Just executables here, no need to compile with -fPIC + echo "PIC_FLAGS =" >> ${HOSTCONF} +} + +src_compile() { + cd "${S}"/configs + ln -s ${CONFIG} current + + cd "${S}"/progs/xdemos + + emake glxinfo || die "glxinfo failed" + emake glxgears || die "glxgears failed" +} + +src_install() { + dobin "${S}"/progs/xdemos/{glxgears,glxinfo} || die +} |