tuxmath: remove obsolete version

This commit is contained in:
PulkoMandy
2024-08-28 18:30:37 +02:00
parent 08cddc6361
commit 4b3d27a1da
2 changed files with 0 additions and 106 deletions

View File

@@ -1,21 +0,0 @@
From 90c424b625d8696dba88228617081a8e03f2b290 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Mon, 15 Aug 2016 11:14:15 +0200
Subject: fix build
diff --git a/src/SDL_extras.c b/src/SDL_extras.c
index db67820..39274c2 100644
--- a/src/SDL_extras.c
+++ b/src/SDL_extras.c
@@ -987,6 +987,7 @@ static void free_font_list(void)
/* font in memory once loaded until cleanup. */
static TTF_Font* get_font(int size)
{
+ static char prev_font_name[FONT_NAME_LENGTH];
if (size < 0)
{
fprintf(stderr, "Error - requested font size %d is negative\n", size);
--
2.7.0

View File

@@ -1,85 +0,0 @@
SUMMARY="Tux4Kids' math tutor for kids"
DESCRIPTION="TuxMath is an educational math tutor for kids starring Tux, \
the Linux penguin. This educational game comes with two different games for \
practicing math, and having a great time doing it."
HOMEPAGE="https://sourceforge.net/projects/tuxmath/"
COPYRIGHT="2000-2009 Sam Hart"
LICENSE="GNU GPL v2"
REVISION="5"
SOURCE_URI="https://downloads.sf.net/tuxmath/tuxmath_w_fonts-$portVersion.tar.gz"
CHECKSUM_SHA256="7a3e39b17b88402a89780ac56368d8d92322c3b91f50ee4f9b747a8e2901b3a4"
SOURCE_DIR="tuxmath_w_fonts-$portVersion"
PATCHES="tuxmath-$portVersion.patchset"
ADDITIONAL_FILES="tuxmath.rdef"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
tuxmath$secondaryArchSuffix
app:TuxMath$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libSDL_1.2$secondaryArchSuffix
lib:libSDL_image_1.2$secondaryArchSuffix
lib:libSDL_mixer_1.2$secondaryArchSuffix
lib:libSDL_ttf_2.0$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libiconv$secondaryArchSuffix
devel:libintl$secondaryArchSuffix
devel:libSDL_1.2$secondaryArchSuffix
devel:libSDL_image_1.2$secondaryArchSuffix
devel:libSDL_mixer_1.2$secondaryArchSuffix
devel:libSDL_ttf_2.0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autopoint
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -vfi
sed -i "s,-lm,," configure
./configure --prefix=$appsDir/TuxMath --without-sdlpango LDFLAGS="-liconv"
echo "#define ICONV_CONST const" >> config.h
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir/TuxMath
make install
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
sed \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
$portDir/additional-files/tuxmath.rdef > tuxmath.rdef
addResourcesToBinaries tuxmath.rdef \
$appsDir/TuxMath/bin/tuxmath
mv $appsDir/TuxMath/bin/tuxmath $appsDir/TuxMath/TuxMath
rm -r $appsDir/TuxMath/bin
addAppDeskbarSymlink $appsDir/TuxMath/TuxMath
}