Fix mac build.
authorCarl Hetherington <cth@carlh.net>
Tue, 8 Oct 2024 21:57:05 +0000 (23:57 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 8 Oct 2024 21:57:38 +0000 (23:57 +0200)
cscript

diff --git a/cscript b/cscript
index 2a369133fe4bac5d1ddcebd612e566b72a45fb5a..07c53c41c27a333d2900e53e7da4a8dcf5bd103a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -720,7 +720,7 @@ def build(target, options, for_package):
             json.dump(desc, outfile)
         target.command('%s --repo=build/platform/repo build/platform/flatpak build/com.dcpomatic.DCP-o-matic.json' % target.flatpak_builder())
     elif target.platform != 'linux' or target.detail == 'appimage' or not for_package:
-        if target.distro == 'arch':
+        if target.platform == 'linux' and target.distro == 'arch':
             # We're using a special pinned distro FFmpeg on Arch, and this is necessary to find it
             target.append_with_colon('PKG_CONFIG_PATH', '/usr/lib/ffmpeg4.4/pkgconfig')
         target.command('./waf configure --prefix=%s %s' % (target.directory, configure_options(target, options, for_package)))