wok-6.x rev 3314
Add: tuxmath
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Sun Jun 07 00:04:02 2009 +0000 (2009-06-07) |
parents | 55a59aa123da |
children | fd373db64c59 |
files | tuxmath/receipt tuxmath/stuff/SDL_extras.c.patch tuxmath/stuff/tuxmath.desktop tuxmath/stuff/tuxmath.png |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tuxmath/receipt Sun Jun 07 00:04:02 2009 +0000 1.3 @@ -0,0 +1,43 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="tuxmath" 1.7 +SOURCE="tuxmath_w_fonts" 1.8 +VERSION="1.7.2" 1.9 +CATEGORY="games" 1.10 +SHORT_DESC="Arcade game that helps kids practice their math facts." 1.11 +MAINTAINER="claudinei@slitaz.org" 1.12 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.13 +WEB_SITE="http://tux4kids.alioth.debian.org" 1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.15 +DEPENDS="libSDL libsdl-image libsdl-mixer libsdl-ttf" 1.16 +BUILD_DEPENDS="libSDL libSDL-dev libsdl-image libsdl-image-dev \ 1.17 +libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev" 1.18 + 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + patch -p1 -i ../stuff/SDL_extras.c.patch 1.25 + ./configure \ 1.26 + --prefix=/usr \ 1.27 + --without-sdlpango \ 1.28 + $CONFIGURE_ARGS && 1.29 + make && 1.30 + make DESTDIR=$PWD/_pkg install 1.31 +} 1.32 + 1.33 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.34 +genpkg_rules() 1.35 +{ 1.36 + mkdir -p $fs/usr $fs/usr/share 1.37 + cp -a $_pkg/usr/bin $fs/usr 1.38 + cp -a $_pkg/usr/share/tuxmath $fs/usr/share 1.39 + 1.40 + for lang in de es fr pt_BR zh_CN; do 1.41 + mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES 1.42 + cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \ 1.43 + $fs/usr/share/locale/$lang/LC_MESSAGES 1.44 + done 1.45 +} 1.46 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/tuxmath/stuff/SDL_extras.c.patch Sun Jun 07 00:04:02 2009 +0000 2.3 @@ -0,0 +1,19 @@ 2.4 +--- tuxmath_w_fonts-1.7.2/src/SDL_extras.c.old Mon Mar 9 10:44:42 2009 2.5 ++++ tuxmath_w_fonts-1.7.2/src/SDL_extras.c Sat Jun 6 18:55:22 2009 2.6 +@@ -987,6 +987,7 @@ 2.7 + /* font in memory once loaded until cleanup. */ 2.8 + static TTF_Font* get_font(int size) 2.9 + { 2.10 ++ static char prev_font_name[FONT_NAME_LENGTH]; 2.11 + if (size < 0) 2.12 + { 2.13 + fprintf(stderr, "Error - requested font size %d is negative\n", size); 2.14 +@@ -1001,7 +1002,7 @@ 2.15 + } 2.16 + 2.17 + /* If the font has changed, we need to wipe out the old ones: */ 2.18 +- if (0 != strncmp(prev_font_name, Opts_FontName(),sizeof(prev_font_name))) 2.19 ++ if (0 != strncmp(prev_font_name, Opts_FontName(), FONT_NAME_LENGTH)) 2.20 + { 2.21 + free_font_list(); 2.22 + strncpy(prev_font_name, Opts_FontName(), sizeof(prev_font_name));
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/tuxmath/stuff/tuxmath.desktop Sun Jun 07 00:04:02 2009 +0000 3.3 @@ -0,0 +1,8 @@ 3.4 +[Desktop Entry] 3.5 +Type=Application 3.6 +Encoding=UTF-8 3.7 +Name=Tux, of Math Command 3.8 +Exec=tuxmath 3.9 +Icon=tuxmath.png 3.10 +Terminal=false 3.11 +Categories=Application;Game;
4.1 Binary file tuxmath/stuff/tuxmath.png has changed