lmarbles game for Haiku

This commit is contained in:
begasus
2014-08-23 18:45:45 +02:00
parent f83f91b287
commit 211ab6fb11
2 changed files with 75 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
SUMMARY="LMarbles is an Atomix clone with a slight change in concept."
DESCRIPTION="LMarbles is an Atomix clone with a slight change in concept. \
Instead of assembling molecules you create figures out of marbles. \
Nevertheless, the basic game play is the same: If a marble starts to move \
it will not stop until it hits a wall or another marble. To make it more \
interesting there are obstacles like one-way streets, crumbling walls and \
portals. As Marbles is meant as a puzzle game you play against a move limit \
and not a time limit. This way you have as much time as you need to think."
HOMEPAGE="http://lgames.sourceforge.net/"
SRC_URI="http://sourceforge.net/projects/lgames/files/lmarbles/lmarbles-1.0.8.tar.gz"
CHECKSUM_SHA256="0e5a16a0116d325589b28f3555ced6a0b486f0fd7632cd3d98bee5cddf213e83"
REVISION="1"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 Michael Speck"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
PATCHES="lmarbles-1.0.8.patch"
GLOBAL_WRITABLE_FILES="var/lmarbles.prfs keep-old"
PROVIDES="
lmarbles = $portVersion
cmd:lmarbles = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
lib:libsdl
lib:libsdl_mixer
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
devel:libsdl
devel:libsdl_mixer
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
cmd:ld
cmd:libtoolize
"
BUILD()
{
libtoolize --force --copy --install
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
addAppDeskbarSymlink $binDir/lmarbles LMarbles
}

View File

@@ -0,0 +1,20 @@
--- lmarbles-1.0.8/configure.org 2009-10-26 20:56:13.000000000 +0100
+++ lmarbles-1.0.8/configure 2014-07-14 18:31:02.527958016 +0200
@@ -5154,7 +5154,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm $LIBS"
+LIBS="$LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -5208,7 +5208,7 @@
#define HAVE_LIBM 1
_ACEOF
- LIBS="-lm $LIBS"
+ LIBS="$LIBS"
else
{ { echo "$as_me:$LINENO: error: lib math is needed" >&5