mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
OpenClonk: add recipe for 9.0~git version
This commit is contained in:
116
games-action/openclonk/openclonk-9.0~git.recipe
Normal file
116
games-action/openclonk/openclonk-9.0~git.recipe
Normal file
@@ -0,0 +1,116 @@
|
||||
SUMMARY="A free multiplayer action game where you control small and nimble humanoids"
|
||||
DESCRIPTION="OpenClonk is a multiplayer-action-tactics-skill game. \
|
||||
It is often referred to as a mixture of The Settlers and Worms. In a \
|
||||
simple 2D antfarm-style landscape, the player controls his crew of Clonks, \
|
||||
small but robust humanoid beings. The game encourages free play but the \
|
||||
normal goal is to either exploit valuable resources from the earth by \
|
||||
building a mine or fight each other on an arena-like map."
|
||||
HOMEPAGE="https://www.openclonk.org/"
|
||||
COPYRIGHT="2009-2018 OpenClonk Team and contributors"
|
||||
LICENSE="ISC"
|
||||
REVISION="1"
|
||||
srcGitRev="11cfcdd9103c039175a503419d3b658ffb6b4002"
|
||||
SOURCE_URI="https://github.com/openclonk/openclonk/archive/$srcGitRev.tar.gz"
|
||||
CHECKSUM_SHA256="6afe1a4af0b7a28fac6bb558e207c684262685cfca9a6ddfd838947d35d1a6ab"
|
||||
SOURCE_DIR="openclonk-$srcGitRev"
|
||||
PATCHES="openclonk-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="openclonk.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64 ?x86"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
openclonk$secondaryArchSuffix = $portVersion
|
||||
app:OpenClonk$secondaryArchSuffix
|
||||
cmd:c4group$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libalut$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libgio_2.0$secondaryArchSuffix
|
||||
lib:libglib_2.0$secondaryArchSuffix
|
||||
lib:libgmodule_2.0$secondaryArchSuffix
|
||||
lib:libgobject_2.0$secondaryArchSuffix
|
||||
lib:libgthread_2.0$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libglew$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libSDL2_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_image_2.0$secondaryArchSuffix
|
||||
lib:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libalut$secondaryArchSuffix
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libgio_2.0$secondaryArchSuffix
|
||||
devel:libglib_2.0$secondaryArchSuffix
|
||||
devel:libgmodule_2.0$secondaryArchSuffix
|
||||
devel:libgobject_2.0$secondaryArchSuffix
|
||||
devel:libgthread_2.0$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglew$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libopenal$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libSDL2_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_image_2.0$secondaryArchSuffix
|
||||
devel:libSDL2_mixer_2.0$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir/OpenClonk \
|
||||
-DWITH_APPDIR_INSTALLATION=ON \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
mv $appsDir/OpenClonk/bin/openclonk $appsDir/OpenClonk/OpenClonk
|
||||
mkdir -p $binDir
|
||||
mv $appsDir/OpenClonk/bin/* $binDir
|
||||
mv $appsDir/OpenClonk/share/games/openclonk $appsDir/OpenClonk/data
|
||||
rm -rf $appsDir/OpenClonk/{share,games,bin}
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.openclonk"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2 | cut -d~ -f1`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/openclonk.rdef.in > $sourceDir/openclonk.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/openclonk.rdef \
|
||||
"$appsDir/OpenClonk/OpenClonk"
|
||||
addAppDeskbarSymlink $appsDir/OpenClonk/OpenClonk
|
||||
}
|
||||
Reference in New Issue
Block a user