1 |
I'd be very happy if a few people would look at this before I submit |
2 |
it and see if there are any obvious errors. it would be nice if a |
3 |
few people tested this before I submitted it. ;-) |
4 |
|
5 |
x200 root # cat /usr/portage/app-emulation/uae/uae-0.8.21.ebuild |
6 |
# Copyright 1999-2002 Gentoo Technologies, Inc. |
7 |
# Distributed under the terms of the GNU General Public License v2 |
8 |
# /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.8 2002/05/30 01:54:49 sandymac Exp |
9 |
|
10 |
DESCRIPTION="An amiga emulator" |
11 |
|
12 |
HOMEPAGE="http://www.freiburg.linux.de/~uae/" |
13 |
LICENSE="GPL" |
14 |
|
15 |
if [ `use X` ]; |
16 |
then |
17 |
DEPEND="virtual/x11 |
18 |
gtk? x11-libs/gtk+ |
19 |
media-libs/libsdl" |
20 |
else |
21 |
if [ `use svgalib` ]; |
22 |
then |
23 |
DEPEND="sys-libs/ncurses |
24 |
media-libs/svgalib" |
25 |
|
26 |
else |
27 |
DEPEND="sys-libs/ncurses"; |
28 |
fi |
29 |
fi |
30 |
|
31 |
SRC_URI="ftp://ftp.freiburg.linux.de/pub/uae/sources/develop/${P}.tar.gz" |
32 |
|
33 |
S=${WORKDIR}/${P} |
34 |
|
35 |
src_compile() { |
36 |
|
37 |
myopt=""; |
38 |
|
39 |
if [ `use X` ]; |
40 |
then |
41 |
if [ `use dga` ]; |
42 |
then myopt="--enable-dga"; |
43 |
fi |
44 |
myopt="--with-x $myopt --with-sdl --with-sdl-sound --with-sdl-gfx"; |
45 |
else |
46 |
if [ `use svgalib` ]; |
47 |
then |
48 |
myopt="--with-svgalib --without-sdl --without-x"; |
49 |
else |
50 |
myopt="--with-asciiart --without-sdl --without-svgalib --without-x"; |
51 |
fi |
52 |
fi |
53 |
|
54 |
./configure \ |
55 |
--host=${CHOST} \ |
56 |
--prefix=/usr \ |
57 |
$myopt || die "./configure failed" |
58 |
|
59 |
emake || die |
60 |
} |
61 |
|
62 |
src_install () { |
63 |
dobin uae readdisk |
64 |
dodoc docs/* |
65 |
dodoc docs/unix/* |
66 |
} |
67 |
|
68 |
|
69 |
-- |
70 |
Terje |