/[gentoo-x86]/app-sci/celestia/celestia-1.3.1.ebuild
Gentoo

Contents of /app-sci/celestia/celestia-1.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Tue Nov 30 00:48:58 2004 UTC (14 years, 10 months ago) by morfic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Out with the brokenness

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/celestia/celestia-1.3.1.ebuild,v 1.5 2004/11/16 08:40:52 phosphan Exp $
4
5 inherit eutils flag-o-matic kde-functions
6
7 IUSE="kde gnome"
8
9 DESCRIPTION="Celestia is a free real-time space simulation that lets you experience our universe in three dimensions"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11 HOMEPAGE="http://www.shatters.net/celestia"
12
13 SLOT="0"
14 LICENSE="GPL-2"
15 KEYWORDS="~x86 amd64"
16
17 # gnome and kde interfaces are exlcusive
18 DEPEND=">=media-libs/glut-3.7-r2
19 virtual/glu
20 media-libs/jpeg
21 media-libs/libpng
22 !kde? ( gnome? ( =x11-libs/gtk+-1.2*
23 =gnome-base/gnome-libs-1.4*
24 <x11-libs/gtkglarea-1.99.0 ) )
25 kde? ( >=kde-base/kdelibs-3.0.5 )"
26
27 pkg_setup() {
28 # Set up X11 implementation
29 X11_IMPLEM_P="$(portageq best_version "${ROOT}" virtual/x11)"
30 X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
31 X11_IMPLEM="${X11_IMPLEM##*\/}"
32
33 einfo "Please note:"
34 einfo "if you experience problems building celestia with nvidia drivers,"
35 einfo "you can try:"
36 einfo "opengl-update ${X11_IMPLEM}"
37 einfo "emerge celestia"
38 einfo "opengl-update nvidia"
39 einfo ""
40 einfo "NOTE: the gnome and kde GUIs are mutually exclusive, kde is"
41 einfo "recommended. If you're getting the wrong one, run either:"
42 einfo "'USE=\"gnome -kde\" emerge celestia' (for the gnome interface)"
43 einfo "or:"
44 einfo "'USE=\"kde\" emerge celestia' (for the kde interface)"
45 einfo "as appropriate."
46 }
47
48 src_unpack() {
49 unpack ${A}
50 cd ${S}
51 epatch ${FILESDIR}/${PN}-${PV}-gtkmain.patch
52 }
53
54 src_compile() {
55 local myconf
56
57 filter-flags "-funroll-loops -frerun-loop-opt"
58 addwrite ${QTDIR}/etc/settings
59 # currently celestia's "gtk support" requires gnome
60 if use kde ; then
61 myconf="$myconf --with-kde --without-gtk"
62 elif use gnome ; then
63 myconf="--without-kde --with-gtk"
64 else
65 myconf="--without-kde --without-gtk"
66 # fix for badly written configure script
67 set-kdedir 3
68 set-qtdir 3
69 export kde_widgetdir="$KDEDIR/lib/kde3/plugins/designer"
70 fi
71
72 ./configure --prefix=/usr ${myconf} || die
73
74 emake all || die
75 }
76
77 src_install() {
78 make install prefix=${D}/usr
79
80 dodoc AUTHORS COPYING NEWS README TODO controls.txt
81 dohtml manual/*.html manual/*.css
82 }

  ViewVC Help
Powered by ViewVC 1.1.20