mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
Colobot: bump version
This commit is contained in:
113
games-strategy/colobot/colobot-0.1.11.1.recipe
Normal file
113
games-strategy/colobot/colobot-0.1.11.1.recipe
Normal file
@@ -0,0 +1,113 @@
|
||||
SUMMARY="An educational real-time strategy video game featuring 3D graphics"
|
||||
DESCRIPTION="Colobot: Gold Edition is a real-time strategy game, where you can \
|
||||
program your units (bots) in a language called CBOT, which is similar to C++ and \
|
||||
Java. Your mission is to find a new planet to live and survive. You can save the \
|
||||
humanity and get programming skills!"
|
||||
HOMEPAGE="https://colobot.info/"
|
||||
COPYRIGHT="Epsitec and TerranovaTeam"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/colobot/colobot/archive/colobot-gold-$portVersion-alpha.tar.gz"
|
||||
CHECKSUM_SHA256="8e57b84f109ce91cf2d311c38772f921ecb1a336ffafdea78455e5ac5824ce40"
|
||||
SOURCE_DIR="colobot-colobot-gold-$portVersion-alpha"
|
||||
PATCHES="colobot-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="colobot.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
colobot$secondaryArchSuffix = $portVersion
|
||||
app:Colobot$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
colobot_data
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libboost_filesystem$secondaryArchSuffix
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libboost_regex$secondaryArchSuffix
|
||||
lib:libgl$secondaryArchSuffix
|
||||
lib:libglew$secondaryArchSuffix
|
||||
lib:libglu$secondaryArchSuffix
|
||||
lib:libintl$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libopenal$secondaryArchSuffix
|
||||
lib:libphysfs$secondaryArchSuffix
|
||||
lib:libpng$secondaryArchSuffix
|
||||
lib:libsdl2_2.0$secondaryArchSuffix
|
||||
lib:libsdl2_image_2.0$secondaryArchSuffix
|
||||
lib:libsdl2_ttf_2.0$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libboost_filesystem$secondaryArchSuffix
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
devel:libboost_regex$secondaryArchSuffix
|
||||
devel:libgl$secondaryArchSuffix
|
||||
devel:libglew$secondaryArchSuffix
|
||||
devel:libglu$secondaryArchSuffix
|
||||
devel:libintl$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libopenal$secondaryArchSuffix
|
||||
devel:libphysfs$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libsdl2_2.0$secondaryArchSuffix
|
||||
devel:libsdl2_image_2.0$secondaryArchSuffix
|
||||
devel:libsdl2_ttf_2.0$secondaryArchSuffix
|
||||
devel:libsndfile$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_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$appsDir/Colobot \
|
||||
-DCOLOBOT_INSTALL_BIN_DIR=$appsDir/Colobot \
|
||||
-DCOLOBOT_INSTALL_LIB_DIR=$appsDir/Colobot/lib \
|
||||
-DCOLOBOT_INSTALL_I18N_DIR=$appsDir/Colobot/lang \
|
||||
-DCOLOBOT_INSTALL_DATA_DIR=$dataDir/Colobot \
|
||||
-DSDL2_INCLUDE_DIR=/system/$relativeIncludeDir/SDL2 \
|
||||
-DOPENAL_SOUND=ON \
|
||||
-DPORTABLE=OFF \
|
||||
-DDESKTOP=OFF
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir/Colobot
|
||||
cd build
|
||||
make install
|
||||
mv $appsDir/Colobot/colobot $appsDir/Colobot/Colobot
|
||||
|
||||
local APP_SIGNATURE="application/x-vnd.colobot"
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
local LONG_INFO="$SUMMARY"
|
||||
sed \
|
||||
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
||||
$portDir/additional-files/colobot.rdef.in > $sourceDir/build/colobot.rdef
|
||||
|
||||
addResourcesToBinaries $sourceDir/build/colobot.rdef $appsDir/Colobot/Colobot
|
||||
addAppDeskbarSymlink $appsDir/Colobot/Colobot
|
||||
}
|
||||
Reference in New Issue
Block a user