Missing mentions of pl_PL.
[dcpomatic.git] / cscript
diff --git a/cscript b/cscript
index 7c297d19dcfbf22796b6f51ba90d9990b954e4bb..6aba27e05700d2a34c37c0d0224d749b97876190 100644 (file)
--- a/cscript
+++ b/cscript
@@ -1,3 +1,4 @@
+# -*- mode: python -*-
 #
 #    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
 #
@@ -86,6 +87,23 @@ deb_depends['7'] = {'libc6': '2.13',
                     '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',
@@ -172,10 +190,11 @@ def make_spec(filename, version, target):
     print >>f,'%{_datadir}/applications/dcpomatic2.desktop'
     print >>f,'%{_datadir}/applications/dcpomatic2_batch.desktop'
     print >>f,'%{_datadir}/applications/dcpomatic2_server.desktop'
-    print >>f,'%{_datadir}/dcpomatic/taskbar_icon.png'
+    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
@@ -205,9 +224,9 @@ def make_spec(filename, version, target):
     print >>f,'/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :'
 
 def dependencies(target):
-    return (('ffmpeg-cdist', 'f69bb08'),
-            ('libdcp', '8e7f9e4'),
-            ('libsub', 'f66b11f'))
+    return (('ffmpeg-cdist', '0492ad2'),
+            ('libdcp', '1.0'),
+            ('libsub', '1.0'))
 
 def configure_options(target):
     opt = ''
@@ -250,7 +269,7 @@ def package_debian(target, cpu, version):
     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)
@@ -264,17 +283,17 @@ def package_debian(target, cpu, version):
     target.set('CDIST_CONFIGURE', '"' + configure_options(target) + '"')
     if target.debug:
         target.set('CDIST_DEBUG_PACKAGE', '--dbg-package=dcpomatic-dbg')
-    if target.version == '15.04':
+    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):
@@ -287,7 +306,7 @@ 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)
         )
 
@@ -309,7 +328,7 @@ def package(target, version):
     elif target.platform == 'linux':
         if target.bits == 32:
            cpu = 'i386'
-        else:  
+        else:
             cpu        = 'amd64'
 
        if target.distro == 'debian' or target.distro == 'ubuntu':