summaryrefslogtreecommitdiff
blob: 972bfaee9d82eb67edc51c2c6de40b6ecd5ca8af (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/uae/uae-0.8.22.ebuild,v 1.9 2003/08/26 09:14:08 msterret Exp $

DESCRIPTION="An amiga emulator"
HOMEPAGE="http://www.freiburg.linux.de/~uae/"
SRC_URI="ftp://ftp.freiburg.linux.de/pub/uae/sources/develop/${P}.tar.gz"

KEYWORDS="x86 ~ppc"
LICENSE="GPL-2"
SLOT="0"
IUSE="X gtk svga sdl"

DEPEND="X? ( virtual/x11 gtk? ( x11-libs/gtk+ ) ) : ( sys-libs/ncurses svga? ( media-libs/svgalib ) )
		sdl? ( media-libs/libsdl )"

src_compile() {
	local myconf=""

	if [ `use X` ]; then
		myconf="--with-x --enable-dga --enable-vidmode --with-sdl --with-sdl-sound --with-sdl-gfx"
		myconf="$myconf `use_enable gtk ui`"
	else
		if [ `use svga` ]; then
			myconf="--with-svgalib";
		else
			myconf="--with-asciiart";
		fi
	fi

	patch -p0 < ${FILESDIR}/uae-patch.diff
	econf \
		--enable-threads \
		--enable-scsi-device \
		${myconf} || die "./configure failed"

	emake || die "emake failed"
}

src_install() {
	dobin uae readdisk
	cp docs/unix/README docs/README.unix
	dodoc docs/*

	insinto /usr/share/uae/amiga-tools
	doins amiga/{*hack,trans*,uae*}
}