mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
kdenlive builds for kde48 release candidate (and kde47).
svn path=/nixpkgs/trunk/; revision=31802
This commit is contained in:
parent
151fcc6133
commit
47ae4a01bd
@ -1,19 +1,19 @@
|
|||||||
{ stdenv, fetchurl, lib, cmake, qt4, perl, kdelibs, automoc4, phonon, mlt, gettext
|
{ stdenv, fetchurl, lib, cmake, qt4, perl, kdelibs, automoc4, phonon, mlt, gettext
|
||||||
, qimageblitz, qjson, shared_mime_info, soprano }:
|
, qimageblitz, qjson, shared_mime_info, soprano, pkgconfig }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "kdenlive-${version}";
|
name = "kdenlive-${version}";
|
||||||
version = "0.8";
|
version = "0.8.2.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/kdenlive/${name}.tar.gz";
|
url = "mirror://sourceforge/kdenlive/${name}.tar.gz";
|
||||||
sha256 = "18e3390c9eb7124af5cd43819c679374aec46dcaf1fc5cdb43918db470c1076f";
|
sha256 = "a454a0659c9673453800df8382dfdbcb87acfb9b174712ffeb46b8304bf00717";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./kdenlive-newmlt.patch ];
|
patches = [ ./qtgl-header-change.patch ];
|
||||||
|
|
||||||
buildInputs = [ cmake qt4 perl kdelibs automoc4 phonon mlt gettext
|
buildInputs = [ cmake qt4 perl kdelibs automoc4 phonon mlt gettext
|
||||||
qimageblitz qjson shared_mime_info soprano ];
|
qimageblitz qjson shared_mime_info soprano pkgconfig ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Free and open source video editor";
|
description = "Free and open source video editor";
|
||||||
|
@ -1,70 +0,0 @@
|
|||||||
From http://kdenlive.org/forum/cant-start-kdnlive-sdl-module-missing-mlt
|
|
||||||
|
|
||||||
Kdenlive 0.8 tries to detect mlt by reading from stderr, but between
|
|
||||||
mlt 0.7.2 and 0.7.4 mlt this has changed from stderr to stdout.
|
|
||||||
===================================================================
|
|
||||||
--- kdenlive-0.8/src.orig/wizard.cpp 2011-04-26 21:44:22.000000000 +0200
|
|
||||||
+++ kdenlive-0.8/src/wizard.cpp 2011-07-21 18:22:18.470831892 +0200
|
|
||||||
@@ -214,7 +214,7 @@
|
|
||||||
button(QWizard::NextButton)->setEnabled(false);
|
|
||||||
} else {
|
|
||||||
checkProcess.waitForFinished();
|
|
||||||
- QByteArray result = checkProcess.readAllStandardError();
|
|
||||||
+ QByteArray result = checkProcess.readAllStandardOutput();
|
|
||||||
|
|
||||||
// Check MLT avformat module
|
|
||||||
QTreeWidgetItem *avformatItem = new QTreeWidgetItem(m_mltCheck.programList, QStringList() << QString() << i18n("Avformat module (FFmpeg)"));
|
|
||||||
@@ -246,7 +246,7 @@
|
|
||||||
kDebug() << "// Error querying MLT's version";
|
|
||||||
} else {
|
|
||||||
checkProcess.waitForFinished();
|
|
||||||
- mltVersion = checkProcess.readAllStandardError();
|
|
||||||
+ mltVersion = checkProcess.readAllStandardOutput();
|
|
||||||
mltVersion = mltVersion.section('\n', 0, 0).simplified();
|
|
||||||
mltVersion = mltVersion.section(' ', -1).simplified();
|
|
||||||
version = 1000 * mltVersion.section('.', 0, 0).toInt() + 100 * mltVersion.section('.', 1, 1).toInt() + mltVersion.section('.', 2, 2).toInt();
|
|
||||||
@@ -275,7 +275,7 @@
|
|
||||||
kDebug() << "// Error parsing MLT's avformat codecs";
|
|
||||||
} else {
|
|
||||||
checkProcess2.waitForFinished();
|
|
||||||
- QByteArray codecList = checkProcess2.readAllStandardError();
|
|
||||||
+ QByteArray codecList = checkProcess2.readAllStandardOutput();
|
|
||||||
QString acodecList(codecList);
|
|
||||||
QStringList result;
|
|
||||||
QStringList alist = acodecList.split('\n', QString::SkipEmptyParts);
|
|
||||||
@@ -292,7 +292,7 @@
|
|
||||||
kDebug() << "// Error parsing MLT's avformat codecs";
|
|
||||||
} else {
|
|
||||||
checkProcess2.waitForFinished();
|
|
||||||
- QByteArray codecList = checkProcess2.readAllStandardError();
|
|
||||||
+ QByteArray codecList = checkProcess2.readAllStandardOutput();
|
|
||||||
QString vcodecList(codecList);
|
|
||||||
QStringList result;
|
|
||||||
QStringList vlist = vcodecList.split('\n', QString::SkipEmptyParts);
|
|
||||||
@@ -309,7 +309,7 @@
|
|
||||||
kDebug() << "// Error parsing MLT's avformat codecs";
|
|
||||||
} else {
|
|
||||||
checkProcess2.waitForFinished();
|
|
||||||
- QByteArray codecList = checkProcess2.readAllStandardError();
|
|
||||||
+ QByteArray codecList = checkProcess2.readAllStandardOutput();
|
|
||||||
QString vcodecList(codecList);
|
|
||||||
QStringList result;
|
|
||||||
QStringList vlist = vcodecList.split('\n', QString::SkipEmptyParts);
|
|
||||||
@@ -606,7 +606,7 @@
|
|
||||||
|
|
||||||
checkProcess.waitForFinished();
|
|
||||||
|
|
||||||
- QByteArray result = checkProcess.readAllStandardError();
|
|
||||||
+ QByteArray result = checkProcess.readAllStandardOutput();
|
|
||||||
if (!result.contains("- avformat")) errorMessage.append(i18n("MLT's avformat (FFMPEG) module not found. Please check your FFMPEG and MLT install. Kdenlive will not work until this issue is fixed.") + "\n");*/
|
|
||||||
|
|
||||||
QProcess checkProcess2;
|
|
||||||
@@ -616,7 +616,7 @@
|
|
||||||
|
|
||||||
checkProcess2.waitForFinished();
|
|
||||||
|
|
||||||
- QByteArray result = checkProcess2.readAllStandardError();
|
|
||||||
+ QByteArray result = checkProcess2.readAllStandardOutput();
|
|
||||||
if (!result.contains("sdl") || !result.contains("sdl_preview")) errorMessage.append(i18n("MLT's SDL module not found. Please check your MLT install. Kdenlive will not work until this issue is fixed.") + '\n');
|
|
||||||
|
|
||||||
if (!errorMessage.isEmpty()) {
|
|
14
pkgs/applications/video/kdenlive/qtgl-header-change.patch
Normal file
14
pkgs/applications/video/kdenlive/qtgl-header-change.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Correct for changed Qt opengl includes.
|
||||||
|
Reference: http://www.kdenlive.org/mantis/view.php?id=2396
|
||||||
|
|
||||||
|
diff -Naur kdenlive-0.8.2.1.orig//src/videoglwidget.cpp kdenlive-0.8.2.1/src/videoglwidget.cpp
|
||||||
|
--- kdenlive-0.8.2.1.orig//src/videoglwidget.cpp 2012-01-24 00:04:53.588121469 -0430
|
||||||
|
+++ kdenlive-0.8.2.1/src/videoglwidget.cpp 2012-01-24 00:05:32.817410938 -0430
|
||||||
|
@@ -2,6 +2,7 @@
|
||||||
|
#include <QtGui>
|
||||||
|
#include <QtOpenGL>
|
||||||
|
#include "videoglwidget.h"
|
||||||
|
+#include "GL/glu.h"
|
||||||
|
|
||||||
|
#ifndef GL_TEXTURE_RECTANGLE_EXT
|
||||||
|
#define GL_TEXTURE_RECTANGLE_EXT GL_TEXTURE_RECTANGLE_NV
|
@ -2,11 +2,11 @@
|
|||||||
libvorbis, sox}:
|
libvorbis, sox}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "mlt-0.7.4";
|
name = "mlt-0.7.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/mlt/mlt-0.7.4.tar.gz;
|
url = mirror://sourceforge/mlt/mlt-0.7.6.tar.gz;
|
||||||
sha256 = "1xcrrd3xbz9hmahgl7xf610cm97chwpxwgcajkd10mpcxbqs08i0";
|
sha256 = "f8ea8590417ea2b5543a495f2edc30636d3931932deee7a4e0d8516e9c2b58ae";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ qt4 SDL ffmpeg libdv libxml2 libsamplerate libvorbis sox ];
|
buildInputs = [ qt4 SDL ffmpeg libdv libxml2 libsamplerate libvorbis sox ];
|
||||||
|
Loading…
Reference in New Issue
Block a user