2017-04-22 20:24:16 +00:00
|
|
|
SUMMARY="Tux4Kids' typing tutor for kids"
|
|
|
|
DESCRIPTION="TuxType2 is an educational typing tutor for kids starring Tux, \
|
|
|
|
the Linux penguin. This educational game comes with two different games for \
|
|
|
|
practicing typing, and having a great time doing it."
|
2018-09-18 08:42:59 +00:00
|
|
|
HOMEPAGE="https://sourceforge.net/projects/tuxtype/"
|
2017-04-22 20:24:16 +00:00
|
|
|
COPYRIGHT="2000-2009 Sam Hart"
|
|
|
|
LICENSE="GNU GPL v2"
|
2020-01-18 10:40:38 +00:00
|
|
|
REVISION="3"
|
2017-04-22 20:24:16 +00:00
|
|
|
SOURCE_URI="https://sf.net/projects/tuxtype/files/tuxtype-source/TuxType%201.8.0%20-%20Source/tuxtype_w_fonts-1.8.0.tar.gz"
|
|
|
|
CHECKSUM_SHA256="40b0926a2e96df7023be69a4224295c45a99027b049dcbcf222a33ffa3dc121d"
|
|
|
|
SOURCE_DIR="tuxtype_w_fonts-$portVersion"
|
|
|
|
PATCHES="tuxtype2-$portVersion.patchset"
|
2018-08-03 07:19:52 +00:00
|
|
|
ADDITIONAL_FILES="tuxtype2.rdef"
|
2017-04-22 20:24:16 +00:00
|
|
|
|
2021-09-15 19:40:18 +00:00
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
2017-04-22 20:24:16 +00:00
|
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
|
|
|
|
PROVIDES="
|
|
|
|
tuxtype2$secondaryArchSuffix
|
|
|
|
app:TuxType2$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
REQUIRES="
|
|
|
|
haiku$secondaryArchSuffix
|
|
|
|
lib:libiconv$secondaryArchSuffix
|
|
|
|
lib:libintl$secondaryArchSuffix
|
2020-01-18 10:40:38 +00:00
|
|
|
lib:libSDL_1.2$secondaryArchSuffix
|
|
|
|
lib:libSDL_image_1.2$secondaryArchSuffix
|
|
|
|
lib:libSDL_mixer_1.2$secondaryArchSuffix
|
|
|
|
lib:libSDL_pango$secondaryArchSuffix
|
2017-04-22 20:24:16 +00:00
|
|
|
lib:libxml2$secondaryArchSuffix
|
|
|
|
"
|
|
|
|
|
|
|
|
BUILD_REQUIRES="
|
|
|
|
haiku${secondaryArchSuffix}_devel
|
|
|
|
devel:libiconv$secondaryArchSuffix
|
|
|
|
devel:libintl$secondaryArchSuffix
|
2020-01-18 10:40:38 +00:00
|
|
|
devel:libSDL_1.2$secondaryArchSuffix
|
|
|
|
devel:libSDL_image_1.2$secondaryArchSuffix
|
|
|
|
devel:libSDL_mixer_1.2$secondaryArchSuffix
|
|
|
|
devel:libSDL_pango$secondaryArchSuffix
|
2017-04-22 20:24:16 +00:00
|
|
|
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="-liconv" ./configure --prefix=$appsDir/TuxTyping \
|
|
|
|
--without-rsvg
|
|
|
|
make $jobArgs
|
|
|
|
}
|
|
|
|
|
|
|
|
INSTALL()
|
|
|
|
{
|
|
|
|
mkdir -p $appsDir/TuxTyping
|
|
|
|
|
|
|
|
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/tuxtype2.rdef > tuxtype2.rdef
|
|
|
|
|
|
|
|
addResourcesToBinaries tuxtype2.rdef \
|
|
|
|
$appsDir/TuxTyping/bin/tuxtype
|
|
|
|
|
|
|
|
mv $appsDir/TuxTyping/bin/tuxtype $appsDir/TuxTyping/TuxType2
|
|
|
|
rm -r $appsDir/TuxTyping/bin
|
|
|
|
|
|
|
|
addAppDeskbarSymlink $appsDir/TuxTyping/TuxType2
|
|
|
|
}
|