multimedia/kmediafactory: Updated for subversion revision r691.

Added patches for gcc-4.7.x and for ffmpeg-0.11.x,
changed deps info

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2012-09-24 20:01:57 +02:00 committed by Robby Workman
parent 96d5e68407
commit bf87d87454
5 changed files with 45 additions and 8 deletions

View file

@ -2,4 +2,5 @@ KMediaFactory is easy to use template based dvd authoring tool.
You can quickly create DVD menus for home videos and TV recordings
in three simple steps.
kaffeine is a optional dependency for preview DVDs.
Optional dependencies are kaffeine (for preview DVDs), mlt and
dvd-slideshow (for slideshows).

View file

@ -0,0 +1,11 @@
diff -Naur kmediafactory-r691.orig/lib/kmftools.cpp kmediafactory-r691/lib/kmftools.cpp
--- kmediafactory-r691.orig/lib/kmftools.cpp 2011-06-10 19:05:46.000000000 +0200
+++ kmediafactory-r691/lib/kmftools.cpp 2012-09-19 07:54:15.485298848 +0200
@@ -51,6 +51,7 @@
#include <fontconfig/fontconfig.h>
#include <sys/stat.h>
#include <stdlib.h>
+#include <unistd.h>
#include "Q4puGenericSignalSpy.h"

View file

@ -0,0 +1,19 @@
--- lib/videofile.cpp.ffmpeg 2012-07-30 04:42:30.000000000 +0000
+++ lib/videofile.cpp 2012-07-30 04:43:24.000000000 +0000
@@ -58,7 +58,6 @@
static bool init=false;
if(!init) {
av_register_all();
- avcodec_init();
avcodec_register_all();
av_log_set_level(0);
init=true;
@@ -66,7 +65,7 @@
close();
- if ( av_open_input_file(&avFromatContext, QFile::encodeName(filename).constData(), 0L, 0, 0L) != 0 ||
+ if ( avformat_open_input(&avFromatContext, QFile::encodeName(filename).constData(), 0L, 0L) != 0 ||
av_find_stream_info(avFromatContext) < 0) {
close();
}

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kmediafactory
VERSION=${VERSION:-0.8.0}
VERSION=${VERSION:-r691}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -55,13 +55,13 @@ else
LIBDIRSUFFIX=""
fi
set -e # Exit on most errors
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@ -73,6 +73,12 @@ find . \
# Fix doctype version
sed -i "s/V4.1.2-Based/V4.2-Based/" doc/en/index.docbook
# Fix for gcc-4.7.x
patch -p1 < $CWD/gcc47.patch
# Thanks go to mageia for this patch
patch -p0 < $CWD/kmediafactory-0.8.1-ffmpeg0.11.patch
mkdir -p build
cd build
cmake \

View file

@ -1,10 +1,10 @@
PRGNAM="kmediafactory"
VERSION="0.8.0"
VERSION="r691"
HOMEPAGE="http://code.google.com/p/kmediafactory/"
DOWNLOAD="http://kmediafactory.googlecode.com/files/kmediafactory-0.8.0.tar.bz2"
MD5SUM="e3621dffd97a45acd6ff883181d6e106"
DOWNLOAD="http://ponce.cc/slackware/sources/repo/kmediafactory-r691.tar.xz"
MD5SUM="49d4ad5aeca21d90f014ff62edf6e80f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="dvd-slideshow mjpegtools mlt"
REQUIRES="dvdauthor mjpegtools ffmpeg"
MAINTAINER="Giovanne Castro"
EMAIL="giovannefc@ig.com.br"