Try to allow building with openjpeg1 by passing in a cdist option.
authorCarl Hetherington <cth@carlh.net>
Sun, 2 Jul 2017 21:39:21 +0000 (22:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 2 Jul 2017 21:39:21 +0000 (22:39 +0100)
cscript

diff --git a/cscript b/cscript
index 230b921162bf9959a319bccda3f61bb718b02f78..a16bc8311501f5d310ae7f827898e2ae8c98043a 100644 (file)
--- a/cscript
+++ b/cscript
@@ -41,6 +41,8 @@ def dependencies(target):
 
 def build(target, options):
     cmd = './waf configure --disable-examples --prefix=%s' % target.directory
+    if 'jpeg' in options and options['jpeg'] == 'oj1':
+        cmd += ' --jpeg=oj1'
     if target.platform == 'linux':
         cmd += ' --static'
         if target.distro == 'centos':