summaryrefslogtreecommitdiff
blob: 9741aa3cd725b99318b744e8b94d099f61e43981 (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-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/app-emulation/zsnes/zsnes-1.337.ebuild,v 1.2 2001/10/06 08:48:17 danarmak Exp $
# Don't attempt to introduce $CFLAGS usage, docs say result will be slower.

DESCRIPTION="zsnes is an excellent snes (super nintendo) emulator"

SRC_URI="http://prdownloads.sourceforge.net/zsnes/zsnes1337src.tar.gz"

HOMEPAGE="http://www.zsnes.com/"

S=${WORKDIR}/${P}

DEP="opengl? ( virtual/opengl )
    virtual/x11
    >=media-libs/libsdl-1.2.0
    sys-libs/zlib
    media-libs/libpng"

DEPEND="sys-devel/gcc
	virtual/glibc
	sys-devel/make
	>=dev-lang/nasm-0.98
	$DEP"
	
RDEPEND="$DEP"

src_compile() {
    cd ${S}/src
    use opengl || myconf="--without-opengl"
    ./configure --prefix=/usr --host=${CHOST} $myconf || die
    make
}
src_install () {
    cd ${S}/src
    into /usr
    dobin zsnes
    doman linux/zsnes.man
    cd ${S}
    dodoc *.txt linux/*
}