dosbox-0.74.recipe revision 2bc17629
1SUMMARY="A DOS-Emulator that uses SDL library"
2DESCRIPTION="DOSBox is a DOS-emulator that uses the SDL-library which makes \
3DOSBox very easy to port to different platforms. DOSBox has already been \
4ported to many different platforms, such as Windows, BeOS, Linux, MacOS X...
5DOSBox also emulates CPU:286/386 realmode/protected mode, Directory \
6FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a \
7SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with \
8older games...
9You can re-live the good old days with the help of DOSBox, it can run plenty \
10of the old classics that don't run on your new computer!
11DOSBox is totally free of charge and OpenSource."
12HOMEPAGE="https://www.dosbox.com/"
13COPYRIGHT="2002-2013 The DosBox Team"
14LICENSE="GNU GPL v2"
15REVISION="6"
16SOURCE_URI="http://sourceforge.net/projects/dosbox/files/dosbox/$portVersion/dosbox-$portVersion.tar.gz"
17CHECKSUM_SHA256="13f74916e2d4002bad1978e55727f302ff6df3d9be2f9b0e271501bd0a938e05"
18PATCHES="dosbox-$portVersion.patchset"
19ADDITIONAL_FILES="dosbox.rdef"
20
21ARCHITECTURES="!x86_gcc2 x86_64"
22SECONDARY_ARCHITECTURES="x86"
23
24PROVIDES="
25	dosbox$secondaryArchSuffix = $portVersion
26	cmd:dosbox$secondaryArchSuffix = $portVersion
27	"
28REQUIRES="
29	haiku$secondaryArchSuffix
30	lib:libsdl_1.2$secondaryArchSuffix
31	lib:libsdl_net_1.2$secondaryArchSuffix
32	lib:libsdl_sound_1.0$secondaryArchSuffix
33	lib:libglu$secondaryArchSuffix
34	lib:libpng16$secondaryArchSuffix
35	lib:libz$secondaryArchSuffix
36	lib:libGL$secondaryArchSuffix
37	"
38
39BUILD_REQUIRES="
40	haiku${secondaryArchSuffix}_devel
41	devel:libglu$secondaryArchSuffix
42	devel:libpng16$secondaryArchSuffix
43	devel:libz$secondaryArchSuffix
44	devel:libsdl_net_1.2$secondaryArchSuffix
45	devel:libsdl_sound_1.0$secondaryArchSuffix
46	devel:libsdl_1.2$secondaryArchSuffix
47	"
48BUILD_PREREQUIRES="
49	cmd:autoconf
50	cmd:libtoolize
51	cmd:find
52	cmd:make
53	cmd:gcc$secondaryArchSuffix
54	cmd:ld$secondaryArchSuffix
55	cmd:aclocal
56	"
57
58BUILD()
59{
60	autoreconf -vfi
61	# Dynamic core x86 and fpu-x86 available on on x86 cpu
62	LDFLAGS=-lnetwork runConfigure ./configure \
63		--enable-core-inline \
64		--enable-dynamic-core \
65		--enable-dynamic-x86 \
66		--enable-dynrec \
67		--enable-fpu \
68		--enable-fpu-x86 \
69		--enable-unaligned_memory \
70		--enable-opengl
71	make $jobArgs
72}
73
74INSTALL()
75{
76	make install
77
78	strip $binDir/dosbox
79
80	addResourcesToBinaries $portDir/additional-files/dosbox.rdef $binDir/dosbox
81	addAppDeskbarSymlink $binDir/dosbox "DOSBox"
82}
83