+# -*- mode: python -*-
#
# Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
#
'libcurl3': '7.26.0',
'libzip2': '0.10.1'}
+deb_depends['8'] = {'libc6': '2.19-18',
+ 'libssh-4': '0.6.3-4',
+ 'libboost-filesystem1.55.0': '1.55.0',
+ 'libboost-thread1.55.0': '1.55.0',
+ 'libboost-date-time1.55.0': '1.55.0',
+ 'libsndfile1': '1.0.25-9.1',
+ 'libmagick++-6.q16-5': '8:6.8.9.9-5',
+ 'libxml++2.6-2': '2.36.0',
+ 'libgtk2.0-0': '2.24.25',
+ 'libxmlsec1': '1.2.20',
+ 'libxmlsec1-openssl': '1.2.20',
+ 'libcurl3': '7.38.0',
+ 'libzip2': '0.11.2',
+ 'libwxgtk3.0-0': '3.0.2',
+ 'libxcb-xfixes0': '1.10',
+ 'libxcb-shape0': '1.10'}
+
deb_depends['unstable'] = {'libc6': '2.13',
'libssh-4': '0.5.4',
'libboost-filesystem1.55.0': '1.55.0',
print >>f,' This package contains the debugging symbols for dcpomatic.'
print >>f,''
-def dependencies(target):
- return (('ffmpeg-cdist', 'f69bb08'),
- ('libdcp', '8e7f9e4'),
- ('libsub', 'f66b11f'))
-
-def configure_options(target):
- opt = ''
- if target.debug:
- opt += ' --enable-debug'
- if target.platform == 'windows':
- opt += ' --target-windows'
- elif target.platform == 'linux':
- opt += ' --static-dcpomatic --static-openjpeg --static-wxwidgets --static-ffmpeg --static-dcp --static-sub --static-cxml'
- if target.distro == 'centos':
- opt += ' --static-xmlsec --static-ssh --disable-tests'
- if target.version == '6.5':
- opt += ' --static-boost --static-xmlpp'
- elif target.version == '7':
- opt += ' --workaround-gssapi'
-
- return opt
-
def make_spec(filename, version, target):
"""Make a .spec file for a RPM build"""
f = open(filename, 'w')
print >>f,'Summary:A program that generates Digital Cinema Packages (DCPs) from video and audio files'
- print >>f,'Name:dcpomatic'
+ print >>f,'Name:dcpomatic2'
print >>f,'Version:%s' % version
print >>f,'Release:1%{?dist}'
print >>f,'License:GPL'
print >>f,'%{_datadir}/applications/dcpomatic2_batch.desktop'
print >>f,'%{_datadir}/applications/dcpomatic2_server.desktop'
print >>f,'%{_datadir}/dcpomatic2/taskbar_icon.png'
+ print >>f,'%{_datadir}/dcpomatic2/LiberationSans-Regular.ttf'
for r in ['128x128', '22x22', '32x32', '48x48', '64x64']:
print >>f,'%%{_datadir}/icons/hicolor/%s/apps/dcpomatic2.png' % r
- for l in ['de_DE', 'es_ES', 'fr_FR', 'it_IT', 'sv_SE', 'nl_NL', 'ru_RU']:
+ for l in ['de_DE', 'es_ES', 'fr_FR', 'it_IT', 'sv_SE', 'nl_NL', 'ru_RU', 'pl_PL']:
print >>f,'%%{_datadir}/locale/%s/LC_MESSAGES/dcpomatic2.mo' % l
print >>f,'%%{_datadir}/locale/%s/LC_MESSAGES/libdcpomatic2-wx.mo' % l
print >>f,'%%{_datadir}/locale/%s/LC_MESSAGES/libdcpomatic2.mo' % l
print >>f,'%posttrans'
print >>f,'/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :'
+def dependencies(target):
+ return (('ffmpeg-cdist', '0492ad2'),
+ ('libdcp', '1.0'),
+ ('libsub', '1.0'))
+
+def configure_options(target):
+ opt = ''
+ if target.debug:
+ opt += ' --enable-debug'
+ if target.platform == 'windows':
+ opt += ' --target-windows'
+ elif target.platform == 'linux':
+ opt += ' --static-dcpomatic --static-openjpeg --static-wxwidgets --static-ffmpeg --static-dcp --static-sub --static-cxml'
+ if target.distro == 'centos':
+ opt += ' --static-xmlsec --static-ssh --disable-tests'
+ if target.version == '6.5':
+ opt += ' --static-boost --static-xmlpp'
+ elif target.version == '7':
+ opt += ' --workaround-gssapi'
+
+ return opt
+
def build(target, options):
target.command('./waf configure --prefix=%s %s' % (target.directory, configure_options(target)))
target.command('./waf')
f = open('debian/files', 'w')
print >>f,'dcpomatic_%s-1_%s.deb video extra' % (version, cpu)
shutil.rmtree('build/deb', ignore_errors=True)
-
+
os.makedirs('build/deb')
os.chdir('build/deb')
shutil.move('../../dcpomatic-%s.tar.bz2' % version, 'dcpomatic_%s.orig.tar.bz2' % version)
target.set('CDIST_LINKFLAGS', target.get('LINKFLAGS'))
target.set('CDIST_CXXFLAGS', target.get('CXXFLAGS'))
target.set('CDIST_PKG_CONFIG_PATH', target.get('PKG_CONFIG_PATH'))
- if target.version == 'unstable':
- target.set('CDIST_EXTRA_CONFIGURE', '--debian-unstable')
+
+ target.set('CDIST_CONFIGURE', '"' + configure_options(target) + '"')
+ if target.debug:
+ target.set('CDIST_DEBUG_PACKAGE', '--dbg-package=dcpomatic-dbg')
+ if target.version == '15.04' or target.version == '8':
+ target.set('CDIST_LOCALE_PREFIX', '/usr/share/locale')
+ else:
+ target.set('CDIST_LOCALE_PREFIX', '/usr/local/share/locale')
+
target.command('dpkg-buildpackage -uc -us')
-
+
debs = []
for p in glob.glob('../*.deb'):
debs.append(os.path.abspath(p))
-
+
return debs
def package_centos(target, cpu, version):
target.command('./waf dist')
shutil.copyfile(
- "%s/src/dcpomatic/dcpomatic-%s.tar.bz2" % (target.directory, version),
+ "%s/src/dcpomatic2/dcpomatic-%s.tar.bz2" % (target.directory, version),
"%s/SOURCES/dcpomatic-%s.tar.bz2" % (topdir, version)
)
+ make_spec('build/platform/linux/dcpomatic2.spec', version, target)
target.command('rpmbuild --define \'_topdir %s\' -bb build/platform/linux/dcpomatic2.spec' % topdir)
rpms = []
elif target.platform == 'linux':
if target.bits == 32:
cpu = 'i386'
- else:
+ else:
cpu = 'amd64'
if target.distro == 'debian' or target.distro == 'ubuntu':