mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
lbreakout2 added recipe and patch file for version 2.6.4
This commit is contained in:
62
games-puzzle/lbreakout2/lbreakout2-2.6.4.recipe
Normal file
62
games-puzzle/lbreakout2/lbreakout2-2.6.4.recipe
Normal file
@@ -0,0 +1,62 @@
|
||||
SUMMARY="LBreakout2 is a fun breakout-style arcade game"
|
||||
DESCRIPTION="The successor to LBreakout offers you a new challenge in more than 50 \
|
||||
levels with loads of new bonuses (goldshower, joker, explosive balls, \
|
||||
bonus magnet ...), maluses (chaos, darkness, weak balls, malus magnet ...) \
|
||||
and special bricks (growing bricks, explosive bricks, regenerative bricks ..). \
|
||||
If you are hungry for more you can create your own levelsets with the integrated \
|
||||
level editor. There is also an experimental two player mode (via LAN) available."
|
||||
HOMEPAGE="http://lgames.sourceforge.net/"
|
||||
SRC_URI="http://sourceforge.net/projects/lgames/files/lbreakout2/2.6/lbreakout2-2.6.4.tar.gz"
|
||||
CHECKSUM_SHA256="0b90716d52e67c27ff41ab7aa5c09dad4f5f19a78076cc57dd4b4d7ed2c1dbd9"
|
||||
REVISION="1"
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2001-2011 Michael Speck"
|
||||
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
|
||||
|
||||
PATCHES="lbreakout2-2.6.4.patch"
|
||||
GLOBAL_WRITABLE_FILES="var/lbreakout2.hscr keep-old"
|
||||
|
||||
PROVIDES="
|
||||
lbreakout2 = $portVersion
|
||||
cmd:lbreakout2 = $portVersion
|
||||
cmd:lbreakout2server = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libsdl
|
||||
lib:libsdl_mixer
|
||||
lib:libsdl_net
|
||||
lib:libpng
|
||||
lib:libz
|
||||
lib:libintl
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
devel:libsdl
|
||||
devel:sdl_mixer
|
||||
devel:sdl_net
|
||||
devel:libintl
|
||||
devel:libz
|
||||
devel:libpng
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:make
|
||||
cmd:gcc
|
||||
cmd:ld
|
||||
cmd:libtoolize
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
LDFLAGS="-lintl -lnetwork" runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
addAppDeskbarSymlink $binDir/lbreakout2 LBreakout2
|
||||
}
|
||||
71
games-puzzle/lbreakout2/patches/lbreakout2-2.6.4.patch
Normal file
71
games-puzzle/lbreakout2/patches/lbreakout2-2.6.4.patch
Normal file
@@ -0,0 +1,71 @@
|
||||
--- lbreakout2-2.6.4/configure.orig 2012-06-19 21:49:30.000000000 +0200
|
||||
+++ lbreakout2-2.6.4/configure 2014-07-13 22:23:51.202375168 +0200
|
||||
@@ -11392,7 +11392,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
|
||||
@@ -11446,7 +11446,7 @@
|
||||
#define HAVE_LIBM 1
|
||||
_ACEOF
|
||||
|
||||
- LIBS="-lm $LIBS"
|
||||
+ LIBS=" $LIBS"
|
||||
|
||||
else
|
||||
{ { echo "$as_me:$LINENO: error: lib math is needed" >&5
|
||||
|
||||
--- lbreakout2-2.6.4/client/chart.c.org 2014-08-23 14:15:06.036700160 +0200
|
||||
+++ lbreakout2-2.6.4/client/chart.c 2014-08-23 14:11:54.634650624 +0200
|
||||
@@ -213,6 +213,7 @@
|
||||
}
|
||||
printf( _("Saving highscore chart in: %s\n"), chart_path );
|
||||
/* compute size and position stuff of highscore */
|
||||
+ {
|
||||
char *cheader = _("Name Level Score");
|
||||
chart_pos.w = stk_font_string_width( ccfont, cheader );
|
||||
chart_pos.h = ccfont->height + chart_gap + /* title + gap */
|
||||
@@ -220,6 +221,7 @@
|
||||
chart_gap + /*gap between caption and entries */
|
||||
ccfont->height; /* caption size */
|
||||
chart_level_offset = stk_font_string_width( ccfont, _("name.-----") ) + stk_font_string_width( ccfont, _("Level") ) / 2; /* level offset centered */
|
||||
+ }
|
||||
}
|
||||
/*
|
||||
====================================================================
|
||||
@@ -344,6 +346,7 @@
|
||||
chart->name );
|
||||
/* caption */
|
||||
ccfont->align = STK_FONT_ALIGN_LEFT | STK_FONT_ALIGN_TOP;
|
||||
+ {
|
||||
char *cheader = _("Name Level Score");
|
||||
stk_font_write( ccfont, stk_display,
|
||||
chart_pos.x, chart_pos.y + ccfont->height + chart_gap, -1,
|
||||
@@ -370,6 +373,7 @@
|
||||
chart_pos.x + chart_pos.w, entry_offset, -1, number_buffer );
|
||||
/* change offset */
|
||||
entry_offset += font->height;
|
||||
+ }
|
||||
}
|
||||
stk_display_store_rect( &chart_pos );
|
||||
}
|
||||
@@ -389,6 +393,7 @@
|
||||
|
||||
/* caption */
|
||||
ccfont->align = STK_FONT_ALIGN_LEFT | STK_FONT_ALIGN_TOP;
|
||||
+ {
|
||||
char *cheader = _("Name Level Score");
|
||||
stk_font_write( ccfont, stk_display, px, py, -1, cheader );
|
||||
|
||||
@@ -416,6 +421,7 @@
|
||||
/* change offset */
|
||||
entry_offset += font->height - 1;
|
||||
}
|
||||
+ }
|
||||
{ SDL_Rect region = { x, y, w, h };
|
||||
stk_display_store_rect( ®ion ); }
|
||||
}
|
||||
Reference in New Issue
Block a user