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 You can quickly create DVD menus for home videos and TV recordings
in three simple steps. 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. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=kmediafactory PRGNAM=kmediafactory
VERSION=${VERSION:-0.8.0} VERSION=${VERSION:-r691}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -55,13 +55,13 @@ else
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
fi fi
set -e # Exit on most errors set -e
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf $PRGNAM-$VERSION rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
cd $PRGNAM-$VERSION cd $PRGNAM-$VERSION
chown -R root:root . chown -R root:root .
find . \ find . \
@ -73,6 +73,12 @@ find . \
# Fix doctype version # Fix doctype version
sed -i "s/V4.1.2-Based/V4.2-Based/" doc/en/index.docbook 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 mkdir -p build
cd build cd build
cmake \ cmake \

View File

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