summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchim Gottinger <achim@gentoo.org>2001-02-13 14:29:41 +0000
committerAchim Gottinger <achim@gentoo.org>2001-02-13 14:29:41 +0000
commit3d8cec75b1fc83a877e447524209f6dfb7180599 (patch)
treec937d4374de9d6541d99f20e41e07dd8dac85a8b /media-libs/mesa
parent*** empty log message *** (diff)
downloadhistorical-3d8cec75b1fc83a877e447524209f6dfb7180599.tar.gz
historical-3d8cec75b1fc83a877e447524209f6dfb7180599.tar.bz2
historical-3d8cec75b1fc83a877e447524209f6dfb7180599.zip
Maintainence and FHS 2.1 fixes
Added a lot of USE flags GGI support and lcms support for libmng
Diffstat (limited to 'media-libs/mesa')
-rw-r--r--media-libs/mesa/files/digest-mesa-3.4-r12
-rw-r--r--media-libs/mesa/mesa-3.4-r1.ebuild128
2 files changed, 130 insertions, 0 deletions
diff --git a/media-libs/mesa/files/digest-mesa-3.4-r1 b/media-libs/mesa/files/digest-mesa-3.4-r1
new file mode 100644
index 000000000000..2271c1f6bdee
--- /dev/null
+++ b/media-libs/mesa/files/digest-mesa-3.4-r1
@@ -0,0 +1,2 @@
+MD5 6817ac3667aec85ab4c64ad8116867b7 MesaLib-3.4.tar.bz2
+MD5 27f7c8e143e2412e75ef7a3cd2313e0b MesaDemos-3.4.tar.bz2
diff --git a/media-libs/mesa/mesa-3.4-r1.ebuild b/media-libs/mesa/mesa-3.4-r1.ebuild
new file mode 100644
index 000000000000..804fecaac548
--- /dev/null
+++ b/media-libs/mesa/mesa-3.4-r1.ebuild
@@ -0,0 +1,128 @@
+# Copyright 1999-2000 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/media-libs/mesa/mesa-3.4-r1.ebuild,v 1.1 2001/02/13 14:29:41 achim Exp $
+
+P=MesaLib-${PV}
+A0=${P}.tar.bz2
+A1=MesaDemos-${PV}.tar.bz2
+A="${A0} ${A1}"
+S=${WORKDIR}/Mesa-${PV}
+DESCRIPTION="OpenGL like graphic library for Linux"
+SRC_URI="http://download.sourceforge.net/mesa3d/${A0}
+ http://download.sourceforge.net/mesa3d/${A1}"
+HOMEPAGE="http://mesa3d.sourceforge.net/"
+
+DEPEND="virtual/glibc
+ X? ( >=x11-base/xfree-4.0.2 )
+ ggi? ( >=media-libs/libggi-2.0_beta3 )
+ svga? ( >=media-libs/svgalib-1.4.2-r1 )"
+
+src_compile() {
+
+ local myconf
+
+ if [ "`use mmx`" ]
+ then
+ myconf="--enable-mmx"
+ else
+ myconf="--disable-mmx"
+ fi
+
+ if [ "`use 3dnow`" ]
+ then
+ myconf="${myconf} --enable-3dnow"
+ else
+ myconf="${myconf} --disable-3dnow"
+ fi
+
+ if [ "`use sse`" ]
+ then
+ myconf="${myconf} --enable-sse"
+ else
+ myconf="${myconf} --disable-sse"
+ fi
+
+ if [ "`use X`" ]
+ then
+ myconf="${myconf} --with-x"
+ else
+ myconf="${myconf} --without-x"
+ rm -rf src-glut
+ fi
+
+ if [ -z "`use ggi`" ] || [ -z "`use fbcon`" ]
+ then
+ myconf="${myconf} --disable-ggi-fbdev --without-ggi"
+ fi
+
+ if [ -z "`use svga`" ]
+ then
+ myconf="${myconf} --without-svga"
+ fi
+
+ cp configure configure.orig
+ sed -e "s:^ggi_confdir.*:ggi_confdir=/etc/ggi:" \
+ -e "s:^ggi_libdir.*:ggi_libdir=\$prefix/lib:" \
+ configure.orig > configure
+
+ try ./configure --prefix=/usr --sysconfdir=/etc/mesa --host=${CHOST} $myconf
+
+ if [ "`use ggi`" ] && [ "`use fbcon`" ]
+ then
+ cd ${S}/src/GGI
+ cp Makefile Makefile.orig
+ sed -e "s:^ggimesaconfdatadir.*:ggimesaconfdatadir = \${ggi_confdir}:" \
+ Makefile.orig > Makefile
+
+ cd ${S}/src/GGI/default
+ cp stubs.c stubs.c.orig
+ sed -e "s:Texture.Enabled:Texture.ReallyEnabled:" stubs.c.orig > stubs.c
+
+ cd ${S}/src/GGI/include/ggi/mesa
+ cp display_fbdev.h display_fbdev.h.orig
+ sed -e "s:fbdev_hook:ggi_fbdev_priv:" display_fbdev.h.orig > display_fbdev.h
+
+ cd ${S}
+ fi
+
+ try make
+
+ if [ "`use ggi`" ]
+ then
+ cd ggi/ggiglut
+ try make libglut_la_LIBADD=\"-lggi -lgg -L${S}/src/.libs -lGL\"
+ fi
+}
+
+src_install () {
+
+ try make DESTDIR=${D} install
+ if [ "`use ggi`" ]
+ then
+ cd ggi/ggiglut
+ try make DESTDIR=${D} install
+ cd ${D}/usr/lib
+ cp libglut.la libglut.orig
+ sed -e "s:-L${S}/src/.libs::g" libglut.orig > libglut.la
+ rm libglut.orig
+ fi
+
+ cd ${D}/usr/lib
+ if [ "$PN" = "mesa-glu" ]
+ then
+ rm -f libGL.*
+
+ rm -f ../include/GL/gl.h
+ rm -f ../include/GL/glx.h
+ rm -f ../include/GL/osmesa.h
+ else
+ ln -s libGL.so.2.1.030400 libMesaGL.so.3
+ fi
+ ln -s libGLU.so.1.1.030400 libMesaGLU.so.3
+
+
+ cd ${S}
+ dodoc docs/*
+}
+