blob: e6ca665be8410f9df8896c951b83e94e854890e9 (
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
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lisp/gauche-gl/gauche-gl-0.1.3.ebuild,v 1.3 2003/09/06 22:35:54 msterret Exp $
DESCRIPTION="OpenGL 1.1 bindings for Gauche"
HOMEPAGE="http://gauche.sf.net"
SRC_URI="mirror://sourceforge/gauche/Gauche-gl-${PV}.tgz"
LICENSE="BSD"
SLOT="0.1"
KEYWORDS="x86"
DEPEND="virtual/glibc
virtual/opengl
>=dev-lisp/gauche-0.6
>=media-libs/glut-3.7"
RDEPEND="$DEPEND"
S=${WORKDIR}/Gauche-gl
src_unpack() {
unpack Gauche-gl-${PV}.tgz || die
cd ${S}
patch -p1 < ${FILESDIR}/${PV}/nvidia-headers-gentoo.diff || die
patch -p1 < ${FILESDIR}/${PV}/destdir-gentoo.diff || die
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man || die "./configure failed"
#emake || die
make || die
}
src_install () {
dodir `gauche-config --syslibdir`
dodir `gauche-config --sysarchdir`
dodir `gauche-config --sysincdir`
make DESTDIR=${D} install || die
dodoc COPYING README ChangeLog INSTALL* VERSION
local expls=/usr/share/${P}/examples
dodir ${expls}/glbook
insinto ${expls}
doins examples/mandelbrot.scm
insinto ${expls}/glbook
doins examples/glbook/*
}
|