Commit 6a0b57de authored by Neophytos's avatar Neophytos

k3b: rebuilt for sound group update

parent 3c199a83
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
pkgname=k3b
pkgver=2.0.2
pkgrel=5
pkgrel=7
depends=('kde-runtime' 'libkcddb' 'libkcompactdisc' 'libsamplerate' 'libmad'
'ffmpeg>=0.5' 'taglib>=1.4' 'libmpcdec>=1.2.5' 'libdvdread>=4.1.3'
'ffmpeg' 'taglib' 'libmpcdec' 'libdvdread'
'cdrdao' 'cdrkit' 'shared-mime-info' 'libxft' 'libmusicbrainz3' 'docbook-xsl')
makedepends=('cmake' 'pkgconfig' 'automoc4' 'dvd+rw-tools')
pkgdesc="Feature-rich and easy to handle CD burning application"
arch=("i686" "x86_64")
arch=("x86_64")
license=('GPL')
install=$pkgname.install
url="http://k3b.sourceforge.net/"
url="http://www.k3b.org"
optdepends=('dvd+rw-tools: for dvd burning support'
'vcdimager: for vcd burning support'
'transcode: for advanced mpeg conversion support'
'emovix: for bootable multimedia cd/dvd support')
categories=('multimedia')
options=(!libtool)
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2 \
k3b-2.0.2-ffmpeg.patch)
sha1sums=('8b30a4d07942e82559b01bc07dea6bcf2defd532'
'48f494363e7f423ee5d32f979d48e3d5731fe2ae')
options=('!libtool')
screenshot=("http://k3b.plainblack.com/uploads/YG/sD/YGsDcV6bDsyuBRt42GWFSA/welcome_screenshot1.png")
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
"k3b-2.0.2-ffmpeg.patch"
"k3b-2.0.2-libav9.patch"
"k3b-2.0.2-libavformat54.patch")
sha256sums=('af176f29c1d2339c4648d461476227cb07bcd0c75056f2a4006f253e3ef5b7cd'
'741b069ba4ffab7cef2cd5c3908030ee26e546478bacae20fa29b1ad0f8f207a'
'c2dd0aec1dedf2b1cc8ef1633ad74495e8d555a77b1088f7e48f692bcd42c6ae'
'26f32012a3ee8017435decdd8d5d5ec1fabfd479e0c3e5f08eecb2bc013c9dde')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i "${srcdir}/k3b-2.0.2-ffmpeg.patch"
patch -p1 -i "${srcdir}/k3b-2.0.2-libav9.patch"
patch -p1 -i "${srcdir}/k3b-2.0.2-libavformat54.patch"
}
build() {
cd "${srcdir}"
(cd ${pkgname}-${pkgver}; patch -p1 -i "${srcdir}/k3b-2.0.2-ffmpeg.patch")
mkdir build
mkdir -p build
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
......@@ -38,7 +45,6 @@ build() {
}
package() {
cd "${srcdir}/build"
cd build
make DESTDIR="${pkgdir}" install
}
Index: k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
===================================================================
--- k3b-2.0.2.orig/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 2013-04-22 17:46:13.523959500 +0200
+++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 2013-04-22 18:40:49.890007513 +0200
@@ -95,7 +95,7 @@ bool K3bFFMpegFile::open()
}
// analyze the streams
- ::av_find_stream_info( d->formatContext );
+ ::avformat_find_stream_info( d->formatContext, 0 );
// we only handle files containing one audio stream
if( d->formatContext->nb_streams != 1 ) {
@@ -129,7 +129,7 @@ bool K3bFFMpegFile::open()
// open the codec on our context
kDebug() << "(K3bFFMpegFile) found codec for " << m_filename;
- if( ::avcodec_open( codecContext, d->codec ) < 0 ) {
+ if( ::avcodec_open2( codecContext, d->codec, 0 ) < 0 ) {
kDebug() << "(K3bFFMpegDecoderFactory) could not open codec.";
return false;
}
--- k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp.orig 2013-07-12 23:05:37.371157123 -0400
+++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp 2013-07-12 23:12:01.649948739 -0400
@@ -55,7 +55,7 @@
K3b::Msf length;
// for decoding. ffmpeg requires 16-byte alignment.
- char outputBuffer[AVCODEC_MAX_AUDIO_FRAME_SIZE + 15];
+ char outputBuffer[192000 + 15];
char* alignedOutputBuffer;
char* outputBufferPos;
int outputBufferSize;
@@ -319,7 +319,7 @@
}
d->outputBufferPos = d->alignedOutputBuffer;
- d->outputBufferSize = AVCODEC_MAX_AUDIO_FRAME_SIZE;
+ d->outputBufferSize = 192000;
#if LIBAVCODEC_VERSION_MAJOR < 52
int len = ::avcodec_decode_audio(
Index: k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
===================================================================
--- k3b-2.0.2.orig/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
+++ k3b-2.0.2/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp
@@ -88,7 +88,7 @@ bool K3bFFMpegFile::open()
close();
// open the file
- int err = ::av_open_input_file( &d->formatContext, m_filename.toLocal8Bit(), 0, 0, 0 );
+ int err = ::avformat_open_input( &d->formatContext, m_filename.toLocal8Bit(), 0, NULL);
if( err < 0 ) {
kDebug() << "(K3bFFMpegFile) unable to open " << m_filename << " with error " << err;
return false;
@@ -143,7 +143,7 @@ bool K3bFFMpegFile::open()
}
// dump some debugging info
- ::dump_format( d->formatContext, 0, m_filename.toLocal8Bit(), 0 );
+ ::av_dump_format( d->formatContext, 0, m_filename.toLocal8Bit(), 0 );
return true;
}
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-mime-database usr/share/mime &> /dev/null
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-mime-database usr/share/mime &> /dev/null
}
post_upgrade() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment