X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=cscript;h=2fcfe454d96ea2367ca0c124cf29de3bbf81df1a;hb=5af65f61bf6eba06c24025d63b43aec896a00c9c;hp=180eca9417e615c43acf1ba6e3647f99ade0f6f9;hpb=d4fe6a59e2f253c19d661fa8136bda38e855f55c;p=dcpomatic.git diff --git a/cscript b/cscript index 180eca941..2fcfe454d 100644 --- a/cscript +++ b/cscript @@ -8,7 +8,6 @@ deb_build_depends = {'debhelper': '8.0.0', 'pkg-config': '0.26', 'libssh-dev': '0.5.2', 'libsndfile1-dev': '1.0.25', - 'libmagick++-dev': '8:6.6.9.7', 'libgtk2.0-dev': '2.24.10'} deb_depends = dict() @@ -156,11 +155,14 @@ def make_control(debian_version, bits, filename, debug): print >>f,'' def dependencies(target): - return (('ffmpeg-cdist', '2dffa11'), - ('libdcp', '1.0')) + return (('ffmpeg-cdist', 'f69bb08'), + ('libdcp', 'a8d0450'), + ('libsub', 'f66b11f')) def build(target, options): cmd = './waf configure --prefix=%s' % target.directory + if target.debug: + cmd += ' --enable-debug' if target.platform == 'windows': cmd += ' --target-windows' elif target.platform == 'linux': @@ -172,7 +174,7 @@ def build(target, options): if target.version == '6.5': cmd += ' --target-centos-6 --disable-tests' elif target.version == '7': - cmd += ' --target-centos-7' + cmd += ' --target-centos-7 --disable-tests' target.command(cmd) target.command('./waf') @@ -185,6 +187,7 @@ def package_windows(target): target.command('sed -i "s~%%resources%%~%s/platform/windows~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), target.bits)) target.command('sed -i "s~%%static_deps%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.windows_prefix, target.bits)) target.command('sed -i "s~%%cdist_deps%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.directory, target.bits)) + target.command('sed -i "s~%%mingw%%~%s~g" build/platform/windows/installer2.%s.nsi' % (target.mingw_path, target.bits)) target.command('sed -i "s~%%binaries%%~%s/build~g" build/platform/windows/installer2.%s.nsi' % (os.getcwd(), target.bits)) target.command('sed -i "s~%%bits%%~32~g" build/platform/windows/installer2.%s.nsi' % target.bits) target.command('makensis build/platform/windows/installer2.%s.nsi' % target.bits) @@ -208,7 +211,7 @@ def package_debian(target, cpu, version): target.set('CDIST_PKG_CONFIG_PATH', target.get('PKG_CONFIG_PATH')) if target.version == 'unstable': target.set('CDIST_EXTRA_CONFIGURE', '--debian-unstable') - target.command('dpkg-buildpackage') + target.command('dpkg-buildpackage -uc -us') debs = [] for p in glob.glob('../*.deb'):