summaryrefslogtreecommitdiff
blob: 0c433ffd82ff28c5122f24d2c032de67206b64d4 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-sci/lightspeed/lightspeed-1.2a.ebuild,v 1.6 2004/04/25 22:51:19 agriffis Exp $

DESCRIPTION="Light Speed! is an OpenGL-based program developed to illustrate the effects of special relativity on the appearance of moving objects."
HOMEPAGE="http://lightspeed.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
	 mirror://sourceforge/${PN}/objects-1.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 ~amd64"

IUSE="png tiff"
DEPEND="virtual/opengl
	=x11-libs/gtkglarea-1.2.3-r1
	>=x11-libs/gtk+-1.0.1
	png? ( media-libs/libpng )
	tiff? ( media-libs/tiff )"
#RDEPEND=""
S2="${WORKDIR}/objects"

src_compile() {
	econf || die "econf failed"
	emake || die
}

src_install() {
	einstall
	dodoc AUTHORS COPYING ChangeLog INSTALL MATH NEWS README TODO
	cd ${S2}
	mv README objects-README
	dodoc objects-README
	insinto /usr/share/${PN}
	doins *.3ds *.lwo
}

pkg_postinst() {
	einfo
	einfo "Some 3d models have been placed in /usr/share/${PN}"
	einfo "You can load them in Light Speed! from the File menu."
	einfo
}