mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 00:00:07 +02:00
80 lines
2.4 KiB
Plaintext
80 lines
2.4 KiB
Plaintext
From b2061c3f71714b30cc6c9b080bb3b6a17f1041e4 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 16 Apr 2017 09:46:55 +0200
|
|
Subject: Godot: platform detection patch for AMD64 arch.
|
|
|
|
|
|
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py
|
|
index 54e227c..58b1e98 100644
|
|
--- a/platform/haiku/detect.py
|
|
+++ b/platform/haiku/detect.py
|
|
@@ -42,8 +42,12 @@ def configure(env):
|
|
|
|
env.Append(CPPPATH=['#platform/haiku'])
|
|
|
|
- env["CC"] = "gcc-x86"
|
|
- env["CXX"] = "g++-x86"
|
|
+ if (is64):
|
|
+ env["CC"] = "gcc"
|
|
+ env["CXX"] = "g++"
|
|
+ else:
|
|
+ env["CC"] = "gcc-x86"
|
|
+ env["CXX"] = "g++-x86"
|
|
|
|
if (env["target"] == "release"):
|
|
if (env["debug_release"] == "yes"):
|
|
--
|
|
2.12.2
|
|
|
|
|
|
From 231886e1aae765e9c73ba534d9af73b578917b0a Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 16 Apr 2017 11:08:29 +0200
|
|
Subject: Build fix for Haiku
|
|
|
|
|
|
diff --git a/core/image.h b/core/image.h
|
|
index 9536d45..1e0d1d6 100644
|
|
--- a/core/image.h
|
|
+++ b/core/image.h
|
|
@@ -30,6 +30,11 @@
|
|
#ifndef IMAGE_H
|
|
#define IMAGE_H
|
|
|
|
+/*Hack to get it work on Haiku*/
|
|
+#ifdef __HAIKU__
|
|
+#include_next <kernel/image.h>
|
|
+#endif
|
|
+
|
|
#include "color.h"
|
|
#include "dvector.h"
|
|
#include "math_2d.h"
|
|
--
|
|
2.12.2
|
|
|
|
|
|
From c2325313eb7608cae3fc58297f36f7b2a0114646 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 16 Apr 2017 21:31:09 +0200
|
|
Subject: Sysleebs needst to be added manually as LDFLAGS
|
|
|
|
|
|
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py
|
|
index 58b1e98..7301bd7 100644
|
|
--- a/platform/haiku/detect.py
|
|
+++ b/platform/haiku/detect.py
|
|
@@ -65,6 +65,10 @@ def configure(env):
|
|
env.Append(CPPFLAGS=['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DGLES_OVER_GL'])
|
|
env.Append(LIBS=['be', 'game', 'media', 'network', 'bnetapi', 'z', 'GL'])
|
|
|
|
+ # Stuff for Haikuports
|
|
+ # You need to adjust it every time if you add or remove a syslib in the recipe
|
|
+ env.Append(LIBS=['GLEW', 'GLU', 'mpcdec', 'ogg', 'png16', 'ssl', 'crypto', 'theora', 'vorbis', 'vorbisfile', 'webp'])
|
|
+
|
|
import methods
|
|
env.Append(BUILDERS={'GLSL120': env.Builder(action=methods.build_legacygl_headers, suffix='glsl.h', src_suffix='.glsl')})
|
|
env.Append(BUILDERS={'GLSL': env.Builder(action=methods.build_glsl_headers, suffix='glsl.h', src_suffix='.glsl')})
|
|
--
|
|
2.12.2
|
|
|