Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=00d8c645c10ee74a7a0137f307a7460b1a4a6df1

commit 00d8c645c10ee74a7a0137f307a7460b1a4a6df1
Author: Melko <[email protected]>
Date:   Wed Jan 4 15:14:42 2012 +0100

k3b-2.0.2-4-i686

* rebuild with ffmpeg>=0.8.7

diff --git a/source/kde/k3b/0001-Fixed-compilation-with-new-FFMPEG.patch 
b/source/kde/k3b/0001-Fixed-compilation-with-new-FFMPEG.patch
new file mode 100644
index 0000000..e18a907
--- /dev/null
+++ b/source/kde/k3b/0001-Fixed-compilation-with-new-FFMPEG.patch
@@ -0,0 +1,101 @@
+From 61ca30beb978f68e72257408777c6433f33129bd Mon Sep 17 00:00:00 2001
+From: Michal Malek <[email protected]>
+Date: Sun, 28 Aug 2011 20:18:53 +0200
+Subject: [PATCH] Fixed compilation with new FFMPEG
+
+BUG: 274817
+FIXED-IN: 2.0.3
+---
+ plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp |   38 ++++++++++++++++++++++-----
+ 1 files changed, 31 insertions(+), 7 deletions(-)
+
+diff --git a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 
b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+index 0ad59fc..0c5f366 100644
+--- a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
++++ b/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+@@ -109,7 +109,13 @@ bool K3bFFMpegFile::open()
+ #else
+     ::AVCodecContext* codecContext =  d->formatContext->streams[0]->codec;
+ #endif
+-    if( codecContext->codec_type != CODEC_TYPE_AUDIO ) {
++    if( codecContext->codec_type !=
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++        AVMEDIA_TYPE_AUDIO)
++#else
++        CODEC_TYPE_AUDIO)
++#endif
++    {
+         kDebug() << "(K3bFFMpegFile) not a simple audio stream: " << 
m_filename;
+         return false;
+     }
+@@ -225,8 +231,11 @@ QString K3bFFMpegFile::typeComment() const
+ QString K3bFFMpegFile::title() const
+ {
+     // FIXME: is this UTF8 or something??
+-    if( d->formatContext->title[0] != '\0' )
+-        return QString::fromLocal8Bit( d->formatContext->title );
++    AVDictionaryEntry *ade = av_dict_get( d->formatContext->metadata, 
"TITLE", NULL, 0 );
++    if( ade == NULL )
++        return QString();
++    if( ade->value != '\0' )
++        return QString::fromLocal8Bit( ade->value );
+     else
+         return QString();
+ }
+@@ -235,8 +244,11 @@ QString K3bFFMpegFile::title() const
+ QString K3bFFMpegFile::author() const
+ {
+     // FIXME: is this UTF8 or something??
+-    if( d->formatContext->author[0] != '\0' )
+-        return QString::fromLocal8Bit( d->formatContext->author );
++    AVDictionaryEntry *ade = av_dict_get( d->formatContext->metadata, 
"ARTIST", NULL, 0 );
++    if( ade == NULL )
++        return QString();
++    if( ade->value != '\0' )
++        return QString::fromLocal8Bit( ade->value );
+     else
+         return QString();
+ }
+@@ -245,8 +257,11 @@ QString K3bFFMpegFile::author() const
+ QString K3bFFMpegFile::comment() const
+ {
+     // FIXME: is this UTF8 or something??
+-    if( d->formatContext->comment[0] != '\0' )
+-        return QString::fromLocal8Bit( d->formatContext->comment );
++    AVDictionaryEntry *ade = av_dict_get( d->formatContext->metadata, 
"COMMENT", NULL, 0 );
++    if( ade == NULL )
++        return QString();
++    if( ade->value != '\0' )
++        return QString::fromLocal8Bit( ade->value );
+     else
+         return QString();
+ }
+@@ -309,8 +324,13 @@ int K3bFFMpegFile::fillOutputBuffer()
+ #if LIBAVCODEC_VERSION_MAJOR < 52
+         int len = ::avcodec_decode_audio(
+ #else
++   #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++        int len = ::avcodec_decode_audio3(
++   #else
+         int len = ::avcodec_decode_audio2(
++   #endif
+ #endif
++
+ #ifdef FFMPEG_BUILD_PRE_4629
+             &d->formatContext->streams[0]->codec,
+ #else
+@@ -318,7 +338,11 @@ int K3bFFMpegFile::fillOutputBuffer()
+ #endif
+             (short*)d->alignedOutputBuffer,
+             &d->outputBufferSize,
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 64, 0)
++            &d->packet );
++#else
+             d->packetData, d->packetSize );
++#endif
+
+         if( d->packetSize <= 0 || len < 0 )
+             ::av_free_packet( &d->packet );
+--
+1.7.8.2
+
diff --git a/source/kde/k3b/FrugalBuild b/source/kde/k3b/FrugalBuild
index fd31972..02ecaf6 100644
--- a/source/kde/k3b/FrugalBuild
+++ b/source/kde/k3b/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=k3b
pkgver=2.0.2
-pkgrel=3
+pkgrel=4
pkgdesc="The CD Kreator"
groups=('kde')
archs=('i686' 'x86_64')
@@ -11,15 +11,17 @@ _F_sourceforge_pkgver=$pkgver$pkgextraver
_F_sourceforge_ext=".tar.bz2"
_F_cmakekde_final=OFF
Finclude kde sourceforge
-depends=('flac>=1.1.4' 'libsamplerate' 'libmusicbrainz' 'taglib' 'ffmpeg>=0.8' 
'cdrdao' \
+depends=('flac>=1.1.4' 'libsamplerate' 'libmusicbrainz' 'taglib' 
'ffmpeg>=0.8.7' 'cdrdao' \
"kdelibs>=${_F_kde_ver}" 'cdrtools' 'cdparanoia' 'normalize' 'sox>=14.2.0' 
'dvd+rw-tools' 'libmad' \
'libvorbis' 'vcdimager' 'libsndfile' 'libdvdread' 'libmpcdec' 
"libkcddb>=${_F_kde_ver}" "libqt3support>=$_F_kde_qtver")
-makedepends=("${makedepends[@]}" "kdelibs-compiletime>=${_F_kde_ver}" 
'docbook-xml' 'docbook-xsl')
+makedepends=("${makedepends[@]}" "kdelibs-compiletime>=${_F_kde_ver}" 
"ksgmltools2>=$_F_kde_ver " 'docbook-xml' 'docbook-xsl')
replaces=('k3bmonkeyaudioplugin' 'kavi2svcd' 'konqkonv' 'konqburn' 
'kvideoencoder')
url="http://www.k3b.org/";
-source=($source README.Frugalware k3bsetup-X-KDE-RootOnly.patch)
+source=($source README.Frugalware k3bsetup-X-KDE-RootOnly.patch \
+       0001-Fixed-compilation-with-new-FFMPEG.patch)
options=('scriptlet')
sha1sums=('8b30a4d07942e82559b01bc07dea6bcf2defd532' \
'8704ffb71684abde5b8288054ae25fda386244cc' \
-          '1520f148156a3390dd767848904205ead2b228ed')
+          '1520f148156a3390dd767848904205ead2b228ed' \
+          'd3ad522fca2070518c8c4056690141652f1c8046')
# optimization OK
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to