Files
haikuports/games-arcade/hikounomizu/hikounomizu-0.9.2.recipe
2022-05-13 19:37:33 -06:00

85 lines
2.4 KiB
Bash

SUMMARY="A platform-based, anime-styled fighting game"
DESCRIPTION="Hikou no mizu is a 2D fighting game with anime-inspired \
graphics. Fights take place in interactive arenas of various sizes and can \
involve up to five players on a single machine. Currently, two players are \
playable, namely Hikou and Takino. Joysticks are supported and a simple AI \
is included for solo playing."
HOMEPAGE="https://hikounomizu.org"
COPYRIGHT="2010-2022 Duncan Deveaux"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://download.tuxfamily.org/hnm/0.9.2/hikounomizu-0.9.2-src-withdata.tar.bz2"
CHECKSUM_SHA256="59a97e532f2151193984a01761604971ef2cb8234ea7040e1dc36f9ee715bc39"
ADDITIONAL_FILES="hikounomizu.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
hikounomizu$secondaryArchSuffix = $portVersion
app:HikouNoMizu$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfreetype$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libGLU$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libopenal$secondaryArchSuffix
lib:libpugixml$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libSDL2_image_2.0$secondaryArchSuffix
lib:libvorbis$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfreetype$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libGLU$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libopenal$secondaryArchSuffix
devel:libpugixml$secondaryArchSuffix
devel:libSDL2_2.0$secondaryArchSuffix
devel:libSDL2_image_2.0$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -S. -Bbuild $cmakeDirArgs \
-DCMAKE_INSTALL_BINDIR=$appsDir \
-DCMAKE_BUILD_TYPE=Release
make -C build $jobArgs
}
INSTALL()
{
make -C build install
mv $appsDir/hikounomizu $appsDir/HikouNoMizu
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|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/hikounomizu.rdef.in > hikounomizu.rdef
addResourcesToBinaries hikounomizu.rdef \
$appsDir/HikouNoMizu
addAppDeskbarSymlink $appsDir/HikouNoMizu "Hikou no mizu"
}