|
Lines 1-5
Link Here
|
| 1 |
--- ./platform/x11/detect.py.orig 2017-08-27 16:25:12 UTC |
1 |
--- platform/x11/detect.py.orig 2017-08-28 01:55:12 UTC |
| 2 |
+++ ./platform/x11/detect.py |
2 |
+++ platform/x11/detect.py |
| 3 |
@@ -56,7 +56,9 @@ def get_opts(): |
3 |
@@ -56,7 +56,9 @@ def get_opts(): |
| 4 |
('use_sanitizer', 'Use llvm compiler sanitize address', 'no'), |
4 |
('use_sanitizer', 'Use llvm compiler sanitize address', 'no'), |
| 5 |
('use_leak_sanitizer', 'Use llvm compiler sanitize memory leaks', 'no'), |
5 |
('use_leak_sanitizer', 'Use llvm compiler sanitize memory leaks', 'no'), |
|
Lines 46-69
Link Here
|
| 46 |
|
46 |
|
| 47 |
env.ParseConfig('pkg-config x11 --cflags --libs') |
47 |
env.ParseConfig('pkg-config x11 --cflags --libs') |
| 48 |
env.ParseConfig('pkg-config xinerama --cflags --libs') |
48 |
env.ParseConfig('pkg-config xinerama --cflags --libs') |
| 49 |
@@ -148,13 +143,14 @@ def configure(env): |
49 |
@@ -148,13 +143,22 @@ def configure(env): |
| 50 |
# Currently not compatible with OpenSSL 1.1.0+ |
50 |
# Currently not compatible with OpenSSL 1.1.0+ |
| 51 |
# https://github.com/godotengine/godot/issues/8624 |
51 |
# https://github.com/godotengine/godot/issues/8624 |
| 52 |
import subprocess |
52 |
import subprocess |
| 53 |
- openssl_version = subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n') |
53 |
- openssl_version = subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n') |
| 54 |
+ openssl_version = '1.0.2' #subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n') |
54 |
+ try: |
|
|
55 |
+ openssl_version = subprocess.check_output(['pkg-config', 'openssl', '--modversion']).strip('\n') |
| 56 |
+ except: |
| 57 |
+ # approx base openssl version |
| 58 |
+ openssl_version = '1.0.2' |
| 55 |
if (openssl_version >= "1.1.0"): |
59 |
if (openssl_version >= "1.1.0"): |
| 56 |
print("Error: Found system-installed OpenSSL %s, currently only supporting version 1.0.x." % openssl_version) |
60 |
print("Error: Found system-installed OpenSSL %s, currently only supporting version 1.0.x." % openssl_version) |
| 57 |
print("Aborting.. You can compile with 'builtin_openssl=yes' to use the bundled version.\n") |
61 |
print("Aborting.. You can compile with 'builtin_openssl=yes' to use the bundled version.\n") |
| 58 |
sys.exit(255) |
62 |
sys.exit(255) |
| 59 |
|
63 |
|
| 60 |
- env.ParseConfig('pkg-config openssl --cflags --libs') |
64 |
- env.ParseConfig('pkg-config openssl --cflags --libs') |
| 61 |
+ #env.ParseConfig('pkg-config openssl --cflags --libs') |
65 |
+ try: |
| 62 |
+ env.ParseConfig('echo -lssl -lcrypto') |
66 |
+ # try to find a port installed openssl |
|
|
67 |
+ env.ParseConfig('pkg-config openssl --cflags --libs') |
| 68 |
+ except: |
| 69 |
+ # if none found use base system openssl |
| 70 |
+ env.ParseConfig('echo -lssl -lcrypto') |
| 63 |
|
71 |
|
| 64 |
if (env['builtin_libwebp'] == 'no'): |
72 |
if (env['builtin_libwebp'] == 'no'): |
| 65 |
env.ParseConfig('pkg-config libwebp --cflags --libs') |
73 |
env.ParseConfig('pkg-config libwebp --cflags --libs') |
| 66 |
@@ -199,12 +195,13 @@ def configure(env): |
74 |
@@ -199,12 +203,13 @@ def configure(env): |
| 67 |
if (env['builtin_glew'] == 'no'): |
75 |
if (env['builtin_glew'] == 'no'): |
| 68 |
env.ParseConfig('pkg-config glew --cflags --libs') |
76 |
env.ParseConfig('pkg-config glew --cflags --libs') |
| 69 |
|
77 |
|
|
Lines 83-89
Link Here
|
| 83 |
|
91 |
|
| 84 |
if (platform.system() == "Linux"): |
92 |
if (platform.system() == "Linux"): |
| 85 |
env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"]) |
93 |
env.Append(CPPFLAGS=["-DJOYDEV_ENABLED"]) |
| 86 |
@@ -219,6 +216,11 @@ def configure(env): |
94 |
@@ -219,6 +224,11 @@ def configure(env): |
| 87 |
else: |
95 |
else: |
| 88 |
print("libudev development libraries not found, disabling udev support") |
96 |
print("libudev development libraries not found, disabling udev support") |
| 89 |
|
97 |
|