'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()
print >>f,''
def dependencies(target):
- return (('ffmpeg-cdist', '7e95caa'),
- ('libdcp', '7f029e7'))
+ return (('ffmpeg-cdist', '1093c6f'),
+ ('libdcp', '1.0'),
+ ('libsub', None))
def build(target, options):
cmd = './waf configure --prefix=%s' % target.directory
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')
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'):
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