diff --git a/core_install.sh b/core_install.sh new file mode 100755 index 0000000..65fb17d --- /dev/null +++ b/core_install.sh @@ -0,0 +1,116 @@ +#!/bin/bash + +#|================================================================| +#| CREATE DEFAULT DIRECTORY | +#|================================================================| + +DIR=$HOME/vlibras-libs +if [ ! -d "$DIR" ] ; then +mkdir $DIR +fi + +cd DIR + + +#|================================================================| +#| DOWNLOAD DEPENDENCIES | +#|================================================================| + +#garanto que não tem nenhuma versão prévia instalada +sudo apt-get remove -y ffmpeg x264 libx264-dev yasm + +sudo apt-get update +sudo apt-get install -y aptitude +sudo aptitude install -y build-essential libvpx-dev git sox checkinstall texi2html libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev automake subversion patch libssl-dev libcppunit-dev autoconf libcurl4-openssl-dev libreadline6-dev libexpat1-dev libxerces-c2-dev libmad0-dev libtiff4-dev libkrb5-dev libgpm-dev x11proto-xext-dev libxext-dev libpng12-dev libjpeg62-dev libfreetype6-dev libavcodec-dev libavformat-dev libxine-dev libxine1 libxine1-ffmpeg libdirectfb-extra libtool liblua5.1-0-dev libzip-dev libzip1 libavcodec-extra-52 libavformat-extra-52 libvorbis-dev libdirectfb-bin libdirectfb-dev libgtk+2.0-directfb0 libgtk+2.0-directfb-dev + +#|================================================================| +#| DOWNLOAD DEPENDENCIES | +#|================================================================| + +wget http://150.165.204.30:8080/core/linux/yasm-1.2.0.tar.gz +wget http://150.165.204.30:8080/core/linux/jlibcpp-1.5.0.tar.gz +wget http://150.165.204.30:8080/core/linux/julius-4.3.1.tar.gz +wget http://150.165.204.30:8080/core/linux/lavid-lib.tar.gz +wget http://150.165.204.30:8080/core/linux/ffmpeg-vlibras.tar.gz + + +#|================================================================| +#| EXTRACT DEPENDENCIES | +#|================================================================| + +tar -xf ffmpeg-vlibras.tar.gz -C DIR +tar -xf yasm-1.2.0.tar.gz -C DIR +tar -xf jlibcpp-1.5.0.tar.gz -C DIR +tar -xf julius-4.3.1.tar.gz -C DIR +tar -xf lavid-lib.tar.gz -C DIR + +rm ffmpeg-vlibras.tar.gz yasm-1.2.0.tar.gz jlibcpp-1.5.0.tar.gz julius-4.3.1.tar.gz lavid-lib.tar.gz + + +#|================================================================| +#| YASM | +#|================================================================| + +cd DIR/yasm-1.2.0 +chmod +x configure +./configure +make +sudo make install + + +#|================================================================| +#| X264 | +#|================================================================| + +cd .. +git clone --depth 1 git://git.videolan.org/x264 +cd x264 +chmod +x configure +./configure --enable-shared --enable-pic +make +sudo make install +sudo ldconfig + + +#|================================================================| +#| FFMPEG | +#|================================================================| + +cd .. +cd ffmpeg +chmod +x configure +./configure --enable-libvpx --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-pthreads --enable-hwaccels --enable-sram +make +sudo make install +hash x264 ffmpeg ffplay ffprobe + + +#|================================================================| +#| JLIBCPP | +#|================================================================| + +cd .. +cd jlibcpp +make ENABLE_DIRECTFB=no +sudo make install +sudo ldconfig + +#|================================================================| +#| JULIUS | +#|================================================================| + +cd .. +cd julius-4.3.1 +./configure +make +sudo make install + + +#|================================================================| +#| LAVID LIB | +#|================================================================| + +cd .. +cd lavid-lib +make +sudo make install \ No newline at end of file -- libgit2 0.21.2