Update automated AppImage scripts

parent f49fbf4e
*~
build*
build*/
CMakeLists.txt.user*
po
# Rules to build 3rd-party libraries for digiKam bundles.
#
# Copyright (c) 2015-2017, Gilles Caulier, <caulier dot gilles at gmail dot com>
project (kdenlive-and-all-its-deps)
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
# Build all dependencies for Kdenlive and finally Kdenlive itself.
# Parameters: EXT_DOWNLOAD_DIR place to download all packages
# INSTALL_ROOT place to install everything to
#
# Example usage: cmake ..\kmymoneydep -DEXT_DOWNLOAD_DIR=/dev2/d -DINSTALL_ROOT=/dev2/i
project(digikam-bundles)
cmake_minimum_required(VERSION 2.8.6)
function(JoinListAsString VALUES GLUE OUTPUT)
string(REPLACE ";" "${GLUE}" _TMP_STR "${VALUES}")
set(${OUTPUT} "${_TMP_STR}" PARENT_SCOPE)
endfunction()
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
message(FATAL_ERROR "Compiling in the source directory is not supported. Use for example 'mkdir build; cd build; cmake ..'.")
message(FATAL_ERROR "Compiling in the source directory is not supported. Use for example 'mkdir build; cd build; cmake ..'.")
endif()
# Tools must be obtained to work with:
include (ExternalProject)
include(ExternalProject)
# allow specification of a directory with pre-downloaded
# requirements
if(NOT IS_DIRECTORY ${EXTERNALS_DOWNLOAD_DIR})
message(FATAL_ERROR "No externals download dir set. Use -DEXTERNALS_DOWNLOAD_DIR")
if(NOT IS_DIRECTORY ${EXT_DOWNLOAD_DIR})
message(FATAL_ERROR "No externals download dir set. Use -DEXT_DOWNLOAD_DIR")
endif()
if(NOT IS_DIRECTORY ${INSTALL_ROOT})
message(FATAL_ERROR "No install dir set. Use -DINSTALL_ROOT")
if(NOT IS_DIRECTORY ${EXT_INSTALL_DIR})
message(FATAL_ERROR "No install dir set. Use -DEXT_INSTALL_DIR")
endif()
set(TOP_INST_DIR ${INSTALL_ROOT})
set(EXTPREFIX "${TOP_INST_DIR}")
set(CMAKE_PREFIX_PATH "${EXTPREFIX}")
message( STATUS "CMAKE_GENERATOR: ${CMAKE_GENERATOR}")
message( STATUS "CMAKE_CL_64: ${CMAKE_CL_64}")
set(CMAKE_PREFIX_PATH "${EXT_INSTALL_DIR};${EXT_INSTALL_DIR}/openssl")
set(CMAKE_INSTALL_PREFIX "${EXT_INSTALL_DIR}")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_GLOBAL_PROFILE
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=${CMAKE_PREFIX_PATH}
-DCMAKE_PREFIX_PATH=${CMAKE_INSTALL_PREFIX}
-DBUILD_TESTING=FALSE
)
# without --host=x86_64 gmp builds with optimizations for skylake and that prevents running Kdenlive on pre-skylake CPUs
set(AT_HOST --host=x86_64-linux-gnu)
set(AT_SHARED_ONLY --disable-static --enable-shared)
set(AT_CPP_FLAGS "-I${EXT_INSTALL_DIR}/include -I${EXT_INSTALL_DIR}/openssl/include")
set(AT_LD_FLAGS "-L${EXT_INSTALL_DIR}/lib -L${EXT_INSTALL_DIR}/openssl/lib")
set(GLOBAL_BUILD_TYPE RelWithDebInfo)
set(GLOBAL_PROFILE ${GLOBAL_PROFILE} -DBUILD_TESTING=false)
set(PATCH_COMMAND patch)
# this list must be dependency-ordered
add_subdirectory(ext_jpeg)
add_subdirectory(ext_jasper)
add_subdirectory(ext_png)
add_subdirectory(ext_tiff)
#add_subdirectory(ext_libgphoto2)
#add_subdirectory(ext_sane)
add_subdirectory(ext_exiv2)
add_subdirectory(ext_boost)
#add_subdirectory(ext_opencv)
#add_subdirectory(ext_lensfun)
add_subdirectory(ext_qt)
#add_subdirectory(ext_qtwebkit)
#add_subdirectory(ext_qtav)
#add_subdirectory(ext_kf5)
#add_subdirectory(ext_marble)
#add_subdirectory(ext_libksane)
add_subdirectory( ext_iconv )
add_subdirectory( ext_zlib )
add_subdirectory( ext_lzma )
add_subdirectory( ext_icu )
add_subdirectory( ext_ncurses )
add_subdirectory( ext_readline )
add_subdirectory( ext_xml )
add_subdirectory( ext_gettext )
add_subdirectory( ext_png )
add_subdirectory( ext_nasm )
add_subdirectory( ext_yasm )
add_subdirectory( ext_jpeg )
add_subdirectory( ext_boost )
add_subdirectory( ext_xslt )
add_subdirectory( ext_fontconfig )
add_subdirectory( ext_intltool )
add_subdirectory( ext_sharedmimeinfo )
add_subdirectory( ext_gmp )
add_subdirectory( ext_gpgerror )
add_subdirectory( ext_assuan2 )
add_subdirectory( ext_nettle )
add_subdirectory( ext_tasn1 )
add_subdirectory( ext_unistring )
add_subdirectory( ext_gnutls )
add_subdirectory( ext_pcre2 )
add_subdirectory( ext_freetype )
add_subdirectory( ext_harfbuzz )
add_subdirectory( ext_sqlite )
add_subdirectory( ext_openssl )
add_subdirectory( ext_mysql )
add_subdirectory( ext_tcl )
add_subdirectory( ext_postgresql )
add_subdirectory( ext_qt )
add_subdirectory( ext_phonon )
add_subdirectory( ext_gpgme )
add_subdirectory( ext_gcrypt )
add_subdirectory( ext_frameworks )
add_subdirectory( ext_xmlsec1 )
add_subdirectory( ext_sqlcipher )
add_subdirectory( ext_opensp )
add_subdirectory( ext_ofx )
add_subdirectory( ext_libsndfile )
add_subdirectory( ext_libsamplerate )
add_subdirectory( ext_alsa )
add_subdirectory( ext_fftw3 )
add_subdirectory( ext_sdl2 )
add_subdirectory( ext_ladspa )
add_subdirectory( ext_x264 )
add_subdirectory( ext_x265 )
add_subdirectory( ext_libvpx )
add_subdirectory( ext_ffmpeg )
add_subdirectory( ext_cairo )
add_subdirectory( ext_pango )
add_subdirectory( ext_gdkpixbuf )
add_subdirectory( ext_gtk+ )
add_subdirectory( ext_mlt )
add_subdirectory( ext_kdenlive )
ExternalProject_Add(
ext_alsa
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.5.tar.bz2
URL_MD5 a2b465c3a5265d8a57f3ff39c6c4fc29
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
set(EXT_INSTALL_DIR_applications "${EXT_INSTALL_DIR}")
ExternalProject_Add(
ext_akonadi
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://download.kde.org/stable/applications/18.08.2/src/akonadi-18.08.2.tar.xz
URL_MD5 bff15765460e954105217831f2786dc2
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE}
DEPENDS ext_sharedmimeinfo ext_boost ext_xslt ext_kcompletion ext_kconfig ext_kconfigwidgets ext_kcoreaddons ext_kdbusaddons ext_ki18n ext_kiconthemes ext_kitemmodels ext_kitemviews ext_kio ext_kwidgetsaddons ext_kwindowsystem ext_kxmlgui ext_kcrash
)
ExternalProject_Add(
ext_kpimtextedit
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://download.kde.org/stable/applications/18.08.2/src/kpimtextedit-18.08.2.tar.xz
URL_MD5 a360356a13ea0ee0f179fa28f267c1d8
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE}
DEPENDS ext_kcodecs ext_kconfig ext_kconfigwidgets ext_kcoreaddons ext_kemoticons ext_ki18n ext_kiconthemes ext_kio ext_sonnet ext_syntaxhighlighting ext_kwidgetsaddons ext_kxmlgui ext_grantlee
)
ExternalProject_Add(
ext_kidentitymanagement
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://download.kde.org/stable/applications/18.08.2/src/kidentitymanagement-18.08.2.tar.xz
URL_MD5 c7061788d60a167a3ef92cb5fd7a3ddd
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE}
DEPENDS ext_kcoreaddons ext_kcompletion ext_ktextwidgets ext_kxmlgui ext_kio ext_kconfig ext_kcodecs ext_kiconthemes ext_kpimtextedit
)
ExternalProject_Add(
ext_kcontacts
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://download.kde.org/stable/applications/18.08.2/src/kcontacts-18.08.2.tar.xz
URL_MD5 9686d42582cdf6b2a931d2ae036c1433
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE}
DEPENDS ext_kcoreaddons ext_ki18n ext_kconfig ext_kcodecs
)
\ No newline at end of file
ExternalProject_Add(
ext_assuan2
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.1.tar.bz2
URL_MD5 4354b7ae296894f232ada226a062d7d7
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_gpgerror
)
# Script to build Boost for digiKam bundle.
#
# Copyright (c) 2015-2017, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
ExternalProject_Add(
ext_boost
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://dl.bintray.com/boostorg/release/1.68.0/source/boost_1_68_0.tar.bz2
URL_MD5 7fbd1890f571051f2a209681d57d486a
SET(PREFIX_ext_boost "${EXTPREFIX}")
CONFIGURE_COMMAND <SOURCE_DIR>/bootstrap.sh --prefix=${EXT_INSTALL_DIR} --with-libraries=system
BUILD_COMMAND <SOURCE_DIR>/b2 -j1 install
INSTALL_COMMAND ""
ExternalProject_Add( ext_boost
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2
URL_MD5 65a840e1a0b13a558ff19eeb2c4f0cbe
CONFIGURE_COMMAND <SOURCE_DIR>/bootstrap.sh --prefix=${PREFIX_ext_boost} --with-libraries=system
BUILD_COMMAND <SOURCE_DIR>/b2 install
INSTALL_COMMAND ""
INSTALL_DIR ${PREFIX_ext_boost}
UPDATE_COMMAND ""
ALWAYS 0
BUILD_IN_SOURCE 1
BUILD_IN_SOURCE 1
)
ExternalProject_Add(
ext_cairo
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.cairographics.org/releases/cairo-1.14.10.tar.xz
URL_MD5 146f5f4d0b4439fc3792fd3452b7b12a
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_ffmpeg
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
GIT_REPOSITORY https://anonscm.debian.org/git/pkg-multimedia/ffmpeg.git
GIT_TAG debian/7%3.3.4-2
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${DEPS_INSTALL_PREFIX} --extra-ldflags="-L${DEPS_INSTALL_PREFIX}/lib -lstdc++ -lm -lrt -ldl" --extra-cflags="-I$DEPS_INSTALL_PREFIX/include" --enable-shared --enable-avfilter --enable-gpl --enable-avresample --enable-libx265 --enable-libvpx --enable-libx264 --disable-doc
BUILD_ALWAYS TRUE
BUILD_COMMAND $(MAKE) clean
COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
SET(PREFIX_ext_fftw3 "${EXTPREFIX}" )
ExternalProject_Add( ext_fftw3
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL http://www.fftw.org/fftw-3.3.7.tar.gz
URL_MD5 0d5915d7d39b3253c1cc05030d79ac47
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE} -DENABLE_FLOAT=ON -DENABLE_THREADS=ON
)
ExternalProject_Add(
ext_fontconfig
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://files.kde.org/krita/build/dependencies/fontconfig-2.12.0.tar.gz
URL_MD5 d8b056231abcb6257db6dc6d745360b2
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
This diff is collapsed.
diff -Npru kservice-5.51.0.orig/src/sycoca/kbuildservicefactory.cpp kservice-5.51.0/src/sycoca/kbuildservicefactory.cpp
--- kservice-5.51.0.orig/src/sycoca/kbuildservicefactory.cpp 2018-10-08 10:21:25.000000000 +0200
+++ kservice-5.51.0/src/sycoca/kbuildservicefactory.cpp 2018-11-04 08:51:59.529451519 +0100
@@ -93,11 +93,17 @@ KSycocaEntry *KBuildServiceFactory::crea
if (QDir::isAbsolutePath(file)) { // vfolder sends us full paths for applications
serv = new KService(file);
} else { // we get relative paths for services
+ const QString appImageDesktopFile = QCoreApplication::applicationDirPath() + QLatin1String("/../share/") + QStringLiteral("kservices5/") + file;
+ if (QFile::exists(appImageDesktopFile)) {
+ KDesktopFile desktopFile(appImageDesktopFile);
+ serv = new KService(&desktopFile, appImageDesktopFile);
+ } else {
KDesktopFile desktopFile(QStandardPaths::GenericDataLocation, QStringLiteral("kservices5/") + file);
// Note that the second arg below MUST be 'file', unchanged.
// If the entry path doesn't match the 'file' parameter to createEntry, reusing old entries
// (via time dict, which uses the entry path as key) cannot work.
serv = new KService(&desktopFile, file);
+ }
}
//qCDebug(SYCOCA) << "Creating KService from" << file << "entryPath=" << serv->entryPath();
diff -Npru kservice-5.51.0.orig/src/sycoca/kbuildsycoca.cpp kservice-5.51.0/src/sycoca/kbuildsycoca.cpp
--- kservice-5.51.0.orig/src/sycoca/kbuildsycoca.cpp 2018-10-08 10:21:25.000000000 +0200
+++ kservice-5.51.0/src/sycoca/kbuildsycoca.cpp 2018-11-04 08:53:04.976953937 +0100
@@ -201,7 +201,11 @@ bool KBuildSycoca::build()
m_resource = it1.value();
QSet<QString> relFiles;
- const QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, m_resourceSubdir, QStandardPaths::LocateDirectory);
+ QStringList dirs = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, m_resourceSubdir, QStandardPaths::LocateDirectory);
+ const QString appImageDir = QCoreApplication::applicationDirPath() + QLatin1String("/../share/") + m_resourceSubdir;
+ if (QFile::exists(appImageDir))
+ dirs.append(appImageDir);
+
qCDebug(SYCOCA) << "Looking for subdir" << m_resourceSubdir << "=>" << dirs;
Q_FOREACH (const QString &dir, dirs) {
QDirIterator it(dir, QDirIterator::Subdirectories);
@@ -626,7 +630,11 @@ quint32 KBuildSycoca::calcResourceHash(c
if (!QDir::isRelativePath(filename)) {
return updateHash(filename, hash);
}
- const QStringList files = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, resourceSubDir + QLatin1Char('/') + filename);
+ QStringList files = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, resourceSubDir + QLatin1Char('/') + filename);
+ const QString appImageFile = QCoreApplication::applicationDirPath() + QLatin1String("/../share/") + resourceSubDir + QLatin1Char('/') + filename;
+ if (QFile::exists(appImageFile))
+ files.append(appImageFile);
+
Q_FOREACH (const QString &file, files) {
hash = updateHash(file, hash);
}
diff -Npru kservice-5.51.0.orig/src/sycoca/ksycoca.cpp kservice-5.51.0/src/sycoca/ksycoca.cpp
--- kservice-5.51.0.orig/src/sycoca/ksycoca.cpp 2018-10-08 10:21:25.000000000 +0200
+++ kservice-5.51.0/src/sycoca/ksycoca.cpp 2018-11-04 08:56:33.977171556 +0100
@@ -596,6 +596,14 @@ KSycocaHeader KSycocaPrivate::readSycoca
str->device()->seek(oldPos);
+ // this clause must be before timeStamp = header.timeStamp
+ qDebug() << "applications name: " << qAppName();
+ const QString appImageShare = QCoreApplication::applicationDirPath() + QLatin1String("/../share");
+ addLocalResourceDir(appImageShare + QLatin1String("/kservices5"));
+ addLocalResourceDir(appImageShare + QLatin1String("/kservicetypes5"));
+ addLocalResourceDir(appImageShare + QLatin1String("/mime"));
+ addLocalResourceDir(appImageShare + QLatin1String("/applications"));
+
timeStamp = header.timeStamp;
// for the useless public accessors. KF6: remove these two lines, the accessors and the vars.
# this library isn't shipped with AppImage as per
# https://github.com/AppImage/AppImages/blob/master/excludelist#L126
ExternalProject_Add(
ext_freetype
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://quantum-mirror.hu/mirrors/pub/gnusavannah/freetype/freetype-2.9.1.tar.bz2
URL_MD5 60ef7d8160cd4bf8cb118ee9d65367ca
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --enable-freetype-config
BUILD_ALWAYS TRUE
BUILD_COMMAND $(MAKE) clean
COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_gcrypt
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.8.3.tar.bz2
URL_MD5 3139c2402e844985a67fb288a930534d
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --disable-doc
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_gpgerror
)
ExternalProject_Add(
ext_gdkpixbuf
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://ftp.gnome.org/pub/GNOME/sources/gdk-pixbuf/2.23/gdk-pixbuf-2.23.5.tar.xz
URL_MD5 066e30277cadc225a7cef4c258da830b
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_alsa
)
ExternalProject_Add(
ext_gettext
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.1.tar.gz
URL_MD5 97e034cf8ce5ba73a28ff6c3c0638092
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --disable-java --disable-native-java --enable-nls --enable-c++
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_iconv ext_xml ext_ncurses
)
ExternalProject_Add(
ext_gmp
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2
URL_MD5 8ddbb26dc3bd4e2302984debba1406a5
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --enable-cxx
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_gnutls
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.gnupg.org/ftp/gcrypt/gnutls/v3.6/gnutls-3.6.4.tar.xz
URL_MD5 63363d1c00601f4d11a5cadc8b5e0799
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --disable-tests --disable-doc --enable-openssl-compatibility -disable-gtk-doc --enable-cxx --without-p11-kit CPPFLAGS=${AT_CPP_FLAGS} LDFLAGS=${AT_LD_FLAGS}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_assuan2 ext_gpgerror ext_nettle ext_tasn1 ext_unistring
)
ExternalProject_Add(
ext_gpgerror
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.32.tar.bz2
URL_MD5 ef3d928a5a453fa701ecc3bb22be1c64
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_gpgme
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.12.0.tar.bz2
URL_MD5 902fca3a94907efe4e929b2ade545a7c
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --enable-languages=cpp,qt --disable-gpg-test
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_assuan2
)
ExternalProject_Add(
ext_gtk+
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.23/gtk+-2.23.90.tar.gz
URL_MD5 404c75655bc497994c13a1aa92c9949a
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_alsa
)
# this library isn't shipped with AppImage as per
# https://github.com/AppImage/AppImages/blob/master/excludelist#L126
ExternalProject_Add(
ext_harfbuzz
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-2.0.0.tar.bz2
URL_MD5 6d1373dba3e8540c448c6a562f2e0a00
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --with-icu=yes --disable-gtk-doc-html
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_icu
)
ExternalProject_Add(
ext_sdl2
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://libsdl.org/release/SDL2-2.0.9.tar.gz
URL_MD5 f2ecfba915c54f7200f504d8b48a5dfe
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} --with-alsa-prefix=${EXT_INSTALL_DIR}/usr/lib --with-alsa-inc-prefix=${EXT_INSTALL_DIR}/usr/include/
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
DEPENDS ext_alsa
)
ExternalProject_Add(
ext_iconv
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
URL_MD5 ace8b5f2db42f7b3b3057585e80d9808
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY} --enable-relocatable
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_icu
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://download.icu-project.org/files/icu4c/63.1/icu4c-63_1-src.tgz
URL_MD5 9e40f6055294284df958200e308bce50
CONFIGURE_COMMAND <SOURCE_DIR>/source/configure --prefix=${EXT_INSTALL_DIR} --disable-tests
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_intltool
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz
URL_MD5 12e517cac2b57a0121cda351570f1e63
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
# Script to build libjpeg for digiKam bundle.
#
# Copyright (c) 2015-2017, Gilles Caulier, <caulier dot gilles at gmail dot com>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
ExternalProject_Add(
ext_jpeg
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-2.0.0.tar.gz
URL_MD5 b12a3fcf1d078db38410f27718a91b83
SET(PREFIX_ext_jpeg "${EXTPREFIX}")
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE}
-DENABLE_STATIC=OFF
ExternalProject_Add(ext_jpeg
DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
URL https://sourceforge.net/projects/libjpeg-turbo/files/1.5.3/libjpeg-turbo-1.5.3.tar.gz
URL_MD5 7c82f0f6a3130ec06b8a4d0b321cbca3
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${PREFIX_ext_jpeg}
--without-simd
--with-jpeg8
UPDATE_COMMAND ""
ALWAYS 0
DEPENDS ext_nasm
)
ExternalProject_Add(
ext_kdenlive
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
GIT_REPOSITORY http://anongit.kde.org/kdenlive.git
GIT_TAG refactoring_timeline
CMAKE_ARGS ${CMAKE_GLOBAL_PROFILE}
DEPENDS ext_mlt
)
ExternalProject_Add(
ext_ladspa
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
GIT_REPOSITORY https://github.com/swh/ladspa.git
UPDATE_DISCONNECTED 1
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND <SOURCE_DIR>/autogen.sh --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY}
# CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST} ${AT_SHARED_ONLY}
BUILD_ALWAYS TRUE
BUILD_COMMAND $(MAKE) clean
COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_libsamplerate
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
URL_MD5 2b78ae9fe63b36b9fbb6267fad93f259
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_libsndfile
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
URL_MD5 646b5f98ce89ac60cdb060fcd398247c
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} ${AT_HOST}
BUILD_COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_libvpx
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
GIT_REPOSITORY https://anonscm.debian.org/git/pkg-multimedia/libvpx.git
CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${EXT_INSTALL_DIR} --enable-static --as=yasm --enable-shared
BUILD_ALWAYS TRUE
BUILD_COMMAND $(MAKE) clean
COMMAND $(MAKE)
INSTALL_COMMAND $(MAKE) install
)
ExternalProject_Add(
ext_lzma
DOWNLOAD_DIR ${EXT_DOWNLOAD_DIR}
URL http://tukaani.org/xz/xz-5.2.4.tar.xz