# -*- mode: python -*-
#
-# Copyright (C) 2012-2017 Carl Hetherington <cth@carlh.net>
+# Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
#
# This file is part of DCP-o-matic.
#
deb_build_depends_base = ['debhelper', 'python', 'g++', 'pkg-config', 'libsndfile1-dev', 'libgtk2.0-dev', 'libx264-dev']
-deb_build_depends['12.04'] = copy.deepcopy(deb_build_depends_base)
-deb_build_depends['12.04'].extend(['libssh-dev'])
deb_build_depends['14.04'] = copy.deepcopy(deb_build_depends_base)
deb_build_depends['14.04'].extend(['libssh-dev'])
deb_build_depends['16.04'] = copy.deepcopy(deb_build_depends_base)
deb_build_depends['16.04'].extend(['libssh-dev'])
-deb_build_depends['16.10'] = copy.deepcopy(deb_build_depends_base)
-deb_build_depends['16.10'].extend(['libssh-dev'])
-deb_build_depends['17.04'] = copy.deepcopy(deb_build_depends_base)
-deb_build_depends['17.04'].extend(['libssh-dev'])
+deb_build_depends['17.10'] = copy.deepcopy(deb_build_depends_base)
+deb_build_depends['17.10'].extend(['libssh-dev'])
+deb_build_depends['18.04'] = copy.deepcopy(deb_build_depends_base)
+deb_build_depends['18.04'].extend(['libssh-dev'])
deb_build_depends['7'] = copy.deepcopy(deb_build_depends_base)
deb_build_depends['7'].extend(['libssh-dev'])
deb_build_depends['8'] = copy.deepcopy(deb_build_depends_base)
deb_depends = dict()
-deb_depends_base = ['libc6', 'libsndfile1', 'libsamplerate0', 'libxmlsec1', 'libxmlsec1-openssl', 'libcurl3', 'libgtk2.0-0']
+deb_depends_base = ['libc6', 'libsndfile1', 'libsamplerate0', 'libxmlsec1', 'libxmlsec1-openssl', 'libgtk2.0-0']
deb_depends['14.04'] = copy.deepcopy(deb_depends_base)
deb_depends['14.04'].extend(['libboost-filesystem1.54.0',
'libicu52',
'libnettle4',
'libssh-4',
- 'libx264-142'])
+ 'libx264-142',
+ 'libcurl3'])
deb_depends['16.04'] = copy.deepcopy(deb_depends_base)
deb_depends['16.04'].extend(['libboost-filesystem1.58.0',
'libicu55',
'libnettle6',
'libssh-4',
- 'libx264-148'])
+ 'libx264-148',
+ 'libcurl3'])
-deb_depends['16.10'] = copy.deepcopy(deb_depends_base)
-deb_depends['16.10'].extend(['libboost-filesystem1.61.0',
- 'libboost-thread1.61.0',
- 'libboost-regex1.61.0',
- 'libmagick++-6.q16-5v5',
+deb_depends['17.10'] = copy.deepcopy(deb_depends_base)
+deb_depends['17.10'].extend(['libboost-filesystem1.62.0',
+ 'libboost-thread1.62.0',
+ 'libboost-regex1.62.0',
+ 'libmagick++-6.q16-7',
'libxml++2.6-2v5',
- 'libboost-date-time1.61.0',
+ 'libboost-date-time1.62.0',
'libzip4',
'libwxgtk3.0-0v5',
'libicu57',
'libnettle6',
'libssh-4',
- 'libx264-148'])
-
-deb_depends['17.04'] = copy.deepcopy(deb_depends_base)
-deb_depends['17.04'].extend(['libboost-filesystem1.62.0',
- 'libboost-thread1.62.0',
- 'libboost-regex1.62.0',
+ 'libx264-148',
+ 'libcurl3'])
+
+deb_depends['18.04'] = copy.deepcopy(deb_depends_base)
+deb_depends['18.04'].extend(['libboost-filesystem1.65.1',
+ 'libboost-thread1.65.1',
+ 'libboost-regex1.65.1',
+ 'libboost-date-time1.65.1',
'libmagick++-6.q16-7',
+ 'libcairomm-1.0-1v5',
+ 'libpangomm-1.4-1v5',
'libxml++2.6-2v5',
- 'libboost-date-time1.62.0',
'libzip4',
'libwxgtk3.0-0v5',
- 'libicu57',
+ 'libicu60',
'libnettle6',
'libssh-4',
- 'libx264-148'])
+ 'libx264-152',
+ 'libcurl4'])
deb_depends['7'] = copy.deepcopy(deb_depends_base)
deb_depends['7'].extend(['libboost-filesystem1.49.0',
- 'libboost-thread1.49.0',
- 'libboost-regex1.49.0',
- 'libmagick++5',
- 'libxml++2.6-2',
- 'libboost-date-time1.49.0',
- 'libzip2',
- 'libcairomm-1.0-1',
- 'libpangomm-1.4-1',
- 'libicu48',
- 'libnettle4',
- 'libnotify4',
- 'libx264-123'])
+ 'libboost-thread1.49.0',
+ 'libboost-regex1.49.0',
+ 'libmagick++5',
+ 'libxml++2.6-2',
+ 'libboost-date-time1.49.0',
+ 'libzip2',
+ 'libcairomm-1.0-1',
+ 'libpangomm-1.4-1',
+ 'libicu48',
+ 'libnettle4',
+ 'libnotify4',
+ 'libx264-123',
+ 'libcurl3'])
deb_depends['8'] = copy.deepcopy(deb_depends_base)
deb_depends['8'].extend(['libboost-filesystem1.55.0',
'libicu52',
'libnettle4',
'libssh-4',
- 'libx264-142'])
+ 'libx264-142',
+ 'libcurl3'])
deb_depends['9'] = copy.deepcopy(deb_depends_base)
deb_depends['9'].extend(['libboost-filesystem1.62.0',
'libxml++2.6-2v5',
'libgtk2.0-0',
'libzip4',
+ 'libcairomm-1.0-1v5',
+ 'libpangomm-1.4-1v5',
+ 'libwxgtk3.0-0v5',
+ 'libxcb-xfixes0',
+ 'libxcb-shape0',
+ 'libasound2',
'libicu57',
+ 'libssh-4',
+ 'libssh-gcrypt-4',
'libnettle6',
- 'libx264-148'])
+ 'libx264-148',
+ 'libpulse0',
+ 'libcurl3'])
deb_depends['unstable'] = copy.deepcopy(deb_depends_base)
deb_depends['unstable'].extend(['libboost-filesystem1.62.0',
'libzip4',
'libicu57',
'libnettle6',
- 'libx264-148'])
+ 'libx264-148',
+ 'libcurl3'])
def packages(name, packages, f):
s = '%s: ' % name
packages('Depends', deb_depends[debian_version], f)
print('Description: Generator of Digital Cinema Packages (DCPs)', file=f)
- print(' DCP-o-matic generates Digital Cinema Packages (DCPs) from video and audio', file=f)
- print(' files (such as those from DVDs or Blu-Rays) for presentation on DCI-compliant', file=f)
- print(' digital projectors.', file=f)
+ print(' DCP-o-matic generates Digital Cinema Packages (DCPs) from videos, images,', file=f)
+ print(' sound and subtitle files. You can use it to make content for playback on DCI-compliant', file=f)
+ print(' cinema projectors.', file=f)
if debug:
print('', file=f)
print(' This package contains the debugging symbols for dcpomatic.', file=f)
print('', file=f)
-def make_spec(filename, version, target):
+def make_spec(filename, version, target, requires=None):
"""Make a .spec file for a RPM build"""
f = open(filename, 'w')
print('Summary:A program that generates Digital Cinema Packages (DCPs) from video and audio files', file=f)
print('License:GPL', file=f)
print('Group:Applications/Multimedia', file=f)
print('URL:http://dcpomatic.com/', file=f)
- print('Requires: ImageMagick-c++, glibmm24, libzip', file=f)
+ if requires is not None:
+ print('Requires:%s' % requires, file=f)
print('', file=f)
print('%description', file=f)
print('DCP-o-matic generates Digital Cinema Packages (DCPs) from video and audio ', file=f)
print('%{_bindir}/dcpomatic2_server', file=f)
print('%{_bindir}/dcpomatic2_server_cli', file=f)
print('%{_bindir}/dcpomatic2_kdm_cli', file=f)
+ print('%{_bindir}/dcpomatic2_player', file=f)
print('%{_datadir}/applications/dcpomatic2.desktop', file=f)
print('%{_datadir}/applications/dcpomatic2_batch.desktop', file=f)
print('%{_datadir}/applications/dcpomatic2_server.desktop', file=f)
print('%{_datadir}/applications/dcpomatic2_kdm.desktop', file=f)
+ print('%{_datadir}/applications/dcpomatic2_player.desktop', file=f)
print('%{_datadir}/dcpomatic2/dcpomatic2_server_small.png', file=f)
print('%{_datadir}/dcpomatic2/LiberationSans-Regular.ttf', file=f)
print('%{_datadir}/dcpomatic2/LiberationSans-Italic.ttf', file=f)
print('%%{_datadir}/icons/hicolor/%s/apps/dcpomatic2_batch.png' % r, file=f)
print('%%{_datadir}/icons/hicolor/%s/apps/dcpomatic2_kdm.png' % r, file=f)
print('%%{_datadir}/icons/hicolor/%s/apps/dcpomatic2_server.png' % r, file=f)
- for l in ['de_DE', 'es_ES', 'fr_FR', 'it_IT', 'sv_SE', 'nl_NL', 'ru_RU', 'pl_PL', 'da_DK', 'pt_PT', 'pt_BR', 'sk_SK', 'cs_CZ', 'uk_UA', 'zh_CN']:
+ print('%%{_datadir}/icons/hicolor/%s/apps/dcpomatic2_player.png' % r, file=f)
+ for l in ['de_DE', 'es_ES', 'fr_FR', 'it_IT', 'sv_SE', 'nl_NL', 'ru_RU', 'pl_PL', 'da_DK', 'pt_PT', 'pt_BR', 'sk_SK', 'cs_CZ', 'uk_UA', 'zh_CN', 'ar_LB', 'el_GR']:
print('%%{_datadir}/locale/%s/LC_MESSAGES/dcpomatic2.mo' % l, file=f)
print('%%{_datadir}/locale/%s/LC_MESSAGES/libdcpomatic2-wx.mo' % l, file=f)
print('%%{_datadir}/locale/%s/LC_MESSAGES/libdcpomatic2.mo' % l, file=f)
print('cd dcpomatic-%s' % version, file=f)
print('export PKG_CONFIG_PATH=%s/lib/pkgconfig:%s/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig' % (target.directory, target.directory), file=f)
- if target.distro == 'centos' and target.version == '5':
- prefix = 'BUILDROOT/usr'
- else:
- prefix = '%{buildroot}/usr'
-
- print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%s --install-prefix=/usr %s' %
- (target.directory, target.directory, prefix, configure_options(target)), file=f)
+ print('CXXFLAGS="-I%s/include" LDFLAGS="-L%s/lib" ./waf configure --prefix=%%{buildroot}/usr --install-prefix=/usr %s' %
+ (target.directory, target.directory, configure_options(target)), file=f)
print('./waf', file=f)
print('%install', file=f)
print('cd dcpomatic-%s' % version, file=f)
ffmpeg_options = {}
return (('ffmpeg-cdist', '5fce90f', ffmpeg_options),
- ('libdcp', '047d8ff'),
- ('libsub', '678962c'),
- ('rtaudio-cdist', None))
+ ('libdcp', 'v1.5.5'),
+ ('libsub', 'v1.3.5'),
+ ('rtaudio-cdist', '739969e'))
def configure_options(target):
opt = ''
opt += ' --static-boost --static-xmlpp'
elif target.version == '7':
opt += ' --workaround-gssapi'
+ # Centos 7 ships with glibmm 2.50.0 which requires C++11
+ # but its compiler (gcc 4.8.5) defaults to C++97. Go figure.
+ # I worry that this will cause ABI problems but I don't have
+ # a better solution.
+ opt += ' --force-cpp11'
# Build Windows debug versions with static linking as I think gdb works better then
if target.debug and target.platform == 'windows':
"%s/SOURCES/dcpomatic-%s.tar.bz2" % (topdir, version)
)
- make_spec('build/platform/linux/dcpomatic2.spec', version, target)
+ requires = None
+ if target.distro == 'mageia':
+ requires = "lib64xmlsec1-devel"
+
+ make_spec('build/platform/linux/dcpomatic2.spec', version, target, requires)
cmd = 'rpmbuild --define "_topdir %s" -bb build/platform/linux/dcpomatic2.spec' % topdir
- if target.distro == 'centos' and target.version == '5':
- cmd += ' --buildroot %s/BUILD/dcpomatic-%s/BUILDROOT' % (topdir, version)
target.command(cmd)
rpms = []
if cpu == "amd64":
cpu = "x86_64"
else:
- if target.distro == 'centos' and target.version == '5':
- cpu = "i386"
- else:
- cpu = "i686"
+ cpu = "i686"
print('Looking in %s/RPMS/%s/*.rpm' % (topdir, cpu))
for p in glob.glob('%s/RPMS/%s/*.rpm' % (topdir, cpu)):
if target.distro == 'debian' or target.distro == 'ubuntu':
return package_debian(target, cpu, version)
- elif target.distro == 'centos' or target.distro == 'fedora':
+ elif target.distro == 'centos' or target.distro == 'fedora' or target.distro == 'mageia':
return package_rpm(target, cpu, version)
elif target.platform == 'osx':
target.command('bash platform/osx/make_dmg.sh %s' % target.directory)