mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
color-lines: new recipe. (#607)
This commit is contained in:
52
games-puzzle/color-lines/color_lines-0.6.recipe
Normal file
52
games-puzzle/color-lines/color_lines-0.6.recipe
Normal file
@@ -0,0 +1,52 @@
|
||||
SUMMARY="A classic lines puzzle game"
|
||||
DESCRIPTION="This strategy Game will make you think and concentrate \
|
||||
for hours if you accept the challenge. The game will randomly place three \
|
||||
color balls on the game board at every round, you have to strategically \
|
||||
select one ball (click on ball) and move it to the most convenient location \
|
||||
(click on target square)."
|
||||
HOMEPAGE="https://code.google.com/archive/p/color-lines"
|
||||
COPYRIGHT="2011 Peter Kosyh"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/color-lines/lines_$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="e20c87dfcc8f940c8af7784dad12e66fa1cd10d0d97766979fef00eb17c0b0b3"
|
||||
SOURCE_DIR="lines-$portVersion"
|
||||
PATCHES="color_lines-$portVersion.patch"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
color_lines$secondaryArchSuffix = $portVersion
|
||||
app:color_lines = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libsdl$secondaryArchSuffix
|
||||
lib:libsdl_image$secondaryArchSuffix
|
||||
lib:libsdl_mixer$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsdl$secondaryArchSuffix
|
||||
devel:libsdl_image$secondaryArchSuffix
|
||||
devel:libsdl_mixer$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make PREFIX=$prefix BINDIR=$appsDir GAMEDATADIR=$dataDir/color-lines/
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make PREFIX=$prefix BINDIR=$appsDir GAMEDATADIR=$dataDir/color-lines/ \
|
||||
install
|
||||
rm -rf $prefix/share
|
||||
addAppDeskbarSymlink $appsDir/color-lines ColorLines
|
||||
}
|
||||
22
games-puzzle/color-lines/patches/color_lines-0.6.patch
Normal file
22
games-puzzle/color-lines/patches/color_lines-0.6.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
--- lines-0.6/main.c.org 2016-05-22 15:04:32.000000000 +0200
|
||||
+++ lines-0.6/main.c 2016-05-22 15:26:13.000000000 +0200
|
||||
@@ -7,6 +7,11 @@
|
||||
#include <SDL_thread.h>
|
||||
// #include <pthread.h>
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+#include <unistd.h>
|
||||
+#include <libgen.h>
|
||||
+#endif
|
||||
+
|
||||
#ifndef WINDOWS
|
||||
#include <unistd.h>
|
||||
#include <pwd.h>
|
||||
@@ -1559,6 +1564,7 @@
|
||||
#ifdef MAEMO
|
||||
putenv("SDL_VIDEO_X11_WMCLASS=lines");
|
||||
#endif
|
||||
+ chdir(dirname(argv[0]));
|
||||
game_mutex = SDL_CreateMutex();
|
||||
if (gfx_init())
|
||||
return 1;
|
||||
Reference in New Issue
Block a user