z26-2.16.00s.recipe revision 952ccd6c
1SUMMARY="A fully-featured Atari 2600 emulator"
2DESCRIPTION="z26 is an Atari 2600 emulator which supports a lot of carts and a \
3whole lot of peripherals, including mindlink, Trak-Ball, Light Gun and much more!\
4It also supports multiload files, and a whole lot of other features."
5HOMEPAGE="http://whimsey.com/z26/"
6SRC_URI="http://whimsey.com/z26/z26v2.16.00s.zip"
7CHECKSUM_SHA256="fe285597543a9f562b25f11e57804c604d8226d9a6dc6dc1b9e2a4cfc5f38276"
8REVISION="1"
9LICENSE="GNU GPL v2"
10COPYRIGHT="1997-2004 John Saeger"
11
12ARCHITECTURES="x86"
13if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
14	# x86_gcc2 is fine as primary target architecture as long as we're building
15	# for a different secondary architecture.
16	ARCHITECTURES="$ARCHITECTURES x86_gcc2"
17fi
18
19SECONDARY_ARCHITECTURES="x86"
20
21PROVIDES="
22	z26$secondaryArchSuffix = $portVersion
23	app:z26$secondaryArchSuffix = $portVersion
24"
25REQUIRES="
26	haiku$secondaryArchSuffix
27	lib:libsdl$secondaryArchSuffix
28"
29BUILD_REQUIRES="
30	haiku${secondaryArchSuffix}_devel
31	devel:libsdl${secondaryArchSuffix}
32"
33BUILD_PREREQUIRES="
34	cmd:make
35	cmd:gcc$secondaryArchSuffix
36	cmd:nasm
37	cmd:ld$secondaryArchSuffix
38"
39SOURCE_DIR="src"
40
41BUILD()
42{
43	make beos
44}
45
46INSTALL()
47{
48	mkdir -p $appsDir
49	cp z26 $appsDir/z26
50	addAppDeskbarSymlink $appsDir/z26 "z26"
51}
52