1SUMMARY="E-UAE Experimental Ubiquitous Amiga Emulator"
2DESCRIPTION="This is a version of UAE, the Ubiquitous Amiga Emulator, with an \
3emulation core largely based on WinUAE. It attempts to bring many of the \
4great features of WinUAE to non-Windows platforms. This version now finally \
5has a name, E-UAE, since that's what everybody was calling it anyway. The 'E' \
6can stand for anything you fancy. Experimental, extreme, exciting, \
7egalitarian, eggplant, . . .
8Currently it will build and run (with a varying degree of supported features) \
9on Linux and other Unices, Mac OS X, BeOS, AmigaOS itself (either for 68k \
10machines or PPC machines with AmigaOS 4.0 and the AmigaOS clones MorphOS and \
11AROS). OS X requires either LibSDL or an X server for graphics output, but \
12native graphics are supported on AmigaOS and BeOS, although, at the moment, \
13SDL is also preferred on BeOS since the native driver is incomplete.
14E-UAE is open-source software and is made available under the terms of the \
15GNU GPL. E-UAE is based on the work of dozens of contributors including Bernd \
16Schmidt (the original author and maintainer of UAE), Bernie Meyer (the author \
17of the x86 JIT compiler), Toni Wilen (the current maintainer of WinUAE), and \
18many more.
19To make full use of E-UAE you will need access to an image of some version of \
20the Amiga Kickstart ROM (although UAE does include a ROM emulation which may \
21work with some old games). The Amiga Kickstart ROMs are copyrighted material \
22and may not be freely distributed (so don't ask me for a copy). If you don't \
23have an Amiga from which you can legally make a ROM image, a selection of ROM \
24images are available for purchase online from Cloanto - publishers of the \
25Amiga Forever distribution."
26HOMEPAGE="https://www.rcdrummond.net/uae/"
27COPYRIGHT="2004-2007 Richard Drummond"
28LICENSE="GNU GPL v2"
29REVISION="5"
30SOURCE_URI="http://www.rcdrummond.net/uae/e-uae-0.8.29-WIP4/e-uae-0.8.29-WIP4.tar.bz2"
31CHECKSUM_SHA256="9828cb0fca783160bcb33900d0254f4bdaade1c9a41256e5f298e973d0c07456"
32SOURCE_DIR="e-uae-0.8.29-WIP4"
33PATCHES="euae-0.8.29~wip4.patchset"
34
35ARCHITECTURES="all !x86_gcc2 ?arm"
36SECONDARY_ARCHITECTURES="x86"
37
38commandBinDir=$binDir
39commandSuffix=$secondaryArchSuffix
40if [ "$targetArchitecture" = x86_gcc2 ]
41then
42	commandBinDir=$prefix/bin
43	commandSuffix=
44fi
45
46PROVIDES="
47	euae$secondaryArchSuffix = $portVersion
48	cmd:readdisk$commandSuffix
49	cmd:uae$commandSuffix
50	"
51REQUIRES="
52	haiku$secondaryArchSuffix
53	lib:libbz2$secondaryArchSuffix
54	lib:libGL$secondaryArchSuffix
55	lib:libGLU$secondaryArchSuffix
56	lib:libncurses$secondaryArchSuffix
57	lib:libpng16$secondaryArchSuffix
58	lib:libSDL_1.2$secondaryArchSuffix
59	lib:libsdl_sound_1.0$secondaryArchSuffix
60	lib:libxml2$secondaryArchSuffix
61	lib:libz$secondaryArchSuffix
62	"
63
64BUILD_REQUIRES="
65	haiku${secondaryArchSuffix}_devel
66	devel:libbz2$secondaryArchSuffix
67	devel:libGL$secondaryArchSuffix
68	devel:libGLU$secondaryArchSuffix
69	devel:libncurses$secondaryArchSuffix
70	devel:libpng16$secondaryArchSuffix
71	devel:libSDL_1.2$secondaryArchSuffix
72	devel:libSDL_sound_1.0$secondaryArchSuffix
73	devel:libxml2$secondaryArchSuffix
74	devel:libz$secondaryArchSuffix
75	"
76BUILD_PREREQUIRES="
77	cmd:autoreconf
78	cmd:awk
79	cmd:bison
80	cmd:flex
81	cmd:gcc$secondaryArchSuffix
82	cmd:libtoolize$secondaryArchSuffix
83	cmd:make
84	cmd:perl
85	cmd:pkg_config$secondaryArchSuffix
86	"
87
88defineDebugInfoPackage euae$secondaryArchSuffix \
89	$commandBinDir/readdisk \
90	$commandBinDir/uae \
91
92BUILD()
93{
94	autoreconf -vfi
95	runConfigure --omit-dirs "binDir sbinDir" ./configure \
96		--bindir="$commandBinDir" \
97		--sbindir="$commandBinDir" \
98		--with-sdl \
99		--with-sdl-gfx \
100		--with-sdl-sound \
101		--with-sdl-gl \
102		--with-curses \
103		--enable-threads \
104		--enable-audio \
105		--enable-jit \
106		--disable-bsdsock \
107		--disable-dependency-tracking
108	make $jobArgs
109}
110
111INSTALL()
112{
113	make install
114}
115