mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
77 lines
2.2 KiB
Bash
77 lines
2.2 KiB
Bash
SUMMARY="3D falling blocks game"
|
|
DESCRIPTION="BlockOut II is an OpenGL adaptation of the original BlockOut DOS \
|
|
game edited by California Dreams in 1989. Similar to Tetris but with the third \
|
|
dimension, BlockOut II has the same features as the original game with a few \
|
|
graphics improvements. Score calculation is also nearly similar to the original \
|
|
game. BlockOut II has been designed by an addicted player for addicted players."
|
|
HOMEPAGE="http://www.blockout.net/blockout2/"
|
|
COPYRIGHT="2007-2014 Jean-Luc Pons"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="3"
|
|
SOURCE_URI="https://salsa.debian.org/games-team/blockout2/-/archive/master/blockout2-master.tar.bz2"
|
|
CHECKSUM_SHA256="08b677be01c02e6695559ccc65df1cafcac0793b7864ba7e2285059babf57349"
|
|
SOURCE_DIR="blockout2-master/"
|
|
PATCHES="blockout2-2.5.patchset"
|
|
ADDITIONAL_FILES="blockout2.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
blockout2$secondaryArchSuffix = $portVersion
|
|
app:blockout2$secondaryArchSuffix
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libglu$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
lib:libSDL_mixer_1.2$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libglu$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libSDL_1.2$secondaryArchSuffix
|
|
devel:libSDL_mixer_1.2$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs -f debian/Makefile
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/Blockout2
|
|
cp -rf BlockOut/images BlockOut/sounds $appsDir/Blockout2
|
|
cp obj/blockout2 $appsDir/Blockout2/Blockout2
|
|
|
|
# Add Haiku resources
|
|
local MAJOR="$(echo ${portVersion%%_*} | cut -d. -f1)"
|
|
local MIDDLE="$(echo ${portVersion%%_*} | cut -d. -f2)"
|
|
local MINOR="0"
|
|
local SHORT_INFO="Blockout II"
|
|
local LONG_INFO="$SUMMARY"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
-e "s|@SHORT_INFO@|$SHORT_INFO|" \
|
|
-e "s|@LONG_INFO@|$LONG_INFO|" \
|
|
"$portDir/additional-files/blockout2.rdef.in" > blockout2.rdef
|
|
|
|
addResourcesToBinaries blockout2.rdef "$appsDir/Blockout2/Blockout2"
|
|
|
|
addAppDeskbarSymlink $appsDir/Blockout2/Blockout2 "BlockOut II"
|
|
}
|