blob: 2796c59a3e869bc0895341c1a153a84acc43408c (
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
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/celestia/celestia-1.2.5.ebuild,v 1.2 2003/02/13 08:54:10 vapier Exp $
inherit flag-o-matic
IUSE="gtk gnome"
S=${WORKDIR}/${P}
DESCRIPTION="Celestia is a free real-time space simulation that lets you experience our universe in three dimensions"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.shatters.net/celestia"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
DEPEND="gtk? ( =x11-libs/gtk+-1.2*
<x11-libs/gtkglarea-1.99.0 )
gnome? ( =gnome-base/gnome-libs-1.4* )
>=media-libs/glut-3.7-r2
virtual/glu
media-libs/jpeg
media-libs/libpng"
#src_unpack() {
# unpack ${A}
# cd ${S}
#
# patch -p1 < ${FILESDIR}/celestia-gcc3.patch
#}
pkg_setup() {
einfo "Please note:"
einfo "if you experience problems building celestia with nvidia drivers,"
einfo "you can try:"
einfo "opengl-update xfree"
einfo "emerge celestia"
einfo "opengl-update nvidia"
}
src_compile() {
local myconf
filter-flags "-funroll-loops -frerun-loop-opt"
# currently celestia's "gtk support" requires gnome
use gtk || myconf="--without-gtk"
use gnome || myconf="--without-gtk"
./configure --prefix=/usr ${myconf} || die
emake all || die
}
src_install() {
make install prefix=${D}/usr
dodoc AUTHORS COPYING NEWS README TODO controls.txt
dohtml manual/*.html manual/*.css
}
|