summaryrefslogtreecommitdiff
blob: 92cf230e3b86f81518105a2f803e7a5e859878b2 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2
inherit games

MY_PN=glfrontier
MY_P=${MY_PN}-${PV}
DESCRIPTION="Frontier: Elite 2 with OpenGL support"
HOMEPAGE="http://tom.noflag.org.uk/glfrontier.html"

SRC_URI="http://tom.noflag.org.uk/glfrontier/frontvm3-20060623.tar.bz2
         http://tom.noflag.org.uk/misc/frontvm-audio-20060222.tar.bz2"


LICENSE="GPL"
KEYWORDS="~x86 ~amd64"
IUSE=""

SLOT="0"

RDEPEND=">=media-libs/freeglut-2.6
         media-libs/libsdl
         media-libs/libogg"
DEPEND="${RDEPEND}"

S=${WORKDIR}

src_compile() {
	cd ${S}/frontvm3-20060623
	make -f Makefile-C || die "make install failed"
}

src_install() {
	mv ${S}/frontvm3-20060623/frontier ${S}/frontvm3-20060623/${MY_PN}

	insinto /opt/${MY_PN}
	doins ${S}/frontvm3-20060623/${MY_PN}
	doins ${S}/frontvm3-20060623/fe2.s.bin
	doins -r ${S}/frontvm-audio-20060222/*

	chgrp -R games ${D}/opt/${MY_PN}
	chmod g+x ${D}/opt/${MY_PN}/${MY_PN}

	make_desktop_entry /opt/${MY_PN}/${MY_PN} GLFrontier ${MY_PN} Game Path=/opt/${MY_PN}
	prepgamesdirs
}