mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Merged in puckipedia/haikuports/colorcode (pull request #423)
Add ColorCode recipe
This commit is contained in:
25
games-puzzle/colorcode/additional-files/colorcode.rdef
Normal file
25
games-puzzle/colorcode/additional-files/colorcode.rdef
Normal file
@@ -0,0 +1,25 @@
|
||||
resource app_signature "application/x-vnd.colorcode";
|
||||
|
||||
resource vector_icon array {
|
||||
$"6E6369660505C60201040200FF5959FFFF06060201140200DAFFEA0200040200"
|
||||
$"F9FF6EFFFFF95902010402FF6DD0FF0044ADFF060204402262221E222240221E"
|
||||
$"2262405E1E5E625E5E405E625E1E0204C52128C7A828C2992842BAC542B83D42"
|
||||
$"BD4CC5213FC2993FC7A83F59BAC559BD4C59B83D0204BA5F27BCE627B7D72727"
|
||||
$"BA5F27B7D727BCE6BA5F3EB7D73EBCE63E3EBA5F3EBCE63EB7D70204BA5F42BC"
|
||||
$"E642B7D74227C52127C29927C7A8BA5F59B7D759BCE6593EC5213EC7A83EC299"
|
||||
$"0204C52142C7A842C2994242C52142C29942C7A8C52159C29959C7A85959C521"
|
||||
$"59C7A859C2990A042222225E5E5E5E22050A000100000A040102000A03010100"
|
||||
$"0A010103000A02010400"
|
||||
};
|
||||
|
||||
resource app_version {
|
||||
major = 0,
|
||||
middle = 7,
|
||||
minor = 2,
|
||||
|
||||
variety = B_APPV_FINAL,
|
||||
internal = 0,
|
||||
|
||||
short_info = "ColorCode",
|
||||
long_info = "ColorCode ©2009-2011 Dirk Laebisch"
|
||||
};
|
||||
66
games-puzzle/colorcode/colorcode-0.7.2.recipe
Normal file
66
games-puzzle/colorcode/colorcode-0.7.2.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="A free advanced MasterMind clone."
|
||||
DESCRIPTION="ColorCode is a free advanced MasterMind clone with lots of \
|
||||
different game variants, from the very easy up to really challenging ones. \
|
||||
You can combine any color count from 2-10 with any column count from 2-5 and \
|
||||
allow or not pegs of the same color. Or you may select one of the 5 \
|
||||
predefined levels of difficulty. ColorCode has also a rather intelligent \
|
||||
built in MasterMind solver - so you can let the computer guess for you \
|
||||
(nope, he's not cheating - really)."
|
||||
HOMEPAGE="http://colorcode.laebisch.com/"
|
||||
SRC_URI="http://colorcode.laebisch.com/download/ColorCode-0.7.2.tar.gz"
|
||||
CHECKSUM_SHA256="d1c5bf4d65c81de16c4159c2c69c096fc7ff47cca587d7233985e078d63c79aa"
|
||||
SOURCE_DIR="ColorCode-0.7.2"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="2009-2011 Dirk Laebisch"
|
||||
ARCHITECTURES="x86 ?x86_64"
|
||||
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"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
colorcode = $portVersion
|
||||
app:ColorCode = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libqtcore$secondaryArchSuffix < 5
|
||||
lib:libqtgui$secondaryArchSuffix < 5
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libqtcore$secondaryArchSuffix < 5
|
||||
devel:libqtgui$secondaryArchSuffix < 5
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:qmake$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:xres
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $appsDir
|
||||
cp colorcode $appsDir/ColorCode
|
||||
|
||||
addResourcesToBinaries $portDir/additional-files/colorcode.rdef \
|
||||
$appsDir/ColorCode
|
||||
|
||||
addAppDeskbarSymlink $appsDir/ColorCode ColorCode
|
||||
}
|
||||
Reference in New Issue
Block a user