Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Linux pve 4.4.21-1-pve Build
- bDIR=/usr/local
- mkdir -p ${bDIR}/src/mkvtoolnix; cd ${bDIR}/src/mkvtoolnix
- apt-get -y install build-essential autoconf git pkg-config #libcurl4-openssl-dev
- apt-get -y --no-install-recommends install ruby
- export PKG_CONFIG_PATH=${bDIR}/lib/pkgconfig
- export LINGUAS=en
- git clone https://github.com/Matroska-Org/libebml.git libebml-git
- pushd libebml-git
- libtoolize ; autoreconf -vi
- ./configure --prefix=${bDIR} --disable-shared --enable-static
- make -j`nproc` && make install
- popd
- git clone https://github.com/Matroska-Org/libmatroska.git libmatroska-git
- pushd libmatroska-git
- libtoolize ; autoreconf -vi
- ./configure --prefix=${bDIR} --disable-shared --enable-static
- make -j`nproc` && make install
- popd
- curl -sL http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.xz | tar -Jxf -
- pushd libogg-*
- ./configure --prefix=${bDIR} --disable-shared --enable-static
- make -j`nproc` && make install
- popd
- curl -sL http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.xz | tar -Jxf -
- pushd libvorbis-*
- ./configure --prefix=${bDIR} --disable-shared --enable-static
- make -j`nproc` && make install
- popd
- curl -sL "http://prdownloads.sourceforge.net/libpng/zlib-1.2.8.tar.xz?download" | tar -Jxf -
- pushd zlib-*
- ./configure --static --prefix=${bDIR}
- make -j`nproc` && make install
- popd
- curl -sL ftp://ftp.astron.com/pub/file/file-5.27.tar.gz | tar zxf -
- pushd file-*
- ./configure --prefix=${bDIR} --disable-shared --enable-static --disable-elf
- make -j`nproc` && make install
- popd
- curl http://downloads.xiph.org/releases/flac/flac-1.3.1.tar.xz | tar -Jxf -
- pushd flac-*
- ./configure --disable-doxygen-docs --prefix=${bDIR} --disable-shared --enable-static
- make -j`nproc` && make install
- popd
- curl -sL "http://downloads.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.bz2" | tar -jxf -
- pushd boost_*
- ./bootstrap.sh --prefix=${bDIR} --libdir=${bDIR}/lib --with-libraries=filesystem,regex,date_time,system #,locale,thread
- ./b2 -j`nproc` --reconfigure link=static --prefix=${bDIR} install
- popd
- curl -sL "https://www.bunkus.org/videotools/mkvtoolnix/sources/mkvtoolnix-5.8.0.tar.bz2" | tar -jxf -
- pushd mkvtoolnix-*
- ./autogen.sh
- ./configure --prefix=${bDIR} \
- --with-extra-libs=${bDIR}/lib \
- --with-extra-includes=${bDIR}/include \
- --with-boost-libdir=${bDIR}/lib \
- --without-curl --disable-debug
- # --disable-gui --disable-wxwidgets --without-gettext --disable-lzo --disable-bz2 --without-flac
- ./drake -j`nproc`
- ./drake install
- popd
- # mkvmergeGUI
- ln -sfv ${bDIR}/share/applications/mkv* /usr/share/applications/
- BackuP () {
- pushd libebml-git ; make install ; popd ;
- pushd libmatroska-git ; make install ; popd ;
- pushd libogg-* ; make install ; popd ;
- pushd libvorbis-* ; make install ; popd ;
- pushd zlib-* ; make install ; popd ;
- pushd file-* ; make install ; popd ;
- pushd flac-* ; make install ; popd ;
- pushd boost_* ; ./b2 -j`nproc` --reconfigure link=static --prefix=${bDIR} install ; popd ;
- pushd mkvtoolnix-* ; ./drake install ; popd ;
- fltr='/(src/mkvtoolnix|mkinstalldirs |zh_..|eu|es|cs|de|nl|ja|ru|tr|uk|fr|it|lt|pl)/' ;
- find ${bDIR} -mmin -5 -type f | egrep -v "$fltr" | tar -cvzf "mkvtoolnix-5.8.0-`date +%s`.tar.gz" -T - ;
- }
- [ "$1" ] && BackuP
- # REMOTE
- # apt install libwxgtk2.8-dev
- # tar xzvpf mkvtoolnix-5.8.0-*.tar.gz -C /
- # ln -sfv ${bDIR}/share/applications/mkv* /usr/share/applications/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement