fish_fillets-1.0.1.recipe revision 26a16436
1SUMMARY="A port of the wonderful puzzle game Fish Fillets from ALTAR interactive"
2DESCRIPTION="Fish Fillets NG is strictly a puzzle game. The goal in every of \
3the seventy levels is always the same: find a safe way out. The fish utter \
4witty remarks about their surroundings, the various inhabitants of their \
5underwater realm quarrel among themselves or comment on the efforts of your \
6fish. The whole game is accompanied by quiet, comforting music."
7HOMEPAGE="http://fillets.sourceforge.net/"
8COPYRIGHT="2004-2011 Ivo Danihelka"
9LICENSE="GNU GPL v2"
10REVISION="3"
11SOURCE_URI="http://prdownloads.sourceforge.net/fillets/fillets-ng-$portVersion.tar.gz"
12CHECKSUM_SHA256="329a4d9515d60bebdb657d070824933b993b85864b9d3e302e6361accab992da"
13SOURCE_DIR="fillets-ng-1.0.1"
14SOURCE_URI_2="http://prdownloads.sourceforge.net/fillets/fillets-ng-data-$portVersion.tar.gz"
15CHECKSUM_SHA256_2="f0c979fb35ec550a43246fc209add8f45ca550a382c94d6383bb3f01b1073799"
16PATCHES="fish_fillets-$portVersion.patchset"
17ADDITIONAL_FILES="fish_fillets.rdef.in"
18
19ARCHITECTURES="x86_gcc2 x86 ?x86_64"
20SECONDARY_ARCHITECTURES="x86"
21
22PROVIDES="
23	fish_fillets$secondaryArchSuffix = $portVersion
24	app:"FishFilletsNG"$secondaryArchSuffix = $portVersion
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	lib:libfribidi$secondaryArchSuffix
29	lib:liblua$secondaryArchSuffix >= 5.1
30	lib:libSDL_1.2$secondaryArchSuffix
31	lib:libSDL_image_1.2$secondaryArchSuffix
32	lib:libSDL_mixer_1.2$secondaryArchSuffix
33	lib:libSDL_ttf_2.0$secondaryArchSuffix
34	lib:libsmpeg$secondaryArchSuffix
35	"
36
37BUILD_REQUIRES="
38	haiku${secondaryArchSuffix}_devel
39	devel:libfribidi$secondaryArchSuffix
40	devel:liblua$secondaryArchSuffix >= 5.1
41	devel:libSDL$secondaryArchSuffix
42	devel:libSDL_image$secondaryArchSuffix
43	devel:libSDL_mixer$secondaryArchSuffix
44	devel:libSDL_ttf$secondaryArchSuffix
45	devel:libsmpeg$secondaryArchSuffix
46	"
47BUILD_PREREQUIRES="
48	cmd:autoconf
49	cmd:gcc$secondaryArchSuffix
50	cmd:libtoolize$secondaryArchSuffix
51	cmd:lua5.1$secondaryArchSuffix
52	cmd:make
53	cmd:pkg_config$secondaryArchSuffix
54	"
55
56BUILD()
57{
58	autoreconf -vfi
59	./configure --prefix=$appsDir/"Fish-Fillets" \
60		LUA_CFLAGS=-I"$(finddir B_SYSTEM_HEADERS_DIRECTORY)$secondaryArchSubDir/lua5.1" \
61		LUA_LIBS=-L"$(finddir B_SYSTEM_LIB_DIRECTORY)$secondaryArchSubDir -llua"
62
63	make $jobArgs
64}
65
66INSTALL()
67{
68	make install
69	ln -s $appsDir/"Fish-Fillets"/bin/fillets $appsDir/"Fish-Fillets"/"Fish Fillets NG"
70
71	mkdir -p $appsDir/"Fish-Fillets"/share/games/fillets-ng
72	cp -R $sourceDir2/fillets-ng-data-1.0.1/* $appsDir/"Fish-Fillets"/share/games/fillets-ng/
73
74	local MAJOR="`echo "$portVersion" | cut -d. -f1`"
75	local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
76	local MINOR="`echo "$portVersion" | cut -d. -f3`"
77	sed \
78		-e "s|@MAJOR@|$MAJOR|" \
79		-e "s|@MIDDLE@|$MIDDLE|" \
80		-e "s|@MINOR@|$MINOR|" \
81		$portDir/additional-files/fish_fillets.rdef.in > fish_fillets.rdef
82
83	addResourcesToBinaries fish_fillets.rdef \
84		$appsDir/"Fish-Fillets"/bin/fillets
85
86	addAppDeskbarSymlink $appsDir/"Fish-Fillets"/"Fish Fillets NG"
87}
88