mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
78 lines
2.0 KiB
Bash
78 lines
2.0 KiB
Bash
SUMMARY="Official continuation of the famous Blobby Volley 1.x arcade game"
|
|
DESCRIPTION="The head-to-head multiplayer ball game
|
|
|
|
The \"Dedicated Server\" runs with a Gamespeed of 100%, which means 75 FPS
|
|
The Port for the Server is 1234."
|
|
HOMEPAGE="https://github.com/danielknobe/blobbyvolley2"
|
|
COPYRIGHT="2006-2020 Daniel Knobe
|
|
2010-2015 Erik Schultheis
|
|
2006-2009 Jonathan Sieber
|
|
2006 Sven Rech"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
srcGitRev="70ec84da660bf59fe36e3d67508d009afa0ae9c8"
|
|
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="917291b4140f573030d63132860cde7cdacae4642efb6adf2abb754cb2c84afe"
|
|
SOURCE_FILENAME="blobbyvolley2-$srcGitRev.tar.gz"
|
|
SOURCE_DIR="blobbyvolley2-$srcGitRev"
|
|
PATCHES="blobbyvolley2-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
blobbyvolley2$secondaryArchSuffix = $portVersion
|
|
app:Blobby = $portVersion
|
|
cmd:blobby_server
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libphysfs$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libphysfs$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:zip
|
|
"
|
|
|
|
defineDebugInfoPackage blobbyvolley2$secondaryArchSuffix \
|
|
"$appsDir/Blobby" \
|
|
"$commandBinDir/blobby-server"
|
|
|
|
BUILD()
|
|
{
|
|
cmake . $cmakeDirArgs \
|
|
-DCMAKE_EXE_LINKER_FLAGS="-lnetwork" \
|
|
-DCMAKE_INSTALL_BINDIR="$commandBinDir"
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
install -m 755 -d "$appsDir" "$dataDir" "$docDir"
|
|
mv "$commandBinDir/blobby" "$appsDir/Blobby"
|
|
addAppDeskbarSymlink "$appsDir/Blobby" "Blobby Volley 2"
|
|
|
|
cp -r doc/* README.md "$docDir"
|
|
mv "$prefix/share/blobby" "$dataDir"
|
|
rm -rf "$dataDir/blobby/Icon.bmp" "$prefix/share"
|
|
}
|