summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Villa <avilla@FreeBSD.org>2013-06-09 11:28:26 (GMT)
committerVincent PINON <vincent.pinon@laposte.net>2014-04-28 19:43:04 (GMT)
commit7d27edc2542cec109e98560bf9f47bfb637e45dd (patch)
treeb8dd66403a8c22eba56c2c838525d9e9df5c21f0
parent959155fa6dcd3d4c8143aed22a29110cd4e555ea (diff)
Avoid hardcoding MLT required version in wizard.c
config-kdenlive.h is there for this kind of things.
-rw-r--r--CMakeLists.txt5
-rw-r--r--config-kdenlive.h.cmake3
-rw-r--r--src/wizard.cpp6
3 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b56ca8..9d8634a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,10 @@ project(Kdenlive)
set(KDENLIVE_VERSION 0.9.7)
# Minimum versions of main dependencies.
-set(MLT_MIN_VERSION 0.8.8)
+set(MLT_MIN_MAJOR_VERSION 0)
+set(MLT_MIN_MINOR_VERSION 8)
+set(MLT_MIN_PATCH_VERSION 8)
+set(MLT_MIN_VERSION ${MLT_MIN_MAJOR_VERSION}.${MLT_MIN_MINOR_VERSION}.${MLT_MIN_PATCH_VERSION})
set(QT_MIN_VERSION 4.5.0)
set(KDE_MIN_VERSION 4.3.0)
diff --git a/config-kdenlive.h.cmake b/config-kdenlive.h.cmake
index fdb9f83..b63523d 100644
--- a/config-kdenlive.h.cmake
+++ b/config-kdenlive.h.cmake
@@ -4,6 +4,9 @@
#define KDENLIVE_VERSION "@KDENLIVE_VERSION_STRING@"
#define MLT_PREFIX "@MLT_PREFIX@"
+#define MLT_MIN_MAJOR_VERSION @MLT_MIN_MAJOR_VERSION@
+#define MLT_MIN_MINOR_VERSION @MLT_MIN_MINOR_VERSION@
+#define MLT_MIN_PATCH_VERSION @MLT_MIN_PATCH_VERSION@
#cmakedefine HAVE_MALLOC_H 1
#cmakedefine HAVE_PTHREAD_H 1
diff --git a/src/wizard.cpp b/src/wizard.cpp
index 25698ae..929d49d 100644
--- a/src/wizard.cpp
+++ b/src/wizard.cpp
@@ -47,9 +47,9 @@
#include <QTimer>
// Recommended MLT version
-const int mltVersionMajor = 0;
-const int mltVersionMinor = 8;
-const int mltVersionRevision = 8;
+const int mltVersionMajor = MLT_MIN_MAJOR_VERSION;
+const int mltVersionMinor = MLT_MIN_MINOR_VERSION;
+const int mltVersionRevision = MLT_MIN_PATCH_VERSION;
static const char kdenlive_version[] = KDENLIVE_VERSION;