mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
It was reported by BrunoSpr that SuperTux moves everything in ~/home to ~/config/settings/supertux2
89 lines
2.5 KiB
Bash
89 lines
2.5 KiB
Bash
SUMMARY="A game similar to Super Mario Bros"
|
|
DESCRIPTION="SuperTux is a classic 2D jump'n run sidescroller game in a style \
|
|
similar to the original Super Mario games."
|
|
HOMEPAGE="https://supertux.lethargik.org/"
|
|
COPYRIGHT="2003-2018 SuperTux Devel Team"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/SuperTux/supertux/releases/download/v$portVersion/SuperTux-v$portVersion-Source.tar.gz"
|
|
SOURCE_DIR="SuperTux-v$portVersion-Source"
|
|
CHECKSUM_SHA256="c4c3e5fa6f90e87b8c5ad6b22a179e9a9839bf997e7f219e22bbcd1c97223ac0"
|
|
#PATCHES="supertux-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 ?x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86"
|
|
|
|
PROVIDES="
|
|
supertux$secondaryArchSuffix = $portVersion
|
|
cmd:supertux$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libboost_system$secondaryArchSuffix
|
|
lib:libcurl$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libfribidi$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libglew$secondaryArchSuffix
|
|
lib:libglu$secondaryArchSuffix
|
|
lib:libharfbuzz$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libopenal$secondaryArchSuffix
|
|
lib:libphysfs$secondaryArchSuffix
|
|
lib:libpng$secondaryArchSuffix
|
|
lib:libraqm$secondaryArchSuffix
|
|
lib:libSDL2_2.0$secondaryArchSuffix
|
|
lib:libSDL2_image_2.0$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix
|
|
devel:libcurl$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libfribidi$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libglew$secondaryArchSuffix
|
|
devel:libharfbuzz$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libopenal$secondaryArchSuffix
|
|
devel:libphysfs$secondaryArchSuffix
|
|
devel:libpng$secondaryArchSuffix
|
|
devel:libraqm$secondaryArchSuffix
|
|
devel:libSDL2_2.0$secondaryArchSuffix
|
|
devel:libSDL2_image_2.0$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:git
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
mkdir -p build
|
|
cd build
|
|
cmake .. $cmakeDirArgs \
|
|
-DUSE_SYSTEM_PHYSFS=ON \
|
|
-DCMAKE_INSTALL_PREFIX=$appsDir/SuperTux \
|
|
-DINSTALL_SUBDIR_BIN=$appsDir/SuperTux \
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
mv $appsDir/SuperTux/supertux2 $appsDir/SuperTux/SuperTux
|
|
addAppDeskbarSymlink $appsDir/SuperTux/SuperTux
|
|
}
|