Move Puri to haiku-games

This commit is contained in:
noryb009
2013-12-06 07:09:09 -05:00
parent 738ab3fd2d
commit dc75b5e3df

View File

@@ -0,0 +1,65 @@
SUMMARY="Puri is a 2D and 3D chess game."
DESCRIPTION="
Puri is a 2D and 3D chess game. You can play against a computer,
or play online against other people.
"
HOMEPAGE="https://gitorious.org/puri-master-of-chess/puri/"
SRC_URI="https://gitorious.org/puri-master-of-chess/puri/archive/59b5db4b337fc432b64a7d099f7b7e0fc8ece3c7.tar.gz"
CHECKSUM_MD5="467d00355e3450e9d3b1d126afcf06a6"
LICENSE="MIT"
COPYRIGHT="2010-2012 Haiku Inc."
REVISION="1"
ARCHITECTURES="?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
fi
PROVIDES="
Puri$secondaryArchSuffix = $portVersion
app:Puri$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libpng$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
devel:libglu$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
"
BUILD_PREREQUIRES="
gcc$secondaryArchSuffix
cmd:jam
cmd:ar$secondaryArchSuffix
cmd:as$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:ranlib$secondaryArchSuffix
"
SOURCE_DIR="puri-master-of-chess-puri"
BUILD()
{
jam
}
INSTALL()
{
cd source
mkdir -p $appsDir/Puri
cp Puri $appsDir/Puri
addAppDeskbarSymlink $appsDir/Puri/Puri
cp -R data $appsDir/Puri/data
cp -R Engines $appsDir/Puri/Engines
chmod 755 $appsDir/Puri/Engines/stockfish
}