mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-30 03:58:51 +02:00
61
games-sports/xmoto/patches/xmoto_x86-0.5.11.patchset
Normal file
61
games-sports/xmoto/patches/xmoto_x86-0.5.11.patchset
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
From 9b6a37dbbf04cf446c8978ea42f20142ea43d8a8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Kamil=20Krzy=C5=BCanowski?= <kamnxt@kamnxt.com>
|
||||||
|
Date: Fri, 12 Dec 2014 16:46:15 +0000
|
||||||
|
Subject: Patched the files to make them work on haiku.
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/configure.in b/configure.in
|
||||||
|
index 452f196..0948bc8 100644
|
||||||
|
--- a/configure.in
|
||||||
|
+++ b/configure.in
|
||||||
|
@@ -155,7 +155,7 @@ fi
|
||||||
|
AM_CONDITIONAL([USE_SDLGFX], test "$USE_SDLGFX" = "1")
|
||||||
|
|
||||||
|
# m
|
||||||
|
-AC_CHECK_LIB(m, floor, , AC_MSG_ERROR(No math library found))
|
||||||
|
+AC_SEARCH_LIBS(floor, m, , AC_MSG_ERROR(No math library found))
|
||||||
|
|
||||||
|
AC_SEARCH_LIBS(lua_pushboolean,lua lua5.1 lua50, [], [AC_MSG_ERROR(liblua5.1, liblua50, or liblua required)])
|
||||||
|
AC_SEARCH_LIBS(luaopen_math,lualib lualib5.1 lualib50, [], [AC_MSG_ERROR(liblualib5.1, liblualib50, or liblualib required)])
|
||||||
|
diff --git a/src/GameInit.cpp b/src/GameInit.cpp
|
||||||
|
index 0ae9373..86f23d7 100644
|
||||||
|
--- a/src/GameInit.cpp
|
||||||
|
+++ b/src/GameInit.cpp
|
||||||
|
@@ -269,7 +269,7 @@ void GameApp::run_load(int nNumArgs, char** ppcArgs) {
|
||||||
|
struct sigaction v_act;
|
||||||
|
|
||||||
|
v_act.sa_handler = xmexit_term;
|
||||||
|
-#if !defined(__APPLE__) && !defined(__FreeBSD__)
|
||||||
|
+#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__HAIKU__)
|
||||||
|
v_act.sa_restorer = NULL;
|
||||||
|
#endif
|
||||||
|
sigemptyset(&v_act.sa_mask);
|
||||||
|
diff --git a/src/VFileIO.cpp b/src/VFileIO.cpp
|
||||||
|
index 7d6c7d9..cd95f58 100644
|
||||||
|
--- a/src/VFileIO.cpp
|
||||||
|
+++ b/src/VFileIO.cpp
|
||||||
|
@@ -106,7 +106,7 @@ std::string getPWDDir(bool i_asUtf8 = false) {
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-#if !defined(WIN32) && !defined(__MORPHOS__) && !defined(__amigaos4__)
|
||||||
|
+#if !defined(WIN32) && !defined(__MORPHOS__) && !defined(__amigaos4__) && !defined(__HAIKU__)
|
||||||
|
void strlwr(char *pc) {
|
||||||
|
for(unsigned int i=0; i<strlen(pc); i++) pc[i] = tolower(pc[i]);
|
||||||
|
}
|
||||||
|
diff --git a/src/net/extSDL_net.cpp b/src/net/extSDL_net.cpp
|
||||||
|
index 1803710..0d130aa 100644
|
||||||
|
--- a/src/net/extSDL_net.cpp
|
||||||
|
+++ b/src/net/extSDL_net.cpp
|
||||||
|
@@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
// read the .h to understand why i redefine SDLNet_TCP_Send
|
||||||
|
-#if !defined(WIN32) && !defined(__APPLE__)
|
||||||
|
+#if !defined(WIN32) && !defined(__APPLE__) && !defined(__HAIKU__)
|
||||||
|
#include <sys/socket.h>
|
||||||
|
|
||||||
|
#define SOCKET int
|
||||||
|
--
|
||||||
|
1.8.3.4
|
||||||
|
|
||||||
93
games-sports/xmoto/xmoto-0.5.11.recipe
Normal file
93
games-sports/xmoto/xmoto-0.5.11.recipe
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
SUMMARY="2D motocross platform game"
|
||||||
|
HOMEPAGE="http://xmoto.tuxfamily.org"
|
||||||
|
COPYRIGHT="2006-2014 Nicolas Adenis-Lamarre
|
||||||
|
2007-2011 Emmanuel Gorse
|
||||||
|
2009-2010 Jens Erler
|
||||||
|
2005-2006 Rasmus Neckelmann"
|
||||||
|
LICENSE="GNU GPL v2"
|
||||||
|
SRC_URI="http://download.tuxfamily.org/xmoto/xmoto/0.5.11/xmoto-0.5.11-src.tar.gz"
|
||||||
|
CHECKSUM_SHA256="a584a6f9292b184686b72c78f16de4b82d5c5b72ad89e41912ff50d03eca26b2"
|
||||||
|
REVISION="1"
|
||||||
|
ARCHITECTURES="x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
PATCHES="xmoto_x86-0.5.11.patchset"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
xmoto$secondaryArchSuffix = $portVersion
|
||||||
|
cmd:xmoto$secondaryArchSuffix = $portVersion
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix >= $haikuVersion
|
||||||
|
lib:libgl$secondaryArchSuffix
|
||||||
|
lib:libsdl$secondaryArchSuffix
|
||||||
|
lib:libintl$secondaryArchSuffix
|
||||||
|
lib:libcurl$secondaryArchSuffix
|
||||||
|
lib:libode$secondaryArchSuffix
|
||||||
|
lib:liblua$secondaryArchSuffix
|
||||||
|
lib:libsdl_ttf$secondaryArchSuffix
|
||||||
|
lib:libsdl_net$secondaryArchSuffix
|
||||||
|
lib:libsdl_mixer$secondaryArchSuffix
|
||||||
|
lib:libglu$secondaryArchSuffix
|
||||||
|
lib:libbz2$secondaryArchSuffix
|
||||||
|
lib:libpng$secondaryArchSuffix
|
||||||
|
lib:libjpeg$secondaryArchSuffix
|
||||||
|
lib:libz$secondaryArchSuffix
|
||||||
|
lib:libsqlite3$secondaryArchSuffix
|
||||||
|
lib:libxml2$secondaryArchSuffix
|
||||||
|
lib:libstdc++$secondaryArchSuffix
|
||||||
|
lib:libgcc_s$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
devel:libsqlite3$secondaryArchSuffix
|
||||||
|
devel:libz$secondaryArchSuffix
|
||||||
|
devel:libjpeg$secondaryArchSuffix
|
||||||
|
devel:libpng$secondaryArchSuffix
|
||||||
|
devel:libxml2$secondaryArchSuffix
|
||||||
|
devel:libbz2$secondaryArchSuffix
|
||||||
|
devel:libglu$secondaryArchSuffix
|
||||||
|
devel:libsdl$secondaryArchSuffix
|
||||||
|
devel:sdl_mixer$secondaryArchSuffix
|
||||||
|
devel:sdl_net$secondaryArchSuffix
|
||||||
|
devel:sdl_ttf$secondaryArchSuffix
|
||||||
|
devel:liblua$secondaryArchSuffix
|
||||||
|
devel:liblua
|
||||||
|
devel:libode$secondaryArchSuffix
|
||||||
|
devel:libcurl$secondaryArchSuffix
|
||||||
|
devel:libgl$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:sed
|
||||||
|
cmd:grep
|
||||||
|
cmd:ode_config$secondaryArchSuffix
|
||||||
|
cmd:awk
|
||||||
|
cmd:find
|
||||||
|
cmd:gettext$secondaryArchSuffix
|
||||||
|
cmd:automake
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
|
cmd:autoconf
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
autoconf
|
||||||
|
export CFLAGS="-lGL"
|
||||||
|
export CXXFLAGS="-lGL"
|
||||||
|
runConfigure ./configure --with-internal-xdg=1
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
}
|
||||||
|
|
||||||
|
DESCRIPTION="
|
||||||
|
X-Moto is a challenging 2D motocross platform game, where physics play \
|
||||||
|
an all important role in the gameplay. You need to control your bike to \
|
||||||
|
its limit, if you want to have a chance finishing the more difficult of \
|
||||||
|
the challenges.
|
||||||
|
"
|
||||||
Reference in New Issue
Block a user