Files
haikuports/games-arcade/lbreakouthd/lbreakouthd-1.1.1.recipe
2023-03-12 17:12:06 -06:00

85 lines
2.3 KiB
Bash

SUMMARY="A fun breakout-style arcade game"
DESCRIPTION="LBreakoutHD is a scaleable 16:9 remake of LBreakout2. You try to clear levels full of \
different types of bricks and extras by using your paddle to aim balls at the bricks."
HOMEPAGE="http://lgames.sourceforge.net/"
COPYRIGHT="2018-2022 Michael Speck"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/lgames/files/lbreakouthd/lbreakouthd-$portVersion.tar.gz"
CHECKSUM_SHA256="9639d9a6e57d1cf3d1e5b81d6f213c814b5be26f89a69c469b7315ebdd6cc3b1"
PATCHES="lbreakouthd-$portVersion.patchset"
ADDITIONAL_FILES="lbreakouthd.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
lbreakouthd$secondaryArchSuffix = $portVersion
app:lbreakouthd
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libSDL2_image_2.0$secondaryArchSuffix
lib:libSDL2_mixer_2.0$secondaryArchSuffix
lib:libSDL2_ttf_2.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libSDL2_2.0$secondaryArchSuffix
devel:libSDL2_image_2.0$secondaryArchSuffix
devel:libSDL2_mixer_2.0$secondaryArchSuffix
devel:libSDL2_ttf_2.0$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoheader
cmd:automake
cmd:autoreconf
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
autoreconf -vfi
LDFLAGS="-lintl -lbe" runConfigure --omit-dirs binDir ./configure \
--bindir=$appsDir --with-configdir=LBreakoutHD
make $jobArgs
}
INSTALL()
{
make install
mv $appsDir/lbreakouthd $appsDir/LBreakoutHD
# add our version and other application resources
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/lbreakouthd.rdef.in > lbreakouthd.rdef
addResourcesToBinaries lbreakouthd.rdef $appsDir/LBreakoutHD
addAppDeskbarSymlink $appsDir/LBreakoutHD LBreakoutHD
rm -rf $localStateDir
rm -rf $dataDir/{applications,icons}
}