Bong: new recipe (#1931)

This commit is contained in:
tts2k
2018-01-04 18:59:35 +07:00
committed by fbrosson
parent b111186902
commit e91da748c1
3 changed files with 100 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
SUMMARY="BeOS version of Pong"
DESCRIPTION="Bong is a FreeWare game for BeOS, based on the old arcade classic \
Pong"
HOMEPAGE="https://github.com/HaikuArchives/Bong"
COPYRIGHT="1997 by Gertjan van Ratingen"
LICENSE="bong"
REVISION="1"
srcGitRev="906d822b79bdae9328fe743dffe2871f96a30e0e"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="41fab18b900db644e39a08f2d5463e0a367720c21093f492d5d2cfaa8086da0f"
SOURCE_FILENAME="bong-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="Bong-$srcGitRev"
PATCHES="bong-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 ?x86 x86_64"
PROVIDES="
bong = $portVersion
app:bong = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
makefile_engine
cmd:g++
cmd:make
cmd:sed
"
PATCH()
{
sed -i -e "/^#if 0$/,/^#endif$/ s/.*//;" bong.cpp
}
BUILD()
{
make $jobArgs OBJ_DIR=objects MACHINE=BePC CC=g++ LD=g++
}
INSTALL()
{
install -d $appsDir
install -t $appsDir objects/bong
addAppDeskbarSymlink $appsDir/bong Bong
}