wok-stable rev 6391

Added zsnes 1.51.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Sep 24 01:41:10 2010 +0000 (2010-09-24)
parents 3dc6e4b6990a
children 4829bb876a86
files zsnes/receipt zsnes/stuff/zsnes.desktop zsnes/stuff/zsnes.patch zsnes/stuff/zsnes_icon.png
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/zsnes/receipt	Fri Sep 24 01:41:10 2010 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="zsnes"
     1.7 +VERSION="1.51"
     1.8 +CATEGORY="games"
     1.9 +MAINTAINER="slaxemulator@gmail.com"
    1.10 +SHORT_DESC="Super Nintendo emulator"
    1.11 +WEB_SITE="http://www.zsnes.com/"
    1.12 +DEPENDS="gcc-lib-base libsdl libpng ncurses mesa zlib"
    1.13 +BUILD_DEPENDS="$DEPENDS nasm libsdl-dev libpng-dev ncurses-dev mesa-dev automake autoconf zlib-dev patch"
    1.14 +TARBALL="zsnes151src.tar.bz2"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +TAGS="snes"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +
    1.20 +compile_rules() {
    1.21 +  src=$WOK/$PACKAGE/${PACKAGE}_1_51/
    1.22 +  cd $src
    1.23 +  patch -p1 -i ../stuff/zsnes.patch 
    1.24 +  cd $src/src
    1.25 +  ./configure --prefix=/usr \
    1.26 +    --x-libraries=/usr/lib \
    1.27 +    --enable-release \
    1.28 +    force_arch=i486 \
    1.29 +    $CONFIGURE_ARGS &&
    1.30 +   make -j 4
    1.31 +}
    1.32 +	
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	src=$WOK/$PACKAGE/${PACKAGE}_1_51
    1.37 +	mkdir -p $fs/usr/share/applications \
    1.38 +		$fs/usr/share/pixmaps \
    1.39 +		$fs/usr/bin
    1.40 +	cp -a $src/src/zsnes $fs/usr/bin
    1.41 +	cp $WOK/$PACKAGE/stuff/zsnes.desktop $fs/usr/share/applications
    1.42 +	cp $WOK/$PACKAGE/stuff/zsnes_icon.png $fs/usr/share/pixmaps
    1.43 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/zsnes/stuff/zsnes.desktop	Fri Sep 24 01:41:10 2010 +0000
     2.3 @@ -0,0 +1,9 @@
     2.4 +[Desktop Entry]
     2.5 +Name=Zsnes
     2.6 +Comment=Super Nintendo emulator
     2.7 +Exec=/usr/bin/zsnes
     2.8 +Icon=/usr/share/pixmaps/zsnes_icon.png
     2.9 +Terminal=false
    2.10 +Type=Application
    2.11 +Categories=Application;Game
    2.12 +StartupNotify=false
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/zsnes/stuff/zsnes.patch	Fri Sep 24 01:41:10 2010 +0000
     3.3 @@ -0,0 +1,67 @@
     3.4 +diff -cr zsnes_1_51/src/parsegen.cpp zsnes_1_51-patched/src/parsegen.cpp
     3.5 +*** zsnes_1_51/src/parsegen.cpp	2007-10-31 01:30:26.000000000 -0300
     3.6 +--- zsnes_1_51-patched/src/parsegen.cpp	2008-07-13 18:28:53.000000000 -0300
     3.7 +***************
     3.8 +*** 19,24 ****
     3.9 +--- 19,27 ----
    3.10 +  Config file handler creator by Nach (C) 2005-2007
    3.11 +  */
    3.12 +  
    3.13 ++ #include <cstring>
    3.14 ++ #include <cstdlib>
    3.15 ++ 
    3.16 +  #if !defined(__GNUC__) && !defined(_MSC_VER)
    3.17 +  #error You are using an unsupported compiler
    3.18 +  #endif
    3.19 +***************
    3.20 +*** 1822,1828 ****
    3.21 +    }
    3.22 +  }
    3.23 +  
    3.24 +! int main(size_t argc, const char *const *const argv)
    3.25 +  {
    3.26 +    const char *cheader_file = 0;
    3.27 +    bool compile = false;
    3.28 +--- 1825,1831 ----
    3.29 +    }
    3.30 +  }
    3.31 +  
    3.32 +! int main(int argc, const char *const *const argv)
    3.33 +  {
    3.34 +    const char *cheader_file = 0;
    3.35 +    bool compile = false;
    3.36 +diff -cr zsnes_1_51/src/tools/depbuild.cpp zsnes_1_51-patched/src/tools/depbuild.cpp
    3.37 +*** zsnes_1_51/src/tools/depbuild.cpp	2006-12-27 08:04:05.000000000 -0300
    3.38 +--- zsnes_1_51-patched/src/tools/depbuild.cpp	2008-07-13 18:30:46.000000000 -0300
    3.39 +***************
    3.40 +*** 183,189 ****
    3.41 +    }
    3.42 +  }
    3.43 +  
    3.44 +! int main(size_t argc, const char *const *const argv)
    3.45 +  {
    3.46 +    if (argc < 5)
    3.47 +    {
    3.48 +--- 183,189 ----
    3.49 +    }
    3.50 +  }
    3.51 +  
    3.52 +! int main(int argc, const char *const *const argv)
    3.53 +  {
    3.54 +    if (argc < 5)
    3.55 +    {
    3.56 +diff -cr zsnes_1_51/src/tools/strutil.h zsnes_1_51-patched/src/tools/strutil.h
    3.57 +*** zsnes_1_51/src/tools/strutil.h	2006-12-27 08:04:05.000000000 -0300
    3.58 +--- zsnes_1_51-patched/src/tools/strutil.h	2008-07-13 18:30:27.000000000 -0300
    3.59 +***************
    3.60 +*** 15,20 ****
    3.61 +--- 15,23 ----
    3.62 +  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    3.63 +  */
    3.64 +  
    3.65 ++ #include <cstring>
    3.66 ++ #include <cstdlib>
    3.67 ++ 
    3.68 +  /*
    3.69 +  This is part of a toolkit used to assist in ZSNES development
    3.70 +  */
     4.1 Binary file zsnes/stuff/zsnes_icon.png has changed