# Copyright 1999-2009 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" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" RDEPEND="media-libs/freeglut 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 /opt/${MY_PN} prepgamesdirs }