summaryrefslogtreecommitdiff
blob: 8d33e2c571d548e7f6e4fe4bd63dc93c2507b838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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.ebuild,v 1.1 2000/12/11 18:05:42 achim Exp $

P=MesaLib-${PV}
A=${P}.tar.gz
S=${WORKDIR}/Mesa-${PV}
DESCRIPTION="OpenGL like graphic library for Linux"
SRC_URI="ftp://gd.tuwien.ac.at/graphics/libs/Mesa/${A}"
HOMEPAGE="http://mesa3d.sourceforge.net/"

DEPEND=">=sys-libs/glibc-2.1.3
	>=x11-base/xfree-4.0.1"

src_compile() {

    cd ${S}
    try ./configure --prefix=/usr/X11R6 --sysconfdir=/etc/mesa --host=${CHOST}
    try make

}

src_install () {

    cd ${S}
    try make DESTDIR=${D} install
#    rm -f ${D}/usr/X11R6/lib/libGL.*

#    rm -f ${D}/usr/X11R6/include/GL/gl.h
#    rm -f ${D}/usr/X11R6/include/GL/glx.h
#    rm -f ${D}/usr/X11R6/include/GL/osmesa.h
    cd ${D}/usr/X11R6/lib
    ln -s libGLU.so.1.1.030400 libMesaGLU.so.3
    ln -s libGL.so.2.1.030400 libMesaGL.so.3

    cd ${S}
    dodoc docs/*
}