Lines 1-18
Link Here
|
1 |
# Copyright 1999-2005 Gentoo Foundation |
1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/e-uae/e-uae-0.8.27.ebuild,v 1.3 2005/06/15 11:12:45 dholm Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic |
5 |
inherit eutils flag-o-matic |
6 |
|
6 |
|
7 |
DESCRIPTION="The Eggplant Umiquious Amiga Emulator" |
7 |
MY_P="e-uae-0.8.28-RC2" |
|
|
8 |
DESCRIPTION="The Eggplant Ubiquitous Amiga Emulator" |
8 |
HOMEPAGE="http://www.rcdrummond.net/uae/" |
9 |
HOMEPAGE="http://www.rcdrummond.net/uae/" |
9 |
SRC_URI="http://www.rcdrummond.net/uae/${P}/${P}.tar.bz2" |
10 |
SRC_URI="http://www.rcdrummond.net/uae/${MY_P}/${MY_P}.tar.bz2" |
10 |
|
11 |
|
11 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
SLOT="0" |
13 |
KEYWORDS="~amd64 ppc ~x86" |
14 |
KEYWORDS="~amd64 ~ppc ~x86" |
14 |
IUSE="X gtk sdl ncurses svga" |
15 |
IUSE="X gtk sdl ncurses svga" |
15 |
|
16 |
|
|
|
17 |
RESTRICT="nomirror" |
18 |
|
16 |
DEPEND="virtual/libc |
19 |
DEPEND="virtual/libc |
17 |
X? ( |
20 |
X? ( |
18 |
virtual/x11 |
21 |
virtual/x11 |
Lines 26-47
Link Here
|
26 |
app-cdr/cdrtools |
29 |
app-cdr/cdrtools |
27 |
games-emulation/caps" |
30 |
games-emulation/caps" |
28 |
|
31 |
|
|
|
32 |
S="${WORKDIR}/${MY_P}" |
33 |
|
29 |
src_compile() { |
34 |
src_compile() { |
30 |
# -O3 breaks compilation, GCC will eat all your RAM + Swap and die |
|
|
31 |
replace-flags "-O3" "-O2" |
32 |
use x86 && strip-flags "-msse" "-msse2" |
33 |
use ppc && strip-flags "-maltivec" "-mabi=altivec" |
35 |
use ppc && strip-flags "-maltivec" "-mabi=altivec" |
34 |
use sdl && myconf="--with-sdl-sound --with-sdl-gfx" |
36 |
use sdl && myconf="--with-sdl-sound --with-sdl-gfx" |
35 |
|
37 |
|
36 |
export WANT_AUTOMAKE=1.7 |
38 |
export WANT_AUTOMAKE=1.7 |
37 |
export WANT_AUTOCONF=2.5 |
39 |
export WANT_AUTOCONF=2.5 |
|
|
40 |
|
38 |
./bootstrap.sh || die "bootstrap failed" |
41 |
./bootstrap.sh || die "bootstrap failed" |
|
|
42 |
|
39 |
econf ${myconf} \ |
43 |
econf ${myconf} \ |
40 |
--enable-threads \ |
44 |
--enable-threads \ |
41 |
--enable-cdtv \ |
45 |
--enable-cdtv \ |
42 |
--enable-cd32 \ |
46 |
--enable-cd32 \ |
43 |
--enable-scsi-device \ |
47 |
--enable-scsi-device \ |
44 |
--enable-bsdsock \ |
48 |
--enable-bsdsock-new \ |
45 |
--with-libscg-includedir=/usr/include/scsilib \ |
49 |
--with-libscg-includedir=/usr/include/scsilib \ |
46 |
|| die "./configure failed" |
50 |
|| die "./configure failed" |
47 |
|
51 |
|
Lines 52-64
Link Here
|
52 |
dodoc docs/* |
56 |
dodoc docs/* |
53 |
dodoc README COPYING ChangeLog CHANGES |
57 |
dodoc README COPYING ChangeLog CHANGES |
54 |
|
58 |
|
55 |
emake install DESTDIR=${D} |
59 |
make install DESTDIR=${D} |
56 |
|
|
|
57 |
insinto /usr/share/uae/amiga-tools |
58 |
doins amiga/{*hack,trans*,uae*,*.library} |
59 |
|
60 |
|
60 |
# Rename it to e-uae |
61 |
# Rename executables, to prevent conflict with uae ebuild |
61 |
mv ${D}/usr/bin/uae ${D}/usr/bin/e-uae |
62 |
mv ${D}/usr/bin/uae ${D}/usr/bin/e-uae |
62 |
mv ${D}/usr/bin/readdisk ${D}/usr/bin/e-readdisk |
63 |
mv ${D}/usr/bin/readdisk ${D}/usr/bin/e-readdisk |
63 |
mv ${D}/usr/share/uae ${D}/usr/share/${PN} |
|
|
64 |
} |
64 |
} |