mupen64-0.5.recipe revision 57553045
1SUMMARY="A portable Nintendo 64 emulator"
2DESCRIPTION="Mupen64 is a portable Nintendo 64 emulator. It emulates most Nintendo \
364 games perfectly enough that they are playable."
4HOMEPAGE="http://mupen64.emulation64.com/"
5COPYRIGHT="2005 Hacktarux & Azimer"
6SRC_URI="http://mupen64.emulation64.com/files/0.5/mupen64_src-0.5.tar.bz2"
7CHECKSUM_SHA256="1b8e4188ab7a94d8125b77aed8725ee348c24818622b881adfe16be510487dfd"
8SOURCE_DIR="mupen64_src-$portVersion"
9PATCHES="mupen64-$portVersion.patch"
10REVISION="1"
11LICENSE="GNU GPL v2"
12
13DISABLE_SOURCE_PACKAGE="YES" # bug in HaikuPorter that makes this fail
14
15ARCHITECTURES="x86 ?x86_64"
16if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
17    # x86_gcc2 is fine as primary target architecture as long as we're building
18    # for a different secondary architecture.
19    ARCHITECTURES="$ARCHITECTURES x86_gcc2"
20else
21    ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
22fi
23SECONDARY_ARCHITECTURES="x86"
24
25PROVIDES="
26	mupen64$secondaryArchSuffix = $portVersion
27	cmd:mupen64_nogui = $portVersion
28	"
29REQUIRES="
30	haiku$secondaryArchSuffix >= $haikuVersion
31	lib:libgl$secondaryArchSuffix
32	lib:libsdl_1.2$secondaryArchSuffix >= 0.11.4
33	lib:libz$secondaryArchSuffix
34	"
35BUILD_REQUIRES="
36	haiku${secondaryArchSuffix}_devel >= $haikuVersion
37	devel:libgl$secondaryArchSuffix
38	devel:libsdl_1.2$secondaryArchSuffix >= 0.11.4
39	devel:libz$secondaryArchSuffix
40	"
41BUILD_PREREQUIRES="
42	cmd:pkg_config$secondaryArchSuffix
43	cmd:make
44	cmd:gcc$secondaryArchSuffix
45	cmd:ld$secondaryArchSuffix
46	"
47
48BUILD()
49{
50	export WITH_HOME="$prefix/"
51	make -e $jobArgs \
52		mupen64_nogui \
53		plugins/mupen64_input.so \
54		plugins/mupen64_hle_rsp_azimer.so \
55		plugins/dummyaudio.so \
56		plugins/jttl_audio.so \
57		plugins/mupen64_soft_gfx.so
58}
59
60INSTALL()
61{
62	mkdir -p $prefix $prefix/bin $prefix/data/mupen64
63	
64	cp mupen64_nogui $prefix/bin
65	cp mupen64.ini $prefix/data/mupen64
66	cp -rv lang $prefix/data/mupen64
67	cp -rv plugins $prefix/data/mupen64
68	cp -rv doc $prefix/data/mupen64
69}
70