1SUMMARY="Official continuation of the famous Blobby Volley 1.x arcade game"
2DESCRIPTION="The head-to-head multiplayer ball game
3
4The \"Dedicated Server\" runs with a Gamespeed of 100%, which means 75 FPS
5The Port for the Server is 1234."
6HOMEPAGE="https://github.com/danielknobe/blobbyvolley2"
7COPYRIGHT="2006-2020 Daniel Knobe
8	2010-2015 Erik Schultheis
9	2006-2009 Jonathan Sieber
10	2006 Sven Rech"
11LICENSE="GNU GPL v2"
12REVISION="2"
13srcGitRev="70ec84da660bf59fe36e3d67508d009afa0ae9c8"
14SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
15CHECKSUM_SHA256="917291b4140f573030d63132860cde7cdacae4642efb6adf2abb754cb2c84afe"
16SOURCE_FILENAME="blobbyvolley2-$srcGitRev.tar.gz"
17SOURCE_DIR="blobbyvolley2-$srcGitRev"
18PATCHES="blobbyvolley2-$portVersion.patchset"
19
20ARCHITECTURES="all !x86_gcc2"
21commandBinDir=$binDir
22if [ "$targetArchitecture" = x86_gcc2 ]; then
23SECONDARY_ARCHITECTURES="x86"
24commandBinDir=$prefix/bin
25fi
26
27PROVIDES="
28	blobbyvolley2$secondaryArchSuffix = $portVersion
29	app:Blobby = $portVersion
30	cmd:blobby_server
31	"
32REQUIRES="
33	haiku$secondaryArchSuffix
34	lib:libGL$secondaryArchSuffix
35	lib:libphysfs$secondaryArchSuffix
36	lib:libSDL2_2.0$secondaryArchSuffix
37	"
38
39BUILD_REQUIRES="
40	haiku${secondaryArchSuffix}_devel
41	devel:libboost_system$secondaryArchSuffix
42	devel:libGL$secondaryArchSuffix
43	devel:libphysfs$secondaryArchSuffix
44	devel:libSDL2_2.0$secondaryArchSuffix
45	"
46BUILD_PREREQUIRES="
47	cmd:cmake
48	cmd:gcc$secondaryArchSuffix
49	cmd:make
50	cmd:pkg_config$secondaryArchSuffix
51	cmd:zip
52	"
53
54defineDebugInfoPackage blobbyvolley2$secondaryArchSuffix \
55	"$appsDir/Blobby" \
56	"$commandBinDir/blobby-server"
57
58BUILD()
59{
60	cmake . $cmakeDirArgs \
61		-DCMAKE_EXE_LINKER_FLAGS="-lnetwork" \
62		-DCMAKE_INSTALL_BINDIR="$commandBinDir"
63	make $jobArgs
64}
65
66INSTALL()
67{
68	make install
69
70	install -m 755 -d "$appsDir" "$dataDir" "$docDir"
71	mv "$commandBinDir/blobby" "$appsDir/Blobby"
72	addAppDeskbarSymlink "$appsDir/Blobby" "Blobby Volley 2"
73
74	cp -r doc/* README.md "$docDir"
75	mv "$prefix/share/blobby" "$dataDir"
76	rm -rf "$dataDir/blobby/Icon.bmp" "$prefix/share"
77}
78