summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/libdcp')
-rw-r--r--media-libs/libdcp/Manifest2
-rw-r--r--media-libs/libdcp/files/libdcp-1.3.3-no-ldconfig.patch12
-rw-r--r--media-libs/libdcp/files/libdcp-1.3.4-respect-cxxflags.patch56
-rw-r--r--media-libs/libdcp/libdcp-1.3.4.ebuild56
-rw-r--r--media-libs/libdcp/libdcp-1.4.4.ebuild56
-rw-r--r--media-libs/libdcp/metadata.xml8
6 files changed, 190 insertions, 0 deletions
diff --git a/media-libs/libdcp/Manifest b/media-libs/libdcp/Manifest
new file mode 100644
index 000000000000..27717666f8cd
--- /dev/null
+++ b/media-libs/libdcp/Manifest
@@ -0,0 +1,2 @@
+DIST libdcp-1.3.4.tar.bz2 737458 SHA256 433b2e7f5306bfba5f51bd854aeaadf5c6c4f083dd234f063387d8a9ca80cf65 SHA512 bcf7c2218a55d3cc4cb1edf4c84592ce5952892d7f57a652cd3157aa5d34f041a4759aa7fd50451bfbe13985195424ba29a62c9c3a163367583e4c65ec5b19b1 WHIRLPOOL 2b15fd75c96d414db9d55f6c5bc1c67e6448fbe11f64d264a330f0a5a46bef7b6c028f5ac1f878a341b7b9f7e48f8fc11b8cd8ce4f4f57fee51c4dbe3c10c416
+DIST libdcp-1.4.4.tar.bz2 739413 SHA256 e1f6c11136e2992f9ee48587c4059e92beaa7e7c16a16086f4f9e7afe4c0174c SHA512 589634eb56bc23437752a9b32e849332cd8e0f04991c63f583ce06ab7343f02226bc1e2faead13edba2dab9bca86c89adaf83df7779c427f167e461c2d6dabbd WHIRLPOOL 51b5cc7d96837d4ab90c8e74f085c80ccd7c8cd3e894a25709a0ba77032af30434a9f1856fb75a88730ebb76a6618bf73c7a91d8ad6e25aabfd567a343fba4ec
diff --git a/media-libs/libdcp/files/libdcp-1.3.3-no-ldconfig.patch b/media-libs/libdcp/files/libdcp-1.3.3-no-ldconfig.patch
new file mode 100644
index 000000000000..f8dbb1ba30e2
--- /dev/null
+++ b/media-libs/libdcp/files/libdcp-1.3.3-no-ldconfig.patch
@@ -0,0 +1,12 @@
+--- libdcp-1.3.3/wscript
++++ libdcp-1.3.3/wscript
+@@ -206,8 +206,7 @@
+ sys.exit(-1)
+
+ def post(ctx):
+- if ctx.cmd == 'install':
+- ctx.exec_command('/sbin/ldconfig')
++ pass
+
+ def tags(bld):
+ os.system('etags src/*.cc src/*.h')
diff --git a/media-libs/libdcp/files/libdcp-1.3.4-respect-cxxflags.patch b/media-libs/libdcp/files/libdcp-1.3.4-respect-cxxflags.patch
new file mode 100644
index 000000000000..0082d92391ba
--- /dev/null
+++ b/media-libs/libdcp/files/libdcp-1.3.4-respect-cxxflags.patch
@@ -0,0 +1,56 @@
+--- libdcp-1.3.4/wscript
++++ libdcp-1.3.4/wscript
+@@ -133,13 +133,6 @@
+ else:
+ boost_lib_suffix = ''
+
+- if conf.options.enable_debug:
+- conf.env.append_value('CXXFLAGS', '-g')
+- else:
+- # Somewhat experimental use of -O2 rather than -O3 to see if
+- # Windows builds are any more reliable
+- conf.env.append_value('CXXFLAGS', '-O2')
+-
+ conf.check_cxx(fragment="""
+ #include <boost/version.hpp>\n
+ #if BOOST_VERSION < 104500\n
+--- libdcp-1.4.4/src/wscript
++++ libdcp-1.4.4/src/wscript
+@@ -196,7 +196,7 @@
+ obj.uselib = 'BOOST_FILESYSTEM BOOST_SIGNALS2 BOOST_DATETIME OPENSSL SIGC++ LIBXML++ OPENJPEG CXML XMLSEC1 ASDCPLIB_CTH'
+ obj.use = 'libkumu-libdcp%s libasdcp-libdcp%s' % (bld.env.API_VERSION, bld.env.API_VERSION)
+ obj.source = source
+- obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
++ obj.cppflags = ['-fprofile-arcs', '-ftest-coverage', '-fno-inline', '-fno-default-inline', '-fno-elide-constructors']
+
+ bld.install_files('${PREFIX}/include/libdcp%s/dcp' % bld.env.API_VERSION, headers)
+ if bld.env.STATIC:
+--- libdcp-1.4.4/test/wscript
++++ libdcp-1.4.4/test/wscript
+@@ -52,7 +52,7 @@
+ obj = bld(features='cxx cxxprogram')
+ obj.name = 'tests'
+ obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM BOOST_DATETIME OPENJPEG CXML XMLSEC1 SNDFILE OPENMP ASDCPLIB_CTH LIBXML++ OPENSSL'
+- obj.cppflags = ['-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
++ obj.cppflags = ['-fno-inline', '-fno-default-inline', '-fno-elide-constructors']
+ if bld.is_defined('HAVE_GCOV'):
+ obj.use = 'libdcp%s_gcov' % bld.env.API_VERSION
+ obj.lib = ['gcov']
+@@ -101,7 +101,7 @@
+ obj = bld(features='cxx cxxprogram')
+ obj.name = 'subs_in_out'
+ obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM OPENJPEG CXML OPENMP ASDCPLIB_CTH XMLSEC1 OPENSSL'
+- obj.cppflags = ['-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
++ obj.cppflags = ['-fno-inline', '-fno-default-inline', '-fno-elide-constructors']
+ if bld.is_defined('HAVE_GCOV'):
+ obj.use = 'libdcp%s_gcov' % bld.env.API_VERSION
+ obj.lib = ['gcov']
+@@ -116,7 +116,7 @@
+ obj = bld(features='cxx cxxprogram')
+ obj.name = 'rewrite_subs'
+ obj.uselib = 'BOOST_TEST BOOST_FILESYSTEM OPENJPEG CXML OPENMP ASDCPLIB_CTH XMLSEC1 OPENSSL'
+- obj.cppflags = ['-fno-inline', '-fno-default-inline', '-fno-elide-constructors', '-g', '-O0']
++ obj.cppflags = ['-fno-inline', '-fno-default-inline', '-fno-elide-constructors']
+ if bld.is_defined('HAVE_GCOV'):
+ obj.use = 'libdcp%s_gcov' % bld.env.API_VERSION
+ obj.lib = ['gcov']
diff --git a/media-libs/libdcp/libdcp-1.3.4.ebuild b/media-libs/libdcp/libdcp-1.3.4.ebuild
new file mode 100644
index 000000000000..69a96e275f60
--- /dev/null
+++ b/media-libs/libdcp/libdcp-1.3.4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 )
+PYTHON_REQ_USE="threads(+)"
+inherit python-any-r1 waf-utils
+
+DESCRIPTION="create and read Digital Cinema Packages using JPEG2000 and WAV files"
+HOMEPAGE="http://carlh.net/libdcp"
+SRC_URI="http://carlh.net/downloads/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="1.0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="dev-cpp/glibmm:2
+ dev-cpp/libxmlpp:2.6
+ >=dev-libs/boost-1.61.0
+ <dev-libs/libcxml-0.15.4
+ dev-libs/libsigc++:2
+ dev-libs/libxml2
+ dev-libs/openssl:0
+ dev-libs/xmlsec
+ media-libs/libasdcp-cth
+ media-libs/openjpeg:0
+ || ( media-gfx/graphicsmagick media-gfx/imagemagick )"
+DEPEND="${RDEPEND}
+ dev-util/waf
+ virtual/pkgconfig
+ test? ( app-text/xmldiff )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.3.3-no-ldconfig.patch
+ "${FILESDIR}"/${PN}-1.3.4-respect-cxxflags.patch )
+
+src_prepare() {
+ rm -v waf || die
+ export WAF_BINARY=${EROOT}usr/bin/waf
+
+ ewarn "Some tests failing due missing files/certs are disabled."
+ sed -e '/atmos_test.cc/d' \
+ -e '/certificates_test.cc/d' \
+ -e '/dcp_test.cc/d' \
+ -e '/decryption_test.cc/d' \
+ -e '/read_smpte_subtitle_test.cc/d' \
+ -e '/sound_frame_test.cc/d' \
+ -i test/wscript || die
+
+ default
+}
+
+src_test() {
+ ./build/test/tests || die
+}
diff --git a/media-libs/libdcp/libdcp-1.4.4.ebuild b/media-libs/libdcp/libdcp-1.4.4.ebuild
new file mode 100644
index 000000000000..f6219458f923
--- /dev/null
+++ b/media-libs/libdcp/libdcp-1.4.4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 python3_5 )
+PYTHON_REQ_USE="threads(+)"
+inherit python-any-r1 waf-utils
+
+DESCRIPTION="create and read Digital Cinema Packages using JPEG2000 and WAV files"
+HOMEPAGE="http://carlh.net/libdcp"
+SRC_URI="http://carlh.net/downloads/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="1.0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="dev-cpp/glibmm:2
+ dev-cpp/libxmlpp:2.6
+ >=dev-libs/boost-1.61.0
+ >=dev-libs/libcxml-0.15.4
+ dev-libs/libsigc++:2
+ dev-libs/libxml2
+ dev-libs/openssl:0
+ dev-libs/xmlsec
+ >=media-libs/libasdcp-cth-0.1.3
+ media-libs/openjpeg:2
+ || ( media-gfx/graphicsmagick media-gfx/imagemagick )"
+DEPEND="${RDEPEND}
+ dev-util/waf
+ virtual/pkgconfig
+ test? ( app-text/xmldiff )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.3.3-no-ldconfig.patch
+ "${FILESDIR}"/${PN}-1.3.4-respect-cxxflags.patch )
+
+src_prepare() {
+ rm -v waf || die
+ export WAF_BINARY=${EROOT}usr/bin/waf
+
+ ewarn "Some tests failing due missing files/certs are disabled."
+ sed -e '/atmos_test.cc/d' \
+ -e '/certificates_test.cc/d' \
+ -e '/dcp_test.cc/d' \
+ -e '/decryption_test.cc/d' \
+ -e '/read_smpte_subtitle_test.cc/d' \
+ -e '/sound_frame_test.cc/d' \
+ -i test/wscript || die
+
+ default
+}
+
+src_test() {
+ ./build/test/tests || die
+}
diff --git a/media-libs/libdcp/metadata.xml b/media-libs/libdcp/metadata.xml
new file mode 100644
index 000000000000..a535b8852829
--- /dev/null
+++ b/media-libs/libdcp/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+</pkgmetadata>