diff --git a/games-kids/tuxtype/additional-files/tuxtype2.rdef b/games-kids/tuxtype/additional-files/tuxtype2.rdef new file mode 100644 index 000000000..6890dca1e --- /dev/null +++ b/games-kids/tuxtype/additional-files/tuxtype2.rdef @@ -0,0 +1,14 @@ + +resource app_flags B_SINGLE_LAUNCH | B_ARGV_ONLY; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + variety = B_APPV_FINAL, + internal = 0, + short_info = "TuxType2", + long_info = "Educational Typing Tutor" +}; + +resource app_signature "application/x-vnd.tuxtype2"; diff --git a/games-kids/tuxtype/patches/tuxtype2-1.5.2.patchset b/games-kids/tuxtype/patches/tuxtype2-1.5.2.patchset new file mode 100644 index 000000000..cdb4b164e --- /dev/null +++ b/games-kids/tuxtype/patches/tuxtype2-1.5.2.patchset @@ -0,0 +1,22 @@ +From 9302351c44be86f3f98169f88f908498454da575 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Fri, 29 Jul 2016 17:02:01 +0200 +Subject: disable fullscreen for Haiku + + +diff --git a/tuxtype/main.c b/tuxtype/main.c +index 3673634..96f4a5d 100644 +--- a/tuxtype/main.c ++++ b/tuxtype/main.c +@@ -41,6 +41,8 @@ int main(int argc, char *argv[]) + + #ifdef WIN32 + video_flags = (SDL_HWSURFACE); ++ #elif defined (__HAIKU__) ++ video_flags = (SDL_HWPALETTE); + #else + video_flags = (SDL_FULLSCREEN | SDL_HWSURFACE); + #endif +-- +2.7.0 + diff --git a/games-kids/tuxtype/tuxtype2-1.5.2.recipe b/games-kids/tuxtype/tuxtype2-1.5.2.recipe new file mode 100644 index 000000000..e4b42c7cd --- /dev/null +++ b/games-kids/tuxtype/tuxtype2-1.5.2.recipe @@ -0,0 +1,73 @@ +SUMMARY="Tux4Kids Typing Tutor" +DESCRIPTION="Educational Typing Tutor Game Starring Tux." +HOMEPAGE="https://tux4kids.alioth.debian.org/" +COPYRIGHT="2000-2009 Sam Hart" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://sf.net/projects/tuxtype/files/OldFiles/tuxtype2-1.5.2.tar.gz/download" +CHECKSUM_SHA256="d9552a3fe8367f14358e01d47aeb2603c6891fe0ec2e73414c541d91f0466d5d" +ADDITIONAL_FILES="tuxtype2.rdef" +PATCHES="tuxtype2-$portVersion.patchset" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + tuxtype2$secondaryArchSuffix + app:TuxType2$secondaryArchSuffix + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libcrypto$secondaryArchSuffix + lib:libsdl$secondaryArchSuffix + lib:libsdl_image$secondaryArchSuffix + lib:libsdl_mixer$secondaryArchSuffix + lib:libsdl_ttf$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libcrypto$secondaryArchSuffix + devel:libsdl$secondaryArchSuffix + devel:libsdl_image$secondaryArchSuffix + devel:libsdl_mixer$secondaryArchSuffix + devel:libsdl_ttf$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + autoreconf -vfi + ./configure --prefix=$appsDir/TuxTyping + 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/tuxtype2 + + mv $appsDir/TuxTyping/bin/tuxtype2 $appsDir/TuxTyping/TuxType2 + rm -r $appsDir/TuxTyping/bin + addAppDeskbarSymlink $appsDir/TuxTyping/TuxType2 +}