Update AppImage scripts

parent 552c0c82
......@@ -25,20 +25,6 @@ else
exit 1
fi
#yum -y install wget epel-release git make autoconf automake libtool \
# gettext perl-URI.noarch bzip2-devel libnuma-devel xz-devel \
# libzip-devel libxml2-devel libxslt-devel libsqlite3x-devel \
# libudev-devel libusbx-devel libcurl-devel libssh2-devel mesa-libGL-devel sqlite-devel #\
# tar gzip which make autoconf automake gstreamer-devel mesa-libEGL coreutils grep \
# media-player-info.noarch alsa-lib-devel polkit-devel sox-devel mesa-libGLU
#yum --enablerepo=epel -y install fuse-sshfs # install from EPEL
#if [[ "$(arch)" = "x86_64" ]] ; then
# yum upgrade ca-certificates --disablerepo=epel
#fi
if [[ ! -f /etc/yum.repos.d/epel.repo ]] ; then
yum -y install epel-release
......@@ -47,13 +33,26 @@ if [[ ! -f /etc/yum.repos.d/epel.repo ]] ; then
yum -y update
fi
# Required for GAVL install (used in frei0r crop,scale,tilt effect)
if [[ ! -f /etc/yum.repos.d/linuxtech.repo ]] ; then
cat > /etc/yum.repos.d/linuxtech.repo << 'EOF'
[linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
EOF
yum -y update
fi
# Packages for base dependencies and Qt5.
yum -y install wget \
tar \
bzip2 \
xz \
gettext \
git \
subversion \
libtool \
which \
......@@ -67,7 +66,6 @@ yum -y install wget \
xcb-util \
xkeyboard-config \
gperf \
ruby \
bison \
flex \
zlib-devel \
......@@ -104,21 +102,26 @@ yum -y install wget \
xz-devel \
lz4-devel \
inotify-tools-devel \
openssl-devel \
cups-devel \
openal-soft-devel \
pixman-devel \
alsa-lib-devel \
sox-devel \
polkit-devel
polkit-devel \
perl-ExtUtils-MakeMaker \
curl-devel \
pulseaudio-libs-devel \
libgavl-devel \
sox-devel
if ( !test -d /usr/bin/cmake ) ; then
ln -s /usr/bin/cmake3 /usr/bin/cmake
fi
# Newer compiler than what comes with offcial CentOS 6 (only 64 bits)
yum -y install centos-release-scl-rh
yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++
# required for Kdenlive related libs
yum -y install libXft-devel atk-devel libtiff-devel libjpeg-devel libXcomposite-devel
yum -y install libXft-devel atk-devel libXcomposite-devel
# Get helper functions
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
......@@ -128,7 +131,7 @@ rm -f functions.sh
echo -e "---------- Clean-up Old Packages\n"
# Remove system based devel package to prevent conflict with new one.
yum -y erase boost-devel libgphoto2 sane-backends libjpeg-devel jasper-devel libpng-devel libtiff-devel
yum -y erase boost-devel libgphoto2 sane-backends libjpeg-devel jasper-devel libpng-devel libtiff-devel git
# Prepare the install location
# rm -rf /app/ || true
......@@ -154,11 +157,23 @@ QTDIR=/usr/local/Qt-${QTVERSION}/
BUILDING_DIR="/external/build"
DOWNLOAD_DIR="/external/download"
# install recent git
if [ ! -d /external/git-2.7.4 ]; then
cd /external
wget https://www.kernel.org/pub/software/scm/git/git-2.7.4.tar.gz
tar xzf git-2.7.4.tar.gz
fi
cd /external/git-2.7.4
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo 'export PATH=$PATH:/usr/local/git/bin' >> /etc/bashrc
source /etc/bashrc
cd $BUILDING_DIR
rm -rf $BUILDING_DIR/* || true
cmake3 /kdenlive/packaging/appimage/3rdparty \
cmake3 /appimage-scripts/3rdparty \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DINSTALL_ROOT=/usr \
-DEXTERNALS_DOWNLOAD_DIR=$DOWNLOAD_DIR
......@@ -168,13 +183,10 @@ cmake3 --build . --config RelWithDebInfo --target ext_jasper -- -j$CPU_CORES
cmake3 --build . --config RelWithDebInfo --target ext_png -- -j$CPU_CORES
cmake3 --build . --config RelWithDebInfo --target ext_tiff -- -j$CPU_CORES
#cmake3 --build . --config RelWithDebInfo --target ext_opencv -- -j$CPU_CORES
cmake3 --build . --config RelWithDebInfo --target ext_qt -- -j$CPU_CORES
#cmake3 --build . --config RelWithDebInfo --target ext_qt -- -j$CPU_CORES
cmake3 --build . --config RelWithDebInfo --target ext_exiv2 -- -j$CPU_CORES
#necessary ?
#pulseaudio-libs
# qjsonparser, used to add metadata to the plugins needs to work in a en_US.UTF-8 environment. That's
# not always set correctly in CentOS 6.7
export LC_ALL=en_US.UTF-8
......@@ -259,6 +271,49 @@ EXTERNAL_CMAKE="${external_options[2]}"
EXTERNAL_CONFIGURE="${external_options[3]}"
build_external $EXTERNAL
#libsndfile
cd /external
if ( test -d /external/libsndfile-1.0.28 )
then
echo "libsndfile already downloaded"
else
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
tar -xf libsndfile-1.0.28.tar.gz
fi
cd libsndfile-1.0.28
./configure --prefix=$WLD
make -j5
make install
#libsamplerate
cd /external
if ( test -d /external/libsamplerate-0.1.9 )
then
echo "libsamplerate already downloaded"
else
wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
tar -xf libsamplerate-0.1.9.tar.gz
fi
cd libsamplerate-0.1.9
./configure --prefix=$WLD
make -j5
make install
#alsa-lib
cd /external
if ( test -d /external/alsa-lib-1.1.5 )
then
echo "alsa-lib already downloaded"
else
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.5.tar.bz2
tar -xf alsa-lib-1.1.5.tar.bz2
fi
cd alsa-lib-1.1.5
./configure --prefix=$WLD
make -j5
make install
#sdl
cd /external
if ( test -d /external/SDL2-2.0.7 )
......@@ -269,7 +324,7 @@ else
tar -xf SDL2-2.0.7.tar.gz
fi
cd /external/SDL2-2.0.7
./configure --prefix=$WLD
./configure --prefix=$WLD --with-alsa-prefix=/app/usr/lib --with-alsa-inc-prefix=/app/usr/include/
make
make install
......
......@@ -11,9 +11,6 @@ grep -r "CentOS release 6" /etc/redhat-release || exit 1
. /opt/rh/devtoolset-3/enable
#necessary ?
#pulseaudio-libs
QTVERSION=5.9.1
QVERSION_SHORT=5.9
QTDIR=/usr/local/Qt-${QTVERSION}/
......@@ -134,6 +131,21 @@ make -j5
make install
#alsa-lib
cd /external
if ( test -d /external/alsa-lib-1.1.5 )
then
echo "alsa-lib already downloaded"
else
wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.1.5.tar.bz2
tar -xf alsa-lib-1.1.5.tar.bz2
fi
cd alsa-lib-1.1.5
./configure --prefix=$WLD
make -j5
make install
#libx264
cd /external
if ( test -d /external/x264 )
......
......@@ -16,9 +16,6 @@ rm -f functions.sh
. /opt/rh/devtoolset-3/enable
#necessary ?
#pulseaudio-libs
QTVERSION=5.9.2
QVERSION_SHORT=5.9
QTDIR=/usr/local/Qt-${QTVERSION}/
......@@ -54,6 +51,22 @@ export LD_LIBRARY_PATH=/usr/lib64/:/usr/lib:/app/usr/lib:$QTDIR/lib/:/opt/python
#ln -sf /usr/share/pkgconfig /usr/lib/pkgconfig
#update ruby
yum -y remove ruby ruby-devel
if ( test -d /external/ruby-2.1.2 )
then
echo "RUBY already cloned"
else
cd /external
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz
tar xvfvz ruby-2.1.2.tar.gz
fi
cd /external/ruby-2.1.2
./configure
make
make install
gem update --system
# Get project
if [ ! -d /kdenlive ] ; then
git clone --depth 1 http://anongit.kde.org/kdenlive.git /kdenlive
......@@ -182,7 +195,7 @@ if [ $# -eq 0 ]; then
git pull
git reset --hard
git pull --rebase
# git checkout d351ac1
git checkout master
cd ..
fi
else
......@@ -200,7 +213,7 @@ index e501888..55f0307 100755
@@ -19,7 +19,8 @@ then
exit 0
fi
- echo > config.mak
+ echo "CFLAGS += $(pkg-config --cflags vidstab)" > config.mak
+ echo "LDFLAGS += $(pkg-config --libs vidstab)" >> config.mak
......@@ -219,12 +232,19 @@ make install
# Build kdenlive
mkdir -p /kdenlive_build
mkdir -p /kdenlive_build/po
if [ ! -d /kdenlive/po ] ; then
ln -s /kdenlive_build/po /kdenlive/po
fi
cd /kdenlive_build
cmake3 ../kdenlive \
-DCMAKE_INSTALL_PREFIX:PATH=/app/usr/ \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DPACKAGERS_BUILD=1 \
-DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON \
-DKDE_L10N_AUTO_TRANSLATIONS:BOOL=ON \
-DBUILD_TESTS=FALSE
make -j8 install
......
......@@ -277,7 +277,7 @@ export MLT_ROOT_DIR=\$DIR/usr/
export FREI0R_PATH=\$DIR/usr/lib/frei0r-1
export MLT_PROFILES_PATH=\$DIR/usr/share/mlt/profiles/
export MLT_PRESETS_PATH=\$DIR/usr/share/mlt/presets/
export SDL_AUDIODRIVER=alsa
export SDL_AUDIODRIVER=pulseaudio
export XDG_CURRENT_DESKTOP=
export APPIMAGE_STARTUP_QML2_IMPORT_PATH=\$QML2_IMPORT_PATH
......@@ -328,6 +328,15 @@ rm -Rf $APP.AppDir/usr/share/kservices5/useragentstrings/ || true
rm -Rf $APP.AppDir/usr/share/man/ || true
rm -Rf $APP.AppDir/usr/bin/ffserver || true
rm -Rf $APP.AppDir/usr/bin/gtk-demo || true
rm -Rf $APP.AppDir/usr/bin/yasm || true
rm -Rf $APP.AppDir/usr/bin/ytasm || true
rm -Rf $APP.AppDir/usr/bin/x264 || true
rm -Rf $APP.AppDir/usr/bin/x265 || true
rm -Rf $APP.AppDir/usr/bin/vsyasm || true
rm -Rf $APP.AppDir/usr/bin/vpxdec || true
rm -Rf $APP.AppDir/usr/bin/vpxenc || true
rm -Rf $APP.AppDir/usr/bin/meinproc5 || true
rm -Rf $APP.AppDir/usr/bin/desktoptojson || true
rm -Rf $APP.AppDir/usr/lib/kconf_update_bin/ || true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment