summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-09 13:35:10 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-09 13:35:10 +0000
commit2385a5c4e83295921ec10e59bb2b2b66a492bb47 (patch)
tree8ab2f0d787fa89f8cff5c0f93de0c228f931ca96
parent6f39875e07907cb136485649b9fbe4da73d9aae7 (diff)
parent4b27d4bc0f0ac7fbe944f67d44ca4e71c2ba58e5 (diff)
Fix merge.
-rwxr-xr-xbuilds/deb17
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control15
-rw-r--r--debian/copyright27
-rw-r--r--debian/docs1
-rw-r--r--debian/files1
-rwxr-xr-xdebian/rules23
-rw-r--r--debian/source/format1
-rw-r--r--src/tools/wscript4
-rw-r--r--test/wscript2
-rw-r--r--wscript47
12 files changed, 122 insertions, 22 deletions
diff --git a/builds/deb b/builds/deb
new file mode 100755
index 000000000..5425f6da9
--- /dev/null
+++ b/builds/deb
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+./waf dist
+rm -rf build/deb
+mkdir build/deb
+cd build/deb
+mv ../../*.tar.bz2 .
+TARBALL=`ls -1 *.tar.bz2`
+DEB_TARBALL=`echo $TARBALL | sed -e "s/dvdomatic-/dvdomatic_/" | sed -e "s/.tar.bz2/.orig.tar.bz2/"`
+echo "Renaming $TARBALL to $DEB_TARBALL"
+mv $TARBALL $DEB_TARBALL
+tar xjf $DEB_TARBALL
+cd dvdomatic-*
+dpkg-source -b .
+dpkg-buildpackage
+cp ../*.deb ../../../
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 000000000..9908e7cb4
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+dvdomatic (0.59beta1-1) unstable; urgency=low
+
+ * Initial release.
+
+ -- Carl Hetherington <cth@carlh.net> Sat, 08 Dec 2012 12:41:20 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 000000000..45a4fb75d
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 000000000..126d42250
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,15 @@
+Source: dvdomatic
+Section: video
+Priority: extra
+Maintainer: Carl Hetherington <cth@carlh.net>
+Build-Depends: debhelper (>= 8.0.0), python (>= 2.7.3), g++ (>= 4:4.7.2), pkg-config (>= 0.26), libwxgtk2.8-dev (>= 2.8.12.1), libssh-dev (>= 0.5.2), libboost-filesystem1.49-dev (>= 1.49.0), libboost-thread1.49-dev (>= 1.49.0), libsndfile1-dev (>= 1.0.25), libmagick++-dev (>= 8:6.7.7.10)
+Standards-Version: 3.9.3
+Homepage: http://carlh.net/software/dvdomatic
+
+Package: dvdomatic
+Architecture: any
+Depends: libc6 (>= 2.15), libwxgtk2.8-0 (>= 2.8.12.1), libssh-4 (>= 0.5.2), libboost-filesystem1.49.0 (>= 1.49.0), libboost-thread1.49.0 (>= 1.49.0), libsndfile1 (>= 1.0.25), libmagick++5 (>= 8:6.7.7.10)
+Description: Generator of Digital Cinema Packages (DCPs)
+ DVD-o-matic generates Digital Cinema Packages (DCPs) from video and audio
+ files (such as those from DVDs or Blu-Rays) for presentation on DCI-compliant
+ digital projectors.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 000000000..2579947e4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: dvdomatic
+Source: <url://carlh.net/software/dvdomatic>
+
+Files: *
+Copyright: 2012 Carl Hetherington <cth@carlh.net>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
+# Please avoid to pick license terms that are more restrictive than the
+# packaged work, as it may make Debian's contributions unacceptable upstream.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 000000000..e845566c0
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/files b/debian/files
new file mode 100644
index 000000000..7639f05ac
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
+dvdomatic_0.59beta1-1_i386.deb video extra
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..3320087a5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,23 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
+
+override_dh_auto_configure:
+ ./waf --nocache configure --prefix=/usr --static
+
+override_dh_auto_build:
+ ./waf --nocache build
+
+override_dh_auto_install:
+ ./waf --nocache install --destdir=debian/dvdomatic
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 000000000..163aaf8d8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/src/tools/wscript b/src/tools/wscript
index c8601ad1f..58dfa9544 100644
--- a/src/tools/wscript
+++ b/src/tools/wscript
@@ -1,7 +1,7 @@
def build(bld):
for t in ['makedcp', 'fixlengths', 'servomatic_cli']:
obj = bld(features = 'cxx cxxprogram')
- obj.uselib = 'BOOST_THREAD DCP'
+ obj.uselib = 'BOOST_THREAD OPENJPEG DCP AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC'
obj.includes = ['..']
obj.use = ['libdvdomatic']
obj.source = '%s.cc' % t
@@ -10,7 +10,7 @@ def build(bld):
if not bld.env.DISABLE_GUI:
for t in ['dvdomatic', 'servomatic_gui']:
obj = bld(features = 'cxx cxxprogram')
- obj.uselib = 'DCP'
+ obj.uselib = 'DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC'
obj.includes = ['..']
obj.use = ['libdvdomatic', 'libdvdomatic-wx']
obj.source = '%s.cc' % t
diff --git a/test/wscript b/test/wscript
index 3b809f939..15d5410b3 100644
--- a/test/wscript
+++ b/test/wscript
@@ -8,7 +8,7 @@ def configure(conf):
def build(bld):
obj = bld(features = 'cxx cxxprogram')
obj.name = 'unit-tests'
- obj.uselib = 'BOOST_TEST DCP'
+ obj.uselib = 'BOOST_TEST DCP OPENJPEG AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE POSTPROC'
obj.use = 'libdvdomatic'
obj.source = 'test.cc'
obj.target = 'unit-tests'
diff --git a/wscript b/wscript
index 4721078ea..6df36d7ea 100644
--- a/wscript
+++ b/wscript
@@ -50,28 +50,37 @@ def configure(conf):
else:
conf.env.append_value('CXXFLAGS', '-O2')
- conf.check_cfg(package = 'libavformat', args = '--cflags --libs', uselib_store = 'AVFORMAT', mandatory = True)
- conf.check_cfg(package = 'libavfilter', args = '--cflags --libs', uselib_store = 'AVFILTER', mandatory = True)
- conf.check_cfg(package = 'libavcodec', args = '--cflags --libs', uselib_store = 'AVCODEC', mandatory = True)
- conf.check_cfg(package = 'libavutil', args = '--cflags --libs', uselib_store = 'AVUTIL', mandatory = True)
- conf.check_cfg(package = 'libswscale', args = '--cflags --libs', uselib_store = 'SWSCALE', mandatory = True)
- conf.check_cfg(package = 'libswresample', args = '--cflags --libs', uselib_store = 'SWRESAMPLE', mandatory = False)
- conf.check_cfg(package = 'libpostproc', args = '--cflags --libs', uselib_store = 'POSTPROC', mandatory = True)
- conf.check_cfg(package = 'sndfile', args = '--cflags --libs', uselib_store = 'SNDFILE', mandatory = True)
- libdcp_args = '--cflags --libs'
+ # Arguments to pkg-config for things that we might want to link statically
+ pkgconfig_args = '--cflags --libs'
if conf.options.static:
- libdcp_args += ' --static'
- conf.check_cfg(package = 'libdcp', atleast_version = '0.34', args = libdcp_args, uselib_store = 'DCP', mandatory = True)
+ pkgconfig_args += ' --static'
+
+ conf.check_cfg(package = 'libdcp', atleast_version = '0.34', args = pkgconfig_args, uselib_store = 'DCP', mandatory = True)
+ conf.check_cfg(package = 'libavformat', args = pkgconfig_args, uselib_store = 'AVFORMAT', mandatory = True)
+ conf.check_cfg(package = 'libavfilter', args = pkgconfig_args, uselib_store = 'AVFILTER', mandatory = True)
+ conf.check_cfg(package = 'libavcodec', args = pkgconfig_args, uselib_store = 'AVCODEC', mandatory = True)
+ conf.check_cfg(package = 'libavutil', args = pkgconfig_args, uselib_store = 'AVUTIL', mandatory = True)
+ conf.check_cfg(package = 'libswscale', args = pkgconfig_args, uselib_store = 'SWSCALE', mandatory = True)
+ conf.check_cfg(package = 'libswresample', args = pkgconfig_args, uselib_store = 'SWRESAMPLE', mandatory = False)
+ conf.check_cfg(package = 'libpostproc', args = pkgconfig_args, uselib_store = 'POSTPROC', mandatory = True)
+ conf.check_cfg(package = 'sndfile', args = '--cflags --libs', uselib_store = 'SNDFILE', mandatory = True)
+ conf.check_cfg(package = 'libdcp', atleast_version = '0.33', args = pkgconfig_args, uselib_store = 'DCP', mandatory = True)
conf.check_cfg(package = 'glib-2.0', args = '--cflags --libs', uselib_store = 'GLIB', mandatory = True)
conf.check_cfg(package = '', path = 'Magick++-config', args = '--cppflags --cxxflags --libs', uselib_store = 'MAGICK', mandatory = True)
- conf.check_cc(fragment = """
- #include <stdio.h>\n
- #include <openjpeg.h>\n
- int main () {\n
- void* p = (void *) opj_image_create;\n
- return 0;\n
- }
- """, msg = 'Checking for library openjpeg', lib = 'openjpeg', uselib_store = 'OPENJPEG')
+
+ openjpeg_fragment = """
+ #include <stdio.h>\n
+ #include <openjpeg.h>\n
+ int main () {\n
+ void* p = (void *) opj_image_create;\n
+ return 0;\n
+ }
+ """
+
+ if conf.options.static:
+ conf.check_cc(fragment = openjpeg_fragment, msg = 'Checking for library openjpeg', stlib = 'openjpeg', uselib_store = 'OPENJPEG')
+ else:
+ conf.check_cc(fragment = openjpeg_fragment, msg = 'Checking for library openjpeg', lib = 'openjpeg', uselib_store = 'OPENJPEG')
conf.check_cc(fragment = """
#include <libssh/libssh.h>\n