2021-08-10 10:23:47 +00:00
|
|
|
diff --git a/buildconfig/config_darwin.py b/buildconfig/config_darwin.py
|
2021-08-25 12:06:46 +00:00
|
|
|
index c785e183..37d5cea4 100644
|
2021-08-10 10:23:47 +00:00
|
|
|
--- a/buildconfig/config_darwin.py
|
|
|
|
+++ b/buildconfig/config_darwin.py
|
2021-08-25 12:06:46 +00:00
|
|
|
@@ -146,16 +146,8 @@ def main():
|
2021-08-10 10:23:47 +00:00
|
|
|
])
|
|
|
|
|
|
|
|
print ('Hunting dependencies...')
|
2021-08-25 12:06:46 +00:00
|
|
|
- incdirs = ['/usr/local/include', '/opt/homebrew/include']
|
|
|
|
- incdirs.extend(['/usr/local/include/SDL2', '/opt/homebrew/include/SDL2', '/opt/local/include/SDL2'])
|
2021-08-10 10:23:47 +00:00
|
|
|
-
|
|
|
|
- incdirs.extend([
|
|
|
|
- #'/usr/X11/include',
|
|
|
|
- '/opt/local/include',
|
|
|
|
- '/opt/local/include/freetype2/freetype']
|
|
|
|
- )
|
|
|
|
- #libdirs = ['/usr/local/lib', '/usr/X11/lib', '/opt/local/lib']
|
2021-08-25 12:06:46 +00:00
|
|
|
- libdirs = ['/usr/local/lib', '/opt/local/lib', '/opt/homebrew/lib']
|
2021-08-10 10:23:47 +00:00
|
|
|
+ incdirs = @buildinputs_include@
|
|
|
|
+ libdirs = @buildinputs_lib@
|
|
|
|
|
|
|
|
for d in DEPS:
|
|
|
|
if isinstance(d, (list, tuple)):
|
|
|
|
diff --git a/buildconfig/config_unix.py b/buildconfig/config_unix.py
|
2021-08-25 12:06:46 +00:00
|
|
|
index 5c50bcdc..2fd69e2d 100644
|
2021-08-10 10:23:47 +00:00
|
|
|
--- a/buildconfig/config_unix.py
|
|
|
|
+++ b/buildconfig/config_unix.py
|
2021-08-25 12:06:46 +00:00
|
|
|
@@ -210,18 +210,8 @@ def main():
|
2021-08-10 10:23:47 +00:00
|
|
|
if not DEPS[0].found:
|
|
|
|
raise RuntimeError('Unable to run "sdl-config". Please make sure a development version of SDL is installed.')
|
|
|
|
|
|
|
|
- incdirs = []
|
|
|
|
- libdirs = []
|
|
|
|
- for extrabase in extrabases:
|
|
|
|
- incdirs += [extrabase + d for d in origincdirs]
|
|
|
|
- libdirs += [extrabase + d for d in origlibdirs]
|
|
|
|
- incdirs += ["/usr"+d for d in origincdirs]
|
|
|
|
- libdirs += ["/usr"+d for d in origlibdirs]
|
|
|
|
- incdirs += ["/usr/local"+d for d in origincdirs]
|
|
|
|
- libdirs += ["/usr/local"+d for d in origlibdirs]
|
|
|
|
- if localbase:
|
|
|
|
- incdirs = [localbase+d for d in origincdirs]
|
|
|
|
- libdirs = [localbase+d for d in origlibdirs]
|
|
|
|
+ incdirs = @buildinputs_include@
|
|
|
|
+ libdirs = @buildinputs_lib@
|
|
|
|
|
|
|
|
for arg in DEPS[0].cflags.split():
|
|
|
|
if arg[:2] == '-I':
|