summaryrefslogtreecommitdiff
blob: ed6b0f46aa006f6cc647fe1137c51a24cda541f8 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/zsnes/zsnes-1.36.ebuild,v 1.7 2005/01/24 04:59:30 mr_bones_ Exp $

inherit games

DESCRIPTION="SNES (Super Nintendo) emulator that uses x86 assembly"
HOMEPAGE="http://www.zsnes.com/"
SRC_URI="mirror://sourceforge/zsnes/zsnes${PV//./}src.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* x86"
IUSE="opengl"

RDEPEND="opengl? ( virtual/opengl )
	>=media-libs/libsdl-1.2.0
	sys-libs/zlib
	media-libs/libpng"
DEPEND="${RDEPEND}
	>=dev-lang/nasm-0.98"

src_compile() {
	# Do NOT introduce custom ${CFLAGS}.
	# Current choices are the optimal ones
	cd src
	egamesconf `use_with opengl` || die
	emake || die "emake failed"
}

src_install() {
	dogamesbin src/zsnes
	newman src/linux/zsnes.1 zsnes.6
	dodoc *.txt linux/*
	prepgamesdirs
}