Commit a083088ac3121e013e4fab6b6d5f398fe1624b32
1 parent
f26b2ff8
Exists in
master
and in
1 other branch
Atualização do Script de instalação
Showing
1 changed file
with
27 additions
and
57 deletions
Show diff stats
core_install.sh
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | -#|================================================================| | |
4 | -#| CREATE DEFAULT DIRECTORY | | |
5 | -#|================================================================| | |
3 | +echo -e "\n## Iniciando a instalação do vlibras-core ##\n" | |
6 | 4 | |
7 | 5 | DIR=$HOME/vlibras-libs |
6 | + | |
8 | 7 | if [ ! -d "$DIR" ] ; then |
9 | -mkdir $DIR | |
8 | + mkdir $DIR | |
10 | 9 | fi |
11 | 10 | |
12 | -cd $DIR | |
13 | - | |
14 | - | |
15 | -#|================================================================| | |
16 | -#| DOWNLOAD DEPENDENCIES | | |
17 | -#|================================================================| | |
18 | - | |
19 | 11 | #garanto que não tem nenhuma versão prévia instalada |
20 | 12 | sudo apt-get remove -y ffmpeg x264 libx264-dev yasm |
21 | 13 | |
14 | +echo -e "\n## Fazendo download das dependências...\n" | |
15 | + | |
22 | 16 | sudo apt-get update |
23 | 17 | sudo apt-get install -y aptitude |
24 | -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 | |
18 | +sudo aptitude install -y build-essential libvpx-dev sox libfaac-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev automake autoconf libmad0-dev libgpm-dev libavcodec-dev libavformat-dev libdirectfb-extra libtool libavcodec-extra-52 libavformat-extra-52 libdirectfb-bin libdirectfb-dev libgtk+2.0-directfb0 libgtk+2.0-directfb-dev | |
25 | 19 | |
26 | -#|================================================================| | |
27 | -#| DOWNLOAD DEPENDENCIES | | |
28 | -#|================================================================| | |
20 | +cd ~/vlibras-libs | |
29 | 21 | |
30 | 22 | wget http://150.165.204.30:8080/core/linux/yasm-1.2.0.tar.gz |
31 | 23 | wget http://150.165.204.30:8080/core/linux/jlibcpp-1.5.0.tar.gz |
... | ... | @@ -33,35 +25,24 @@ wget http://150.165.204.30:8080/core/linux/julius-4.3.1.tar.gz |
33 | 25 | wget http://150.165.204.30:8080/core/linux/lavid-lib.tar.gz |
34 | 26 | wget http://150.165.204.30:8080/core/linux/ffmpeg-vlibras.tar.gz |
35 | 27 | |
28 | +echo -e "\n## Extraindo...\n" | |
36 | 29 | |
37 | -#|================================================================| | |
38 | -#| EXTRACT DEPENDENCIES | | |
39 | -#|================================================================| | |
30 | +tar -xf ffmpeg-vlibras.tar.gz | |
31 | +tar -xf yasm-1.2.0.tar.gz | |
32 | +tar -xf jlibcpp-1.5.0.tar.gz | |
33 | +tar -xf julius-4.3.1.tar.gz | |
34 | +tar -xf lavid-lib.tar.gz | |
40 | 35 | |
41 | -tar -xf ffmpeg-vlibras.tar.gz -C $DIR | |
42 | -tar -xf yasm-1.2.0.tar.gz -C $DIR | |
43 | -tar -xf jlibcpp-1.5.0.tar.gz -C $DIR | |
44 | -tar -xf julius-4.3.1.tar.gz -C $DIR | |
45 | -tar -xf lavid-lib.tar.gz -C $DIR | |
36 | +echo -e "\n## Instalando dependências...\n" | |
46 | 37 | |
47 | -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 | |
48 | - | |
49 | - | |
50 | -#|================================================================| | |
51 | -#| YASM | | |
52 | -#|================================================================| | |
53 | - | |
54 | -cd $DIR/yasm-1.2.0 | |
38 | +echo -e "\n## Instalando Yasm...\n" | |
39 | +cd yasm-1.2.0 | |
55 | 40 | chmod +x configure |
56 | 41 | ./configure |
57 | 42 | make |
58 | 43 | sudo make install |
59 | 44 | |
60 | - | |
61 | -#|================================================================| | |
62 | -#| X264 | | |
63 | -#|================================================================| | |
64 | - | |
45 | +echo -e "\n## Instalando x264...\n" | |
65 | 46 | cd .. |
66 | 47 | git clone --depth 1 git://git.videolan.org/x264 |
67 | 48 | cd x264 |
... | ... | @@ -71,46 +52,35 @@ make |
71 | 52 | sudo make install |
72 | 53 | sudo ldconfig |
73 | 54 | |
74 | - | |
75 | -#|================================================================| | |
76 | -#| FFMPEG | | |
77 | -#|================================================================| | |
78 | - | |
55 | +echo -e "\n## Instalando FFmpeg...\n" | |
79 | 56 | cd .. |
80 | 57 | cd ffmpeg |
81 | 58 | chmod +x configure |
82 | -./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 | |
59 | +./configure --enable-libvpx --enable-gpl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-pthreads --enable-hwaccels --enable-sram | |
83 | 60 | make |
84 | 61 | sudo make install |
85 | -hash x264 ffmpeg ffplay ffprobe | |
86 | - | |
87 | - | |
88 | -#|================================================================| | |
89 | -#| JLIBCPP | | |
90 | -#|================================================================| | |
62 | +hash x264 ffmpeg ffprobe | |
91 | 63 | |
64 | +echo -e "\n## Instalando jlibcpp...\n" | |
92 | 65 | cd .. |
93 | 66 | cd jlibcpp |
94 | 67 | make ENABLE_DIRECTFB=no |
95 | 68 | sudo make install |
96 | 69 | sudo ldconfig |
97 | 70 | |
98 | -#|================================================================| | |
99 | -#| JULIUS | | |
100 | -#|================================================================| | |
101 | - | |
71 | +echo -e "\n## Instalando Julius...\n" | |
102 | 72 | cd .. |
103 | 73 | cd julius-4.3.1 |
104 | 74 | ./configure |
105 | 75 | make |
106 | 76 | sudo make install |
107 | 77 | |
108 | - | |
109 | -#|================================================================| | |
110 | -#| LAVID LIB | | |
111 | -#|================================================================| | |
112 | - | |
78 | +echo -e "\n## Instalando Lavidlib...\n" | |
113 | 79 | cd .. |
114 | 80 | cd lavid-lib |
115 | 81 | make |
116 | 82 | sudo make install |
83 | + | |
84 | +cd .. | |
85 | +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 | |
86 | +echo -e "\n## Instalação finalizada! ##\n" | |
117 | 87 | \ No newline at end of file | ... | ... |