lbreakout2 added recipe and patch file for version 2.6.4

This commit is contained in:
begasus
2014-08-24 12:13:32 +02:00
parent f83f91b287
commit 7a5684711f
2 changed files with 133 additions and 0 deletions

View 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( &region ); }
}