homeworld_sdl-0.6.recipe revision 81146772
1SUMMARY="A space real-time strategy computer game"
2DESCRIPTION="Homeworld is a real-time strategy computer game, set and played \
3in a 3D space environment. Developed by Relic Entertainment, it was released \
4for the PC in 1998 to worldwide acclaim, winning multiple awards for its \
5novel gameplay and strong single-player story. Relic Entertainment later \
6released the source code to the public under license."
7HOMEPAGE="https://gitlab.com/ThibaultLemaire/HomeworldSDL/"
8COPYRIGHT="1999-2000 Sierra On-Line, Inc."
9LICENSE="RE-INC-EULA"
10REVISION="3"
11SOURCE_URI="https://bitbucket.org/extrowerk/homeworld-sdl-haiku/get/e80d5e8c7a73.tar.gz"
12CHECKSUM_SHA256="f098c3f713eca5718433ffb4bc9a7ad71eb7d584cbf9fe9eb3a1266363843bd1"
13SOURCE_DIR="extrowerk-homeworld-sdl-haiku-e80d5e8c7a73"
14
15ARCHITECTURES="x86_gcc2 x86 x86_64"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	homeworld_sdl$secondaryArchSuffix = $portVersion
20	app:homeworld_sdl$secondaryArchSuffix = $portVersion
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	lib:libGL$secondaryArchSuffix
25	lib:libglu$secondaryArchSuffix
26	lib:libsdl$secondaryArchSuffix
27	"
28
29BUILD_REQUIRES="
30	haiku${secondaryArchSuffix}_devel
31	devel:libgl$secondaryArchSuffix
32	devel:libglu$secondaryArchSuffix
33	devel:libsdl$secondaryArchSuffix
34	"
35BUILD_PREREQUIRES="
36	cmd:aclocal
37	cmd:autoconf
38	cmd:flex
39	cmd:gcc$secondaryArchSuffix
40	cmd:ld$secondaryArchSuffix
41	cmd:libtool
42	cmd:make
43	cmd:unzip
44	cmd:yacc$secondaryArchSuffix
45	"
46
47BUILD()
48{
49	cd Haiku
50	echo "Bootstrapping Homewold_SDL"
51	bash ./bootstrap
52	echo "Configuring Homeworld_SDL"
53	runConfigure ../configure -C --bindir=$appsDir/Homeworld_SDL
54	echo "Building Homeworld_SDL"
55	make $jobArgs
56}
57
58INSTALL()
59{
60	cd Haiku/src
61	echo "Striping debug symbols"
62	strip homeworld
63	echo "Creating bin directory for packaging Homeworld_SDL"
64	mkdir -p $appsDir/Homeworld_SDL
65	echo "Moving binary into the bin directory"
66	cp homeworld $appsDir/Homeworld_SDL/homeworld_sdl
67	cd ..
68	unzip -o ./Haiku_Extra/Homeworld_Haiku_Start.sh.zip
69	cp Homeworld_Haiku_Start.sh $appsDir/Homeworld_SDL/Start_Homeworld_SDL.sh
70	echo "Adding Homeworld_SDL to the Deskbar"
71	addAppDeskbarSymlink $appsDir/Homeworld_SDL/Start_Homeworld_SDL.sh \
72		Homeworld_SDL
73}
74