summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2011-12-06 22:34:58 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2011-12-06 22:34:58 +0000
commite7a8eed626a07808308c33285f80454544d3d470 (patch)
tree7bf1cbeb91ec51f60f8d00ea1aa3bdbaf01d6694 /media-video
parentsend `chown root` output to /dev/null so that we dont dump a lot of crap when... (diff)
downloadgentoo-2-e7a8eed626a07808308c33285f80454544d3d470.tar.gz
gentoo-2-e7a8eed626a07808308c33285f80454544d3d470.tar.bz2
gentoo-2-e7a8eed626a07808308c33285f80454544d3d470.zip
Add test and new libav support requested by Nikoli, bug 393331; add pkgconfig dependency, bug 393205
(Portage version: 2.1.10.39/cvs/Linux x86_64)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/bombono-dvd/ChangeLog9
-rw-r--r--media-video/bombono-dvd/bombono-dvd-1.2.0-r2.ebuild73
-rw-r--r--media-video/bombono-dvd/files/bombono-dvd-1.2.0-libav.patch83
3 files changed, 164 insertions, 1 deletions
diff --git a/media-video/bombono-dvd/ChangeLog b/media-video/bombono-dvd/ChangeLog
index 8a50a46a2a8b..8bcb87c7023d 100644
--- a/media-video/bombono-dvd/ChangeLog
+++ b/media-video/bombono-dvd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/bombono-dvd
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/bombono-dvd/ChangeLog,v 1.20 2011/12/06 20:40:26 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/bombono-dvd/ChangeLog,v 1.21 2011/12/06 22:34:58 dilfridge Exp $
+
+*bombono-dvd-1.2.0-r2 (06 Dec 2011)
+
+ 06 Dec 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+ +bombono-dvd-1.2.0-r2.ebuild, +files/bombono-dvd-1.2.0-libav.patch:
+ Add test and new libav support requested by Nikoli, bug 393331; add pkgconfig
+ dependency, bug 393205
*bombono-dvd-1.2.0-r1 (06 Dec 2011)
diff --git a/media-video/bombono-dvd/bombono-dvd-1.2.0-r2.ebuild b/media-video/bombono-dvd/bombono-dvd-1.2.0-r2.ebuild
new file mode 100644
index 000000000000..0596f20b27b6
--- /dev/null
+++ b/media-video/bombono-dvd/bombono-dvd-1.2.0-r2.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/bombono-dvd/bombono-dvd-1.2.0-r2.ebuild,v 1.1 2011/12/06 22:34:58 dilfridge Exp $
+
+EAPI=4
+SCONS_MIN_VERSION="0.96.1"
+
+inherit base scons-utils toolchain-funcs flag-o-matic virtualx
+
+DESCRIPTION="GUI DVD authoring program"
+HOMEPAGE="http://www.bombono.org/"
+SRC_URI="mirror://sourceforge/bombono/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="gnome"
+
+COMMONDEPEND="
+ app-i18n/enca
+ app-cdr/dvd+rw-tools
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libxmlpp:2.6
+ >=dev-libs/boost-1.47
+ media-libs/libdvdread
+ media-sound/twolame
+ media-video/dvdauthor
+ virtual/cdrtools
+ virtual/ffmpeg
+ >=media-video/mjpegtools-1.8.0
+ x11-libs/gtk+:2
+"
+RDEPEND="${COMMONDEPEND}
+ gnome? ( gnome-base/gvfs )
+"
+DEPEND="${COMMONDEPEND}
+ dev-util/pkgconfig
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.0.1-cflags.patch"
+ "${FILESDIR}/${PN}-1.2.0-cdrtools.patch"
+ "${FILESDIR}/${PN}-1.2.0-libav.patch"
+)
+
+src_configure() {
+ append-flags -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_FILESYSTEM_VERSION=2
+ myesconsargs=(
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ CFLAGS="${CFLAGS}"
+ CXXFLAGS="${CXXFLAGS}"
+ DESTDIR="${D}"
+ LDFLAGS="${LDFLAGS}"
+ USE_EXT_BOOST=1
+ PREFIX="${EPREFIX}/usr"
+ )
+}
+
+src_compile() {
+ nonfatal escons \
+ || die 'Please add "${S}/config.opts" when filing bugs reports!'
+}
+
+src_test() {
+ VIRTUALX_COMMAND="escons TEST=1" virtualmake
+}
+
+src_install() {
+ nonfatal escons install || die 'Please add "${S}/config.opts" when filing bugs reports!'
+}
diff --git a/media-video/bombono-dvd/files/bombono-dvd-1.2.0-libav.patch b/media-video/bombono-dvd/files/bombono-dvd-1.2.0-libav.patch
new file mode 100644
index 000000000000..a86808da8432
--- /dev/null
+++ b/media-video/bombono-dvd/files/bombono-dvd-1.2.0-libav.patch
@@ -0,0 +1,83 @@
+From b3e5482083d71e9913e12b038b329e36c2bbb130 Mon Sep 17 00:00:00 2001
+From: Ilya Murav'jov <muravev@yandex.ru>
+Date: Fri, 18 Nov 2011 22:31:18 +0300
+Subject: [PATCH] fix for ArchLinux: new ffmpeg hides ff_codec_bmp_tags etc
+
+---
+ src/mgui/ffviewer.cpp | 32 +++++++++++++++++++++++++-------
+ 1 files changed, 25 insertions(+), 7 deletions(-)
+
+diff --git a/src/mgui/ffviewer.cpp b/src/mgui/ffviewer.cpp
+index 3d8e9d9..9e6d31c 100644
+--- a/src/mgui/ffviewer.cpp
++++ b/src/mgui/ffviewer.cpp
+@@ -32,7 +32,15 @@
+ #include <mlib/read_stream.h> // ReadAllStream()
+ #include <mlib/string.h>
+
+-/////////////////////////////////////////
++// Прямой доступ к ff_codec_bmp_tags, в частности, закрыл, некий
++// Anton Khirnov, см. libavformat/libavformat.v (из него генерится скрипт
++// для опции --version-script=<script_file> линковщика ld)
++// Вообще, можно воспользоваться av_codec_get_tag(), а доступ к ff_codec_bmp_tags
++// получить через ff_avi_muxer->codec_tag (самого же найти по имени "avi") или подобный объект,
++// но это сейчас неактуально (никто не попадается на ошибку отсутствия кодека) => игра не стоит свеч
++//#define CALC_FF_TAG
++
++#ifdef CALC_FF_TAG
+ // :KLUDGE: потому что riff.h не копируют
+ C_LINKAGE_BEGIN
+
+@@ -62,7 +70,7 @@ static uint FFCodecID2Tag(CodecID codec_id)
+ #endif
+
+ C_LINKAGE_END
+-/////////////////////////////////////////
++#endif // CALC_FF_TAG
+
+ static AVStream* VideoStream(FFData& ffv)
+ {
+@@ -287,11 +295,6 @@ static bool IsFFError(int av_res)
+ return av_res < 0;
+ }
+
+-static unsigned char GetChar(uint tag, int bit_begin)
+-{
+- return (tag>>bit_begin) & 0xFF;
+-}
+-
+ static bool SetIndex(int& idx, int i, bool b)
+ {
+ bool res = (idx == -1) && b;
+@@ -300,6 +303,12 @@ static bool SetIndex(int& idx, int i, bool b)
+ return res;
+ }
+
++#ifdef CALC_FF_TAG
++static unsigned char GetChar(uint tag, int bit_begin)
++{
++ return (tag>>bit_begin) & 0xFF;
++}
++
+ static std::string CodecID2Str(CodecID codec_id)
+ {
+ #ifdef _MSC_VER
+@@ -316,6 +325,15 @@ static std::string CodecID2Str(CodecID codec_id)
+ return tag_str;
+ }
+
++#else // CALC_FF_TAG
++
++static std::string CodecID2Str(CodecID codec_id)
++{
++ return Int2Str(codec_id);
++}
++
++#endif // CALC_FF_TAG
++
+ bool OpenInfo(FFData& ffi, const char* fname, FFDiagnosis& diag)
+ {
+ std::string& err_str = diag.errStr;
+--
+1.7.3.4
+