Add F-1 Spirit.

This commit is contained in:
Adrien Destugues
2014-01-21 23:14:15 +01:00
parent cd5538ef03
commit 8db5c2f3b0
2 changed files with 87 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
SUMMARY="a top down Formula One Racing game"
HOMEPAGE="http://www2.braingames.getput.com/f1spirit/"
LICENSE="GNU GPL v2"
COPYRIGHT="2002-2008 Brain Games"
SRC_URI="http://braingames.jorito.net/f1spirit/f1spirit.src_0.rc9-1615.tgz"
CHECKSUM_MD5="304935124a1bf48a4de9b39077655fe9"
REVISION="1"
ARCHITECTURES="x86_gcc2"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libcurl$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libsdl$secondaryArchSuffix
lib:libSDL_image$secondaryArchSuffix
lib:libSDL_mixer$secondaryArchSuffix
lib:libSDL_net_1.2$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libcurl$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libsdl$secondaryArchSuffix
devel:libSDL_image$secondaryArchSuffix
devel:libSDL_mixer$secondaryArchSuffix
devel:libSDL_net_1.2$secondaryArchSuffix
lib:libSDL_net_1.2$secondaryArchSuffix
# Why is that required?
devel:libssl$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
haiku_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
PATCHES="$portName-$portVersion.patchset"
BUILD()
{
make $jobArgs
}
INSTALL()
{
installDir=$appsDir/"F-1 Spirit"
mkdir -p "$installDir"
make install PREFIX="$installDir" GAMEDIR="$installDir"
cd "$installDir"
echo -e "#!/bin/sh\ncd \"$installDir\"/share/games/f1spirit && ./f1spirit" > f1spirit
addAppDeskbarSymlink "$installDir/$portName" "F-1 Spirit"
}
DESCRIPTION="
Race against your opponents on 21 tracks. Features online high scores, realtime
rain effect, split-screen multiplayer, and more!
"

View File

@@ -0,0 +1,21 @@
From 1ddc81cdd051fabb1e56e861f5fd5a9da429029c Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Tue, 21 Jan 2014 22:40:24 +0100
Subject: Remove outdated include.
diff --git a/sources/F1Shttp.cpp b/sources/F1Shttp.cpp
index 59a213c..9cb48cc 100644
--- a/sources/F1Shttp.cpp
+++ b/sources/F1Shttp.cpp
@@ -3,7 +3,6 @@
#include "string.h"
#include <curl/curl.h>
-#include <curl/types.h>
#include <curl/easy.h>
#include "F1Shttp.h"
--
1.8.3.4