0
0
Fork 0
haikuports/games-kids/tuxmath/tuxmath-2.0.1.recipe

93 lines
2.5 KiB
Bash

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="3"
SOURCE_URI="https://sourceforge.net/projects/tuxmath/files/tuxmath-source/TuxMath%202.0.1%20-%20Source/tuxmath_w_fonts-2.0.1.tar.gz"
CHECKSUM_SHA256="6d26c08672edf5cce0ef2f685555867a7016c8a186282518276378b6c58774f4"
SOURCE_DIR="tuxmath_w_fonts-$portVersion"
PATCHES="tuxmath-$portVersion.patchset"
ADDITIONAL_FILES="tuxmath.rdef"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
tuxmath$secondaryArchSuffix
cmd:generate_lesson$secondaryArchSuffix
cmd:tuxmath$secondaryArchSuffix
cmd:tuxmathadmin$secondaryArchSuffix
cmd:tuxmathserver$secondaryArchSuffix
cmd:tuxmathtestclient$secondaryArchSuffix
"
REQUIRES="
haiku$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_net_1.2$secondaryArchSuffix
lib:libt4k_common$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
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_net_1.2$secondaryArchSuffix
devel:libt4k_common$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:awk
cmd:bison
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -vfi
LDFLAGS="-lintl -lnetwork" runConfigure ./configure --without-rsvg
echo "#define ICONV_CONST const" >> config.h
make $jobArgs
}
INSTALL()
{
mkdir -p $appsDir
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 \
$binDir/tuxmath
ln -s $binDir/tuxmath $appsDir/TuxMath
addAppDeskbarSymlink $binDir/tuxmath TuxMath
}