mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
minetest: bump version, fix wrong cmake build type (#11302)
The custom irrlicht library was inlined, therefore there is one less SOURCE_DIR now. minetest_game isn't included any more, it is supposed to be downloaded separately.
This commit is contained in:
@@ -1,23 +1,15 @@
|
|||||||
SUMMARY="An InfiniMiner/Minecraft inspired game"
|
SUMMARY="An InfiniMiner/Minecraft inspired game"
|
||||||
DESCRIPTION="Minetest, an open source infinite-world block sandbox game engine with support for survival and crafting."
|
DESCRIPTION="Minetest, an open source infinite-world block sandbox game engine with support for survival and crafting."
|
||||||
HOMEPAGE="https://www.minetest.net/"
|
HOMEPAGE="https://www.minetest.net/"
|
||||||
COPYRIGHT="2023 The Minetest Team"
|
COPYRIGHT="2024 The Minetest Team"
|
||||||
LICENSE="GNU LGPL v2.1
|
LICENSE="GNU LGPL v2.1
|
||||||
Apache v2"
|
Apache v2"
|
||||||
REVISION="1"
|
REVISION="1"
|
||||||
SOURCE_URI="https://github.com/minetest/minetest/archive/$portVersion.tar.gz"
|
SOURCE_URI="https://github.com/minetest/minetest/archive/$portVersion.tar.gz"
|
||||||
CHECKSUM_SHA256="0cd0fd48a97f76e337a2e1284599a054f8f92906a84a4ef2122ed321e1b75fa7"
|
CHECKSUM_SHA256="aa9a6ae57445b779f57dcba5a83b0704fabd24c5eca37c6c8611e885bdf09d7c"
|
||||||
SOURCE_FILENAME="minetest-$portVersion.tar.gz"
|
SOURCE_FILENAME="minetest-$portVersion.tar.gz"
|
||||||
SOURCE_DIR="minetest-$portVersion"
|
SOURCE_DIR="minetest-$portVersion"
|
||||||
SOURCE_URI_2="https://github.com/minetest/minetest_game/archive/$portVersion.tar.gz"
|
|
||||||
CHECKSUM_SHA256_2="0787b24cf7b340a8a2be873ca3744cec60c2683011f1d658350a031d1bd5976d"
|
|
||||||
SOURCE_FILENAME_2="minetest_game-$portVersion.tar.gz"
|
|
||||||
SOURCE_DIR_2="minetest_game-$portVersion"
|
|
||||||
SOURCE_URI_3="https://github.com/minetest/irrlicht/archive/refs/tags/1.9.0mt10.tar.gz"
|
|
||||||
CHECKSUM_SHA256_3="6d00348d8ff513f6a7cee5c930908ef67428ff637e6a9e4d5688409bdb6d547d"
|
|
||||||
SOURCE_DIR_3="irrlicht-1.9.0mt10"
|
|
||||||
PATCHES="minetest-$portVersion.patchset"
|
PATCHES="minetest-$portVersion.patchset"
|
||||||
PATCHES_3="minetest-$portVersion-source3.patchset"
|
|
||||||
ADDITIONAL_FILES="minetest.rdef.in"
|
ADDITIONAL_FILES="minetest.rdef.in"
|
||||||
|
|
||||||
ARCHITECTURES="all !x86_gcc2"
|
ARCHITECTURES="all !x86_gcc2"
|
||||||
@@ -29,6 +21,7 @@ PROVIDES="
|
|||||||
"
|
"
|
||||||
REQUIRES="
|
REQUIRES="
|
||||||
haiku$secondaryArchSuffix
|
haiku$secondaryArchSuffix
|
||||||
|
lib:libatomic$secondaryArchSuffix
|
||||||
lib:libbz2$secondaryArchSuffix
|
lib:libbz2$secondaryArchSuffix
|
||||||
lib:libcurl$secondaryArchSuffix
|
lib:libcurl$secondaryArchSuffix
|
||||||
lib:libfreetype$secondaryArchSuffix
|
lib:libfreetype$secondaryArchSuffix
|
||||||
@@ -53,6 +46,7 @@ REQUIRES="
|
|||||||
|
|
||||||
BUILD_REQUIRES="
|
BUILD_REQUIRES="
|
||||||
haiku${secondaryArchSuffix}_devel
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
devel:libatomic$secondaryArchSuffix
|
||||||
devel:libbz2$secondaryArchSuffix
|
devel:libbz2$secondaryArchSuffix
|
||||||
devel:libcurl$secondaryArchSuffix
|
devel:libcurl$secondaryArchSuffix
|
||||||
devel:libfreetype$secondaryArchSuffix
|
devel:libfreetype$secondaryArchSuffix
|
||||||
@@ -79,18 +73,17 @@ BUILD_PREREQUIRES="
|
|||||||
cmd:ld$secondaryArchSuffix
|
cmd:ld$secondaryArchSuffix
|
||||||
cmd:cmake
|
cmd:cmake
|
||||||
cmd:make
|
cmd:make
|
||||||
cmd:pkg_config
|
cmd:msgfmt$secondaryArchSuffix
|
||||||
|
cmd:pkg_config$secondaryArchSuffix
|
||||||
"
|
"
|
||||||
|
|
||||||
|
defineDebugInfoPackage minetest$secondaryArchSuffix \
|
||||||
|
"$appsDir/Minetest/Minetest"
|
||||||
|
|
||||||
BUILD()
|
BUILD()
|
||||||
{
|
{
|
||||||
rm -rf $sourceDir/games/minetest_game
|
|
||||||
rm -rf $sourceDir/lib/irrlichtmt
|
|
||||||
cp -rf $sourceDir2 $sourceDir/games/minetest_game
|
|
||||||
ln -sf $sourceDir3 $sourceDir/lib/irrlichtmt
|
|
||||||
echo $includeDir
|
|
||||||
cmake . \
|
cmake . \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCUSTOM_BINDIR="$appsDir/Minetest" \
|
-DCUSTOM_BINDIR="$appsDir/Minetest" \
|
||||||
-DCUSTOM_DOCDIR="$docDir" \
|
-DCUSTOM_DOCDIR="$docDir" \
|
||||||
-DCUSTOM_MANDIR="$docDir" \
|
-DCUSTOM_MANDIR="$docDir" \
|
||||||
@@ -106,18 +99,13 @@ echo $includeDir
|
|||||||
-DENABLE_GLES=OFF \
|
-DENABLE_GLES=OFF \
|
||||||
-DENABLE_LEVELDB=OFF \
|
-DENABLE_LEVELDB=OFF \
|
||||||
-DENABLE_LUAJIT=ON \
|
-DENABLE_LUAJIT=ON \
|
||||||
|
-DLUA_INCLUDE_DIR=/boot/system/$relativeIncludeDir/luajit-2.1 \
|
||||||
-DENABLE_POSTGRESQL=OFF \
|
-DENABLE_POSTGRESQL=OFF \
|
||||||
-DENABLE_REDIS=OFF \
|
-DENABLE_REDIS=OFF \
|
||||||
-DENABLE_SPATIAL=OFF \
|
-DENABLE_SPATIAL=OFF \
|
||||||
-DENABLE_SOUND=ON \
|
-DENABLE_SOUND=ON \
|
||||||
-DENABLE_SYSTEM_JSONCPP=ON \
|
-DENABLE_SYSTEM_JSONCPP=ON \
|
||||||
-DUSE_SDL2=true \
|
-DUSE_SDL2=true
|
||||||
-D_IRR_COMPILE_WITH_SDL_DEVICE_=1 \
|
|
||||||
-DNO_IRR_COMPILE_WITH_X11_=1 \
|
|
||||||
-DNO_IRR_COMPILE_WITH_X11_DEVICE_=1 \
|
|
||||||
-DNO_IRR_COMPILE_WITH_OPENGL_=1 \
|
|
||||||
-DNO_IRR_COMPILE_WITH_OGLES1_=1 \
|
|
||||||
-D_IRR_POSIX_API_=1
|
|
||||||
|
|
||||||
make $jobArgs
|
make $jobArgs
|
||||||
}
|
}
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
From 78336f3a3c4c820eed445176c6f504f35ae7ad70 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Maite Gamper <victor@wenzeslaus.de>
|
|
||||||
Date: Thu, 19 Oct 2023 05:55:57 +0200
|
|
||||||
Subject: fix for haiku (copied from irrlicht recipe)
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/include/IrrCompileConfig.h b/include/IrrCompileConfig.h
|
|
||||||
index 30ce67e..0e2d471 100644
|
|
||||||
--- a/include/IrrCompileConfig.h
|
|
||||||
+++ b/include/IrrCompileConfig.h
|
|
||||||
@@ -30,4 +30,15 @@
|
|
||||||
#define IRRLICHT_API
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+// haiku-specific options
|
|
||||||
+#ifdef __HAIKU__
|
|
||||||
+ #define _IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
+
|
|
||||||
+ #undef _IRR_COMPILE_WITH_X11_
|
|
||||||
+ #undef _IRR_COMPILE_WITH_X11_DEVICE_
|
|
||||||
+ #undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
|
|
||||||
+ #undef _IRR_USE_NON_SYSTEM_LIB_PNG_
|
|
||||||
+ #undef _IRR_USE_NON_SYSTEM_ZLIB_
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
#endif // __IRR_COMPILE_CONFIG_H_INCLUDED__
|
|
||||||
diff --git a/source/Irrlicht/CFileSystem.h b/source/Irrlicht/CFileSystem.h
|
|
||||||
index bb87d37..ba720d0 100644
|
|
||||||
--- a/source/Irrlicht/CFileSystem.h
|
|
||||||
+++ b/source/Irrlicht/CFileSystem.h
|
|
||||||
@@ -4,6 +4,8 @@
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
+#include <unistd.h>
|
|
||||||
+
|
|
||||||
#include "IFileSystem.h"
|
|
||||||
#include "irrArray.h"
|
|
||||||
|
|
||||||
diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt
|
|
||||||
index 62115c6..e53644f 100644
|
|
||||||
--- a/source/Irrlicht/CMakeLists.txt
|
|
||||||
+++ b/source/Irrlicht/CMakeLists.txt
|
|
||||||
@@ -99,6 +99,9 @@ elseif(EMSCRIPTEN)
|
|
||||||
elseif(SOLARIS)
|
|
||||||
add_definitions(-D_IRR_SOLARIS_PLATFORM_ -D_IRR_POSIX_API_)
|
|
||||||
set(DEVICE "X11")
|
|
||||||
+elseif(HAIKU)
|
|
||||||
+ add_definitions(-D_IRR_POSIX_API_)
|
|
||||||
+ set(DEVICE "SDL")
|
|
||||||
else()
|
|
||||||
add_definitions(-D_IRR_POSIX_API_)
|
|
||||||
set(LINUX_PLATFORM TRUE)
|
|
||||||
--
|
|
||||||
2.37.3
|
|
||||||
|
|
||||||
@@ -1,93 +0,0 @@
|
|||||||
From 72b136fb0d644a39ed03ee9fb458ee7012ac9e03 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Maite Gamper <victor@wenzeslaus.de>
|
|
||||||
Date: Thu, 19 Oct 2023 08:36:46 +0200
|
|
||||||
Subject: fix for haiku (copied from irrlicht recipe)
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/include/IrrCompileConfig.h b/include/IrrCompileConfig.h
|
|
||||||
index 0d308e9..8c54d12 100644
|
|
||||||
--- a/include/IrrCompileConfig.h
|
|
||||||
+++ b/include/IrrCompileConfig.h
|
|
||||||
@@ -45,11 +45,19 @@
|
|
||||||
//! Example: NO_IRR_COMPILE_WITH_X11_ would disable X11
|
|
||||||
|
|
||||||
//! Uncomment this line to compile with the SDL device
|
|
||||||
-//#define _IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
+#define _IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
#ifdef NO_IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
#undef _IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+#ifdef __HAIKU__
|
|
||||||
+#define _IRR_POSIX_API_
|
|
||||||
+#define _IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
+
|
|
||||||
+#define NO_IRR_COMPILE_WITH_X11_
|
|
||||||
+#define NO_IRR_COMPILE_WITH_X11_DEVICE_
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
//! WIN32 for Windows32
|
|
||||||
//! WIN64 for Windows64
|
|
||||||
// The windows platform and API support SDL and WINDOW device
|
|
||||||
@@ -469,5 +477,16 @@ ones. */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
+// haiku-specific options
|
|
||||||
+#ifdef __HAIKU__
|
|
||||||
+ #undef _IRR_COMPILE_WITH_X11_
|
|
||||||
+ #undef _IRR_COMPILE_WITH_X11_DEVICE_
|
|
||||||
+ #undef _IRR_USE_NON_SYSTEM_JPEG_LIB_
|
|
||||||
+ #undef _IRR_USE_NON_SYSTEM_LIB_PNG_
|
|
||||||
+ #undef _IRR_USE_NON_SYSTEM_ZLIB_
|
|
||||||
+
|
|
||||||
+ #define _IRR_COMPILE_WITH_SDL_DEVICE_
|
|
||||||
+#endif // __HAIKU__
|
|
||||||
+
|
|
||||||
#endif // __IRR_COMPILE_CONFIG_H_INCLUDED__
|
|
||||||
|
|
||||||
diff --git a/source/Irrlicht/CFileSystem.cpp b/source/Irrlicht/CFileSystem.cpp
|
|
||||||
index 45e8680..021d171 100644
|
|
||||||
--- a/source/Irrlicht/CFileSystem.cpp
|
|
||||||
+++ b/source/Irrlicht/CFileSystem.cpp
|
|
||||||
@@ -799,7 +799,7 @@ IFileList* CFileSystem::createFileList()
|
|
||||||
size = buf.st_size;
|
|
||||||
isDirectory = S_ISDIR(buf.st_mode);
|
|
||||||
}
|
|
||||||
- #if !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__CYGWIN__)
|
|
||||||
+ #if !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__CYGWIN__) && !defined(__HAIKU__)
|
|
||||||
// only available on some systems
|
|
||||||
else
|
|
||||||
{
|
|
||||||
diff --git a/source/Irrlicht/CFileSystem.h b/source/Irrlicht/CFileSystem.h
|
|
||||||
index bc04fd8..ef0f780 100644
|
|
||||||
--- a/source/Irrlicht/CFileSystem.h
|
|
||||||
+++ b/source/Irrlicht/CFileSystem.h
|
|
||||||
@@ -5,6 +5,8 @@
|
|
||||||
#ifndef __C_FILE_SYSTEM_H_INCLUDED__
|
|
||||||
#define __C_FILE_SYSTEM_H_INCLUDED__
|
|
||||||
|
|
||||||
+#include <unistd.h>
|
|
||||||
+
|
|
||||||
#include "IFileSystem.h"
|
|
||||||
#include "irrArray.h"
|
|
||||||
|
|
||||||
diff --git a/source/Irrlicht/CMakeLists.txt b/source/Irrlicht/CMakeLists.txt
|
|
||||||
index 208b573..adc93bc 100644
|
|
||||||
--- a/source/Irrlicht/CMakeLists.txt
|
|
||||||
+++ b/source/Irrlicht/CMakeLists.txt
|
|
||||||
@@ -108,8 +108,10 @@ if(ANDROID)
|
|
||||||
elseif(APPLE)
|
|
||||||
find_library(COCOA_LIB Cocoa REQUIRED)
|
|
||||||
find_library(IOKIT_LIB IOKit REQUIRED)
|
|
||||||
-
|
|
||||||
+ add_definitions(-D_IRR_POSIX_API_)
|
|
||||||
add_definitions(-DGL_SILENCE_DEPRECATION)
|
|
||||||
+elseif(HAIKU)
|
|
||||||
+ add_definitions(-D_IRR_POSIX_API_)
|
|
||||||
else()
|
|
||||||
# Unix probably
|
|
||||||
find_package(X11 REQUIRED)
|
|
||||||
--
|
|
||||||
2.37.3
|
|
||||||
|
|
||||||
@@ -1,57 +1,41 @@
|
|||||||
From e79490d2547d34aaa3f677640bf1230cf814ad79 Mon Sep 17 00:00:00 2001
|
From 4689a5f8fd41d9f25deac4534c97313ae8966e26 Mon Sep 17 00:00:00 2001
|
||||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||||
Date: Sun, 28 Feb 2021 17:54:22 +1000
|
Date: Sun, 28 Feb 2021 17:54:22 +1000
|
||||||
Subject: Add haiku support
|
Subject: Add haiku support
|
||||||
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
index 539169b..48002da 100644
|
index 9be4944..dff0463 100644
|
||||||
--- a/CMakeLists.txt
|
--- a/CMakeLists.txt
|
||||||
+++ b/CMakeLists.txt
|
+++ b/CMakeLists.txt
|
||||||
@@ -274,7 +274,7 @@ install(FILES "doc/texture_packs.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs")
|
@@ -255,7 +255,7 @@ install(FILES "doc/texture_packs.md" DESTINATION "${DOCDIR}" COMPONENT "Docs")
|
||||||
install(FILES "doc/world_format.txt" DESTINATION "${DOCDIR}" COMPONENT "Docs")
|
install(FILES "doc/world_format.md" DESTINATION "${DOCDIR}" COMPONENT "Docs")
|
||||||
install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
|
install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
|
||||||
|
|
||||||
-if(UNIX AND NOT APPLE)
|
-if(UNIX AND NOT APPLE)
|
||||||
+if(UNIX AND NOT APPLE AND NOT HAIKU)
|
+if(UNIX AND NOT APPLE AND NOT HAIKU)
|
||||||
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
|
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
|
||||||
install(FILES "misc/net.minetest.minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
|
install(FILES "misc/net.minetest.minetest.desktop" DESTINATION "${XDG_APPS_DIR}")
|
||||||
install(FILES "misc/net.minetest.minetest.appdata.xml" DESTINATION "${APPDATADIR}")
|
install(FILES "misc/net.minetest.minetest.metainfo.xml" DESTINATION "${METAINFODIR}")
|
||||||
diff --git a/cmake/Modules/MinetestFindIrrlichtHeaders.cmake b/cmake/Modules/MinetestFindIrrlichtHeaders.cmake
|
|
||||||
index e434b58..e697f51 100644
|
|
||||||
--- a/cmake/Modules/MinetestFindIrrlichtHeaders.cmake
|
|
||||||
+++ b/cmake/Modules/MinetestFindIrrlichtHeaders.cmake
|
|
||||||
@@ -5,6 +5,7 @@ find_path(IRRLICHT_INCLUDE_DIR NAMES irrlicht.h
|
|
||||||
PATHS
|
|
||||||
/usr/local/include/irrlichtmt
|
|
||||||
/usr/include/irrlichtmt
|
|
||||||
+ /system/develop/headers/x86/irrlichtmt #Haiku hybrid
|
|
||||||
/system/develop/headers/irrlichtmt #Haiku
|
|
||||||
PATH_SUFFIXES "include/irrlichtmt"
|
|
||||||
)
|
|
||||||
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
|
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp
|
||||||
index 29449d9..c639bf6 100644
|
index 3109100..664b31b 100644
|
||||||
--- a/src/defaultsettings.cpp
|
--- a/src/defaultsettings.cpp
|
||||||
+++ b/src/defaultsettings.cpp
|
+++ b/src/defaultsettings.cpp
|
||||||
@@ -207,11 +207,15 @@ void set_default_settings()
|
@@ -266,7 +266,11 @@ void set_default_settings()
|
||||||
settings->setDefault("lighting_boost_spread", "0.2");
|
settings->setDefault("lighting_boost_spread", "0.2");
|
||||||
settings->setDefault("texture_path", "");
|
settings->setDefault("texture_path", "");
|
||||||
settings->setDefault("shader_path", "");
|
settings->setDefault("shader_path", "");
|
||||||
+#ifdef __HAIKU__
|
+#ifdef __HAIKU__
|
||||||
+ settings->setDefault("video_driver", "ogles2");
|
+ settings->setDefault("video_driver", "ogles2");
|
||||||
+#else
|
+#else
|
||||||
#if ENABLE_GLES
|
settings->setDefault("video_driver", "");
|
||||||
settings->setDefault("video_driver", "ogles2");
|
|
||||||
#else
|
|
||||||
settings->setDefault("video_driver", "opengl");
|
|
||||||
#endif
|
|
||||||
+#endif // __HAIKU__
|
+#endif // __HAIKU__
|
||||||
settings->setDefault("cinematic", "false");
|
settings->setDefault("cinematic", "false");
|
||||||
settings->setDefault("camera_smoothing", "0");
|
settings->setDefault("camera_smoothing", "0.0");
|
||||||
settings->setDefault("cinematic_camera_smoothing", "0.7");
|
settings->setDefault("cinematic_camera_smoothing", "0.7");
|
||||||
@@ -246,7 +250,11 @@ void set_default_settings()
|
@@ -297,7 +301,11 @@ void set_default_settings()
|
||||||
settings->setDefault("texture_clean_transparent", "false");
|
settings->setDefault("enable_local_map_saving", "false");
|
||||||
settings->setDefault("texture_min_size", "64");
|
settings->setDefault("show_entity_selectionbox", "false");
|
||||||
settings->setDefault("ambient_occlusion_gamma", "1.8");
|
settings->setDefault("ambient_occlusion_gamma", "1.8");
|
||||||
+#ifdef __HAIKU__
|
+#ifdef __HAIKU__
|
||||||
+ settings->setDefault("enable_shaders", "false");
|
+ settings->setDefault("enable_shaders", "false");
|
||||||
@@ -62,20 +46,20 @@ index 29449d9..c639bf6 100644
|
|||||||
settings->setDefault("arm_inertia", "true");
|
settings->setDefault("arm_inertia", "true");
|
||||||
settings->setDefault("show_nametag_backgrounds", "true");
|
settings->setDefault("show_nametag_backgrounds", "true");
|
||||||
--
|
--
|
||||||
2.37.3
|
2.45.2
|
||||||
|
|
||||||
|
|
||||||
From cdf3859e16ba20feabfcce2612d0a8031a5a39b3 Mon Sep 17 00:00:00 2001
|
From 73feb53b4051028762ca6eee95b08bfad2764123 Mon Sep 17 00:00:00 2001
|
||||||
From: Maite Gamper <victor@wenzeslaus.de>
|
From: Maite Gamper <victor@wenzeslaus.de>
|
||||||
Date: Tue, 10 Oct 2023 07:17:36 +0200
|
Date: Tue, 10 Oct 2023 07:17:36 +0200
|
||||||
Subject: fix 3dEye's patch
|
Subject: fix 3dEye's patch
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||||
index afe0083..8f5d50e 100644
|
index 955bf05..c7c0247 100644
|
||||||
--- a/src/CMakeLists.txt
|
--- a/src/CMakeLists.txt
|
||||||
+++ b/src/CMakeLists.txt
|
+++ b/src/CMakeLists.txt
|
||||||
@@ -252,9 +252,13 @@ endif()
|
@@ -267,9 +267,13 @@ endif()
|
||||||
# Use cmake_config.h
|
# Use cmake_config.h
|
||||||
add_definitions(-DUSE_CMAKE_CONFIG_H)
|
add_definitions(-DUSE_CMAKE_CONFIG_H)
|
||||||
|
|
||||||
@@ -93,30 +77,26 @@ index afe0083..8f5d50e 100644
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
# Windows
|
# Windows
|
||||||
diff --git a/src/porting.cpp b/src/porting.cpp
|
diff --git a/src/porting.cpp b/src/porting.cpp
|
||||||
index 629f00c..c3076b4 100644
|
index da97292..11b4dad 100644
|
||||||
--- a/src/porting.cpp
|
--- a/src/porting.cpp
|
||||||
+++ b/src/porting.cpp
|
+++ b/src/porting.cpp
|
||||||
@@ -61,6 +61,14 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
@@ -61,7 +61,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
#include <FindDirectory.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
+#if defined(__HAIKU__)
|
#if defined(__HAIKU__)
|
||||||
+#include <Application.h>
|
+ #include <Application.h>
|
||||||
+#include <FindDirectory.h>
|
#include <FindDirectory.h>
|
||||||
+#include <Path.h>
|
+ #include <Path.h>
|
||||||
+#include <Roster.h>
|
+ #include <Roster.h>
|
||||||
+#include <OS.h>
|
+ #include <OS.h>
|
||||||
+#endif
|
#endif
|
||||||
+
|
|
||||||
#include "config.h"
|
|
||||||
#include "debug.h"
|
|
||||||
#include "filesys.h"
|
|
||||||
@@ -258,7 +266,16 @@ bool getCurrentWorkingDir(char *buf, size_t len)
|
|
||||||
|
|
||||||
bool getExecPathFromProcfs(char *buf, size_t buflen)
|
#if HAVE_MALLOC_TRIM
|
||||||
{
|
@@ -308,6 +312,15 @@ static bool getExecPathFromProcfs(char *buf, size_t buflen)
|
||||||
-#ifndef _WIN32
|
|
||||||
+#if defined(__HAIKU__)
|
buf[len] = '\0';
|
||||||
|
return true;
|
||||||
|
+#elif defined(__HAIKU__)
|
||||||
+ app_info appInfo;
|
+ app_info appInfo;
|
||||||
+ if (be_app->GetAppInfo(&appInfo) == B_OK) {
|
+ if (be_app->GetAppInfo(&appInfo) == B_OK) {
|
||||||
+ BPath path(&appInfo.ref);
|
+ BPath path(&appInfo.ref);
|
||||||
@@ -125,11 +105,10 @@ index 629f00c..c3076b4 100644
|
|||||||
+ sprintf(buf, "/system/apps/Minetest/Minetest");
|
+ sprintf(buf, "/system/apps/Minetest/Minetest");
|
||||||
+ }
|
+ }
|
||||||
+ return true;
|
+ return true;
|
||||||
+#elif defined(_WIN32)
|
#else
|
||||||
buflen--;
|
return false;
|
||||||
|
#endif
|
||||||
ssize_t len;
|
@@ -563,6 +576,19 @@ bool setSystemPaths()
|
||||||
@@ -533,6 +550,19 @@ bool setSystemPaths()
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -150,5 +129,42 @@ index 629f00c..c3076b4 100644
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
--
|
--
|
||||||
2.37.3
|
2.45.2
|
||||||
|
|
||||||
|
|
||||||
|
From 8c8ac693632894e363bb7aac3063382dea313239 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Maite Gamper <victor@wenzeslaus.de>
|
||||||
|
Date: Thu, 19 Oct 2023 08:36:46 +0200
|
||||||
|
Subject: fix for haiku (copied from irrlicht recipe)
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/irr/src/CFileSystem.h b/irr/src/CFileSystem.h
|
||||||
|
index 18bc7ff..ebb0c19 100644
|
||||||
|
--- a/irr/src/CFileSystem.h
|
||||||
|
+++ b/irr/src/CFileSystem.h
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
+#include <unistd.h>
|
||||||
|
+
|
||||||
|
#include "IFileSystem.h"
|
||||||
|
#include "irrArray.h"
|
||||||
|
|
||||||
|
diff --git a/irr/src/CMakeLists.txt b/irr/src/CMakeLists.txt
|
||||||
|
index 15a752c..7dbdcd1 100644
|
||||||
|
--- a/irr/src/CMakeLists.txt
|
||||||
|
+++ b/irr/src/CMakeLists.txt
|
||||||
|
@@ -73,6 +73,9 @@ elseif(EMSCRIPTEN)
|
||||||
|
elseif(SOLARIS)
|
||||||
|
add_definitions(-D_IRR_SOLARIS_PLATFORM_ -D_IRR_POSIX_API_)
|
||||||
|
set(DEVICE "X11")
|
||||||
|
+elseif(HAIKU)
|
||||||
|
+ add_definitions(-D_IRR_POSIX_API_)
|
||||||
|
+ set(DEVICE "SDL")
|
||||||
|
else()
|
||||||
|
add_definitions(-D_IRR_POSIX_API_)
|
||||||
|
set(LINUX_PLATFORM TRUE)
|
||||||
|
--
|
||||||
|
2.45.2
|
||||||
|
|
||||||
Reference in New Issue
Block a user