blob: 7cdfb6cc1afe2912874e88e35c57baf7615eb1d0 (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/e-uae/e-uae-0.8.27.ebuild,v 1.4 2006/06/16 19:55:35 pva Exp $
inherit eutils flag-o-matic
DESCRIPTION="The Ubiquitous Amiga Emulator with an emulation core largely based on WinUAE"
HOMEPAGE="http://www.rcdrummond.net/uae/"
SRC_URI="http://www.rcdrummond.net/uae/${P}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ~x86"
IUSE="X gtk sdl ncurses svga"
DEPEND="virtual/libc
X? (
virtual/x11
gtk? ( >=x11-libs/gtk+-2.0.0 )
)
!X? (
ncurses? ( sys-libs/ncurses )
svga? ( media-libs/svgalib )
)
sdl? ( media-libs/libsdl )
app-cdr/cdrtools
games-emulation/caps"
src_compile() {
# -O3 breaks compilation, GCC will eat all your RAM + Swap and die
replace-flags "-O3" "-O2"
use x86 && strip-flags "-msse" "-msse2"
use ppc && strip-flags "-maltivec" "-mabi=altivec"
use sdl && myconf="--with-sdl-sound --with-sdl-gfx"
export WANT_AUTOMAKE=1.7
export WANT_AUTOCONF=2.5
./bootstrap.sh || die "bootstrap failed"
econf ${myconf} \
--enable-threads \
--enable-cdtv \
--enable-cd32 \
--enable-scsi-device \
--enable-bsdsock \
--with-libscg-includedir=/usr/include/scsilib \
|| die "./configure failed"
emake -j1 || die "emake failed"
}
src_install() {
dodoc docs/*
dodoc README COPYING ChangeLog CHANGES
emake install DESTDIR=${D}
insinto /usr/share/uae/amiga-tools
doins amiga/{*hack,trans*,uae*,*.library}
# Rename it to e-uae
mv ${D}/usr/bin/uae ${D}/usr/bin/e-uae
mv ${D}/usr/bin/readdisk ${D}/usr/bin/e-readdisk
mv ${D}/usr/share/uae ${D}/usr/share/${PN}
}
|