summaryrefslogtreecommitdiff
path: root/cscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-14 22:01:07 +0100
committerCarl Hetherington <cth@carlh.net>2024-04-22 01:42:00 +0200
commit066471f69400fc72e9c126ab36f5427329f30220 (patch)
treedd15f6b6aa7a74b5cca2ce5f300723b1b72d2f11 /cscript
parent0fbfe3d2dd5de9eab299f2ff569bff29cc6f8e19 (diff)
Support MPEG2 decompression.
Diffstat (limited to 'cscript')
-rw-r--r--cscript15
1 files changed, 13 insertions, 2 deletions
diff --git a/cscript b/cscript
index f62065e8..d9ee7cf7 100644
--- a/cscript
+++ b/cscript
@@ -35,11 +35,22 @@ import os
import shutil
def dependencies(target, options):
- return (
+ deps = [
('libcxml', 'v0.17.9', options),
('openjpeg', 'ad8edaacd54a862940d0a77c41ecda5858b54d6e'),
('asdcplib', '4b5d6e8d27dfd5fb282590538068662f4dbbf1c9')
- )
+ ]
+
+ if target.platform == 'linux':
+ ffmpeg_options = { 'shared': False }
+ else:
+ ffmpeg_options = {}
+
+ if target.platform != 'linux' or target.distro != 'arch':
+ # Use distro-provided FFmpeg on Arch, otherwise our own
+ deps.append(('ffmpeg', '0b73d2f5e70a04a67aa902902c42e3025ef3bb77', ffmpeg_options))
+
+ return deps
def build(target, options):
cmd = './waf configure --disable-examples --disable-dumpimage --disable-benchmarks --prefix=%s' % target.directory