X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=cscript;h=2fcfe454d96ea2367ca0c124cf29de3bbf81df1a;hb=f213fd833a840fc97e3875979ae7dc7cbbc883b1;hp=4d4737865ca39a757a2ab3e61368d6055611c833;hpb=a46119090829f463ff11797348111d9f62cb71e4;p=dcpomatic.git diff --git a/cscript b/cscript index 4d4737865..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', '7e95caa'), - ('libdcp', '7f029e7')) + 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'): @@ -217,25 +220,26 @@ def package_debian(target, cpu, version): return debs def package_centos(target, cpu, version): - os.makedirs('build/rpmbuild/BUILD') - os.makedirs('build/rpmbuild/RPMS') - os.makedirs('build/rpmbuild/SOURCES') - os.makedirs('build/rpmbuild/SPECS') - os.makedirs('build/rpmbuild/SRPMS') + topdir = os.path.realpath('build/rpmbuild') + os.makedirs('%s/BUILD' % topdir) + os.makedirs('%s/RPMS' % topdir) + os.makedirs('%s/SOURCES' % topdir) + os.makedirs('%s/SPECS' % topdir) + os.makedirs('%s/SRPMS' % topdir) target.command('./waf dist') shutil.copyfile( "%s/src/dcpomatic/dcpomatic-%s.tar.bz2" % (target.directory, version), - "build/rpmbuild/SOURCES/dcpomatic-%s.tar.bz2" % version + "%s/SOURCES/dcpomatic-%s.tar.bz2" % (topdir, version) ) - target.command('rpmbuild --define \'_topdir build/rpmbuild\' -bb build/platform/linux/dcpomatic.spec') + target.command('rpmbuild --define \'_topdir %s\' -bb build/platform/linux/dcpomatic2.spec' % topdir) rpms = [] if cpu == "amd64": cpu = "x86_64" - for p in glob.glob('build/rpmbuild/RPMS/%s/*.rpm' % cpu): + for p in glob.glob('%s/RPMS/%s/*.rpm' % (topdir, cpu)): rpms.append(os.path.abspath(p)) return rpms