nixpkgs/pkgs/development/tools/godot/pkg_config_additions.patch

33 lines
1.3 KiB
Diff
Raw Normal View History

2020-07-07 20:17:58 +00:00
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index 91652aad55..d12389f9f2 100644
2020-07-07 20:17:58 +00:00
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -218,6 +218,11 @@ def configure(env):
2020-07-07 20:17:58 +00:00
env.ParseConfig("pkg-config xrender --cflags --libs")
env.ParseConfig("pkg-config xi --cflags --libs")
2020-07-07 20:17:58 +00:00
+ env.ParseConfig("pkg-config xext --cflags --libs")
+ env.ParseConfig("pkg-config xfixes --cflags --libs")
+ env.ParseConfig("pkg-config glu --cflags --libs")
+ env.ParseConfig("pkg-config zlib --cflags --libs")
2019-03-21 10:08:54 +00:00
+
2020-07-07 20:17:58 +00:00
if env["touch"]:
env.Append(CPPDEFINES=["TOUCH_ENABLED"])
@@ -323,6 +328,7 @@ def configure(env):
2019-03-21 10:08:54 +00:00
print("Enabling ALSA")
env["alsa"] = True
2020-07-07 20:17:58 +00:00
env.Append(CPPDEFINES=["ALSA_ENABLED", "ALSAMIDI_ENABLED"])
+ env.ParseConfig("pkg-config alsa --cflags --libs")
2019-03-21 10:08:54 +00:00
else:
print("ALSA libraries not found, disabling driver")
@@ -340,6 +346,7 @@ def configure(env):
if os.system("pkg-config --exists libudev") == 0: # 0 means found
print("Enabling udev support")
env.Append(CPPDEFINES=["UDEV_ENABLED"])
+ env.ParseConfig("pkg-config libudev --cflags --libs")
else:
print("libudev development libraries not found, disabling udev support")
else: