Auto-detect OS X during configure. Try again to fix lzma dep.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 8775cb38735627313a24ead249d46346d2efc262..4ba4eadb918b6c9ab512c98e9a9583b4a78cd8ca 100644 (file)
--- a/cscript
+++ b/cscript
@@ -8,13 +8,13 @@ def dependencies(target):
     else:
         return (('openjpeg-cdist', None),
                 ('ffmpeg-cdist', '7a23ec9c771184ab563cfe24ad9b427f38368961'),
-                ('libdcp', 'v0.52'))
+                ('libdcp', 'v0.53'))
 
 def build(env, target):
     cmd = './waf configure --prefix=%s' % env.work_dir_cscript()
     if target.platform == 'windows':
         cmd += ' --target-windows'
-    else:
+    elif target.platform == 'linux':
         cmd += ' --static'
     env.command(cmd)
 
@@ -61,6 +61,9 @@ def package(env, target, version):
             debs.append(os.path.abspath(p))
 
         return debs
+    elif target.platform == 'osx':
+        env.command('bash platform/osx/make_dmg.sh')
+        return os.path.abspath(glob.glob('build/platform/osx/DVD-o-matic*.dmg')[0])
 
 def make_pot(env):
     env.command('./waf pot')