tuxtype, new recipe (#753)

This commit is contained in:
Schrijvers Luc
2016-08-06 17:53:08 +02:00
committed by waddlesplash
parent 463ea13907
commit 534a8bfa9f
3 changed files with 109 additions and 0 deletions

View File

@@ -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";

View File

@@ -0,0 +1,22 @@
From 9302351c44be86f3f98169f88f908498454da575 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
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

View File

@@ -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
}