blob: 949ded1f5a1c8265db459930f8e93a6b82da4f7e (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/stella/stella-1.4.2.ebuild,v 1.1 2005/02/24 02:21:05 mr_bones_ Exp $
inherit games
DESCRIPTION="Stella Atari 2600 VCS Emulator"
HOMEPAGE="http://stella.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE="opengl"
DEPEND="virtual/libc
media-libs/libsdl
media-libs/libpng
opengl? ( virtual/opengl )"
src_unpack() {
unpack ${A}
cd "${S}"
rm -f License.txt
sed -i \
-e "s:/etc:${GAMES_SYSCONFDIR}:g" \
src/unix/SettingsUNIX.cxx \
src/macosx/mainSDL.cxx \
docs/stella.html \
Changes.txt \
|| die "sed failed"
}
src_compile() {
local target="linux"
use opengl && target="linux-gl"
cd "${S}/src/build"
emake OPTIMIZATIONS="${CFLAGS}" SMP="${MAKEOPTS}" ${target} \
|| die "emake failed"
}
src_install() {
dogamesbin src/build/stella || die "dogamesbin failed"
insinto "${GAMES_SYSCONFDIR}"
doins src/emucore/stella.pro || die "doins failed"
dohtml -r docs/
dodoc *.txt
prepgamesdirs
}
|