summaryrefslogtreecommitdiff
blob: f9fc98dcc83ae99ec22e9ca2ac7eac079dcdf1a5 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/zsnes/zsnes-1.36.ebuild,v 1.8 2002/12/09 04:17:42 manson Exp $

# Don't attempt to introduce $CFLAGS usage, docs say result will be slower.

IUSE="opengl"

S=${WORKDIR}/${P}
DESCRIPTION="ZSNES is a SNES (Super Nintendo) emulator that uses x86 assembly."
SRC_URI="mirror://sourceforge/zsnes/zsnes136src.tar.gz"
HOMEPAGE="http://www.zsnes.com/"
LICENSE="GPL-2"
KEYWORDS="x86 -ppc -sparc "
SLOT="0"

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

DEPEND="${RDEPEND}
	>=dev-lang/nasm-0.98"

pkg_setup() {
	# xfree should not install these, remove until the fixed
	# xfree is in main use.
	rm -f /usr/X11R6/include/{zconf.h,zlib.h}
}

src_compile() {
	cd ${S}/src
	use opengl || myconf="--without-opengl"
	econf $myconf
	make || die
}

src_install() {
	cd ${S}/src
	into /usr
	dobin zsnes
	doman linux/zsnes.1
	cd ${S}
	dodoc *.txt linux/*
}