games/vbam: Fix Crash.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dugan Chen 2014-03-04 17:22:17 +07:00 committed by Willy Sudiarto Raharjo
parent e0ddada0c9
commit 257bbd155b
2 changed files with 16 additions and 1 deletions

11
games/vbam/no_icons.patch Normal file
View File

@ -0,0 +1,11 @@
diff -rupN vbam-r1159.orig/src/gtk/window.cpp vbam-r1159/src/gtk/window.cpp
--- vbam-r1159.orig/src/gtk/window.cpp 2013-02-03 12:59:48.000000000 +0000
+++ vbam-r1159/src/gtk/window.cpp 2013-09-11 15:21:43.646331404 +0100
@@ -248,6 +248,7 @@ Window::Window(GtkWindow * _pstWindow, c
m_poRecentChooserMenu->set_show_numbers();
m_poRecentChooserMenu->set_show_tips();
m_poRecentChooserMenu->set_local_only();
+ m_poRecentChooserMenu->set_show_icons(false);
m_poRecentChooserMenu->add_filter(oRecentFilter);
m_poRecentChooserMenu->signal_item_activated().connect(
sigc::mem_fun(*this, &Window::vOnRecentFile));

View File

@ -23,7 +23,7 @@
PRGNAM=vbam PRGNAM=vbam
VERSION=${VERSION:-r1202} VERSION=${VERSION:-r1202}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -76,6 +76,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# See here for an explanation:
# http://www.linuxquestions.org/questions/slackware-14/vbam-slackbuild-4175476221/page3.html#post5025795
patch -p1 --verbose < $CWD/no_icons.patch
cmake . \ cmake . \
-DCMAKE_C_FLAGS="$SLKCFLAGS" \ -DCMAKE_C_FLAGS="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \