freedroidrpg-0.16.1.recipe revision 8591236b
1SUMMARY="A role playing game battling roboters"
2DESCRIPTION="The game tells the story of a world destroyed by a conflict \
3between robots and their human masters. Play as Tux in a quest to save the \
4world from the murderous rebel bots who know no mercy. You get to choose \
5which path you wish to follow, and freedom of choice is everywhere in the game.
6
7FreedroidRPG features a real time combat system with melee and ranged \
8weapons, fairly similar to the proprietary game Diablo. There is an \
9innovative system of programs that can be run in order to take control of \
10enemy robots, alter their behavior, or improve one's characteristics. You \
11can use over 50 different kinds of items and fight countless enemies on your \
12way to your destiny. An advanced dialog system provides story background and \
13immersive role playing situations.
14
15The game is complete, fully playable, and can provide about 10 hours of fun.
16It is still being actively developed, and help is welcome in many areas. \
17People having - or trying to acquire - programming, map editing, or writing \
18skills will find FreedroidRPG to be an exciting, fast-moving project in which \
19they can fully express their creativity."
20HOMEPAGE="http://freedroid.org"
21COPYRIGHT="2002-2015 The Freedroid team"
22LICENSE="GNU GPL v2"
23REVISION="4"
24SOURCE_URI="ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-0.16/freedroidRPG-$portVersion.tar.gz"
25CHECKSUM_SHA256="426df175034b12095e7498fd80c907e507667c960ee1da331d9e5566d1b09358"
26SOURCE_DIR="freedroidrpg-$portVersion"
27PATCHES="freedroidrpg-$portVersion.patchset"
28
29ARCHITECTURES="!x86_gcc2 x86 x86_64"
30SECONDARY_ARCHITECTURES="x86"
31
32PROVIDES="
33	freedroidrpg$secondaryArchSuffix = $portVersion
34	app:freedroidrpg$secondaryArchSuffix = $portVersion
35	cmd:croppy$secondaryArchSuffix = $portVersion
36	cmd:explode_atlas$secondaryArchSuffix = $portVersion
37	cmd:explodefont$secondaryArchSuffix = $portVersion
38	cmd:gluefont$secondaryArchSuffix = $portVersion
39	cmd:make_atlas$secondaryArchSuffix = $portVersion
40	cmd:pngtoico$secondaryArchSuffix = $portVersion
41	"
42REQUIRES="
43	freedroidrpg_data == $portVersion
44	haiku$secondaryArchSuffix
45	lib:libGL$secondaryArchSuffix
46	lib:libGLU$secondaryArchSuffix
47	lib:libjpeg$secondaryArchSuffix
48	lib:libogg$secondaryArchSuffix
49	lib:libpng16$secondaryArchSuffix
50	lib:libSDL_1.2$secondaryArchSuffix
51	lib:libSDL_gfx$secondaryArchSuffix
52	lib:libSDL_image_1.2$secondaryArchSuffix
53	#lib:libsdl_mixer$secondaryArchSuffix
54	lib:libvorbis$secondaryArchSuffix
55	lib:libz$secondaryArchSuffix
56	"
57
58SUMMARY_data="Data files for the game FreedroidRPG"
59ARCHITECTURES_data="any"
60PROVIDES_data="
61	freedroidrpg_data = $portVersion
62	"
63REQUIRES_data="
64	haiku
65	"
66
67BUILD_REQUIRES="
68	haiku${secondaryArchSuffix}_devel
69	devel:libGL$secondaryArchSuffix
70	devel:libGLU$secondaryArchSuffix
71	devel:libjpeg$secondaryArchSuffix
72	devel:libogg$secondaryArchSuffix
73	devel:libpng$secondaryArchSuffix
74	devel:libSDL$secondaryArchSuffix
75	devel:libSDL_gfx$secondaryArchSuffix
76	devel:libSDL_image$secondaryArchSuffix
77	#devel:libsdl_mixer$secondaryArchSuffix
78	devel:libvorbis$secondaryArchSuffix
79	devel:libz$secondaryArchSuffix
80	"
81BUILD_PREREQUIRES="
82	cmd:autoconf
83	cmd:automake
84	cmd:gcc$secondaryArchSuffix
85	cmd:gettext
86	cmd:ld$secondaryArchSuffix
87	cmd:libtoolize
88	cmd:make
89	cmd:pkg_config$secondaryArchSuffix
90	cmd:python
91	cmd:which
92	"
93
94PATCH()
95{
96	sed -i 's/lua.h/..\/lua\/lua.h/g' src/*.c
97	sed -i 's/lua.h/..\/lua\/lua.h/g' src/*.h
98	sed -i 's/lauxlib.h/..\/lua\/lauxlib.h/g' src/*.c
99	sed -i 's/lauxlib.h/..\/lua\/lauxlib.h/g' src/*.h
100	sed -i 's/lualib.h/..\/lua\/lualib.h/g' src/*.c
101	sed -i 's/lualib.h/..\/lua\/lualib.h/g' src/*.h
102}
103
104BUILD()
105{
106	echo "=== libtoolize"
107	libtoolize --force --copy --install
108	echo "=== aclocal"
109	aclocal
110	echo "=== automake"
111	automake --add-missing
112	echo "=== autoreconf"
113	autoreconf
114	echo "=== autoconf"
115	autoconf
116	echo "=== automake"
117	automake
118	runConfigure ./configure --disable-sdltest --with-embedded-lua
119	make $jobArgs
120}
121
122INSTALL()
123{
124	make install
125
126	mkdir -p $appsDir
127
128	mv $binDir/freedroidRPG $appsDir
129
130	packageEntries data \
131		$dataDir
132	addAppDeskbarSymlink $appsDir/freedroidRPG "FreedroidRPG"
133}
134