diff options
Diffstat (limited to 'games/brutalchess')
-rw-r--r-- | games/brutalchess/bc_gcc4.2.diff | 49 | ||||
-rw-r--r-- | games/brutalchess/brutalchess.SlackBuild | 1 | ||||
-rw-r--r-- | games/brutalchess/brutalchess.info | 2 | ||||
-rw-r--r-- | games/brutalchess/doinst.sh | 2 |
4 files changed, 52 insertions, 2 deletions
diff --git a/games/brutalchess/bc_gcc4.2.diff b/games/brutalchess/bc_gcc4.2.diff new file mode 100644 index 0000000000000..79a725881cdc3 --- /dev/null +++ b/games/brutalchess/bc_gcc4.2.diff @@ -0,0 +1,49 @@ +--- a/src/md3view.cpp ++++ b/src/md3view.cpp +@@ -72,7 +72,7 @@ + exit( returnCode ); + } + +-int initGL( GLvoid ); ++int initGL( void ); + // function to reset our viewport after a window resize + int resizeWindow( int width, int height ) + { +@@ -108,7 +108,7 @@ + + + // general OpenGL initialization function +-int initGL( GLvoid ) ++int initGL( void ) + { + cout << "Initializing OpenGL" << endl; + // Enable smooth shading +--- a/src/objview.cpp ++++ b/src/objview.cpp +@@ -73,7 +73,7 @@ + exit( returnCode ); + } + +-int initGL( GLvoid ); ++int initGL( void ); + // function to reset our viewport after a window resize + int resizeWindow( int width, int height ) + { +@@ -109,7 +109,7 @@ + + + // general OpenGL initialization function +-int initGL( GLvoid ) ++int initGL( void ) + { + cout << "Initializing OpenGL" << endl; + // Enable smooth shading +@@ -158,7 +158,7 @@ + } + + // Here goes our drawing code +-int drawGLScene( GLvoid ) ++int drawGLScene( void ) + { + // These are to calculate our fps + static GLint T0 = 0; diff --git a/games/brutalchess/brutalchess.SlackBuild b/games/brutalchess/brutalchess.SlackBuild index d2d9c96cf24f1..f464a76c29b36 100644 --- a/games/brutalchess/brutalchess.SlackBuild +++ b/games/brutalchess/brutalchess.SlackBuild @@ -27,6 +27,7 @@ rm -rf $PRGNAM-$VERSION # but tar does not mind so do not change this. tar xvf $CWD/$PRGNAM-alpha-$VERSION-src.tar.gz || exit 1 cd $PRGNAM-$VERSION +patch -p1 < $CWD/bc_gcc4.2.diff || exit 1 chown -R root:root . chmod -R u+w,go+r-w,a-s . diff --git a/games/brutalchess/brutalchess.info b/games/brutalchess/brutalchess.info index 91e90917fef64..c0226a71b58fa 100644 --- a/games/brutalchess/brutalchess.info +++ b/games/brutalchess/brutalchess.info @@ -5,4 +5,4 @@ DOWNLOAD="http://dl.sourceforge.net/sourceforge/brutalchess/brutalchess-alpha-0. MD5SUM="370476b63091b8d82a9ea57c604dcbab" MAINTAINER="Erik Hanson" EMAIL="erik@slackbuilds.org" -APPROVED="elohim,rworkman" +APPROVED="rworkman" diff --git a/games/brutalchess/doinst.sh b/games/brutalchess/doinst.sh index 3412314ed0094..06e65784cdc87 100644 --- a/games/brutalchess/doinst.sh +++ b/games/brutalchess/doinst.sh @@ -1,5 +1,5 @@ if [ -x usr/bin/update-desktop-database ]; then - ./usr/bin/update-desktop-database ./usr/share/applications >/dev/null 2>&1 + usr/bin/update-desktop-database usr/share/applications &> /dev/null fi |