Commit 77505731be33bc6f248b08d0f078e34ef3e60a9d
1 parent
d7ae00b1
Exists in
master
and in
1 other branch
Adiciona script de instalação
Showing
1 changed file
with
116 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,116 @@ |
1 | +#!/bin/bash | |
2 | + | |
3 | +#|================================================================| | |
4 | +#| CREATE DEFAULT DIRECTORY | | |
5 | +#|================================================================| | |
6 | + | |
7 | +DIR=$HOME/vlibras-libs | |
8 | +if [ ! -d "$DIR" ] ; then | |
9 | +mkdir $DIR | |
10 | +fi | |
11 | + | |
12 | +cd DIR | |
13 | + | |
14 | + | |
15 | +#|================================================================| | |
16 | +#| DOWNLOAD DEPENDENCIES | | |
17 | +#|================================================================| | |
18 | + | |
19 | +#garanto que não tem nenhuma versão prévia instalada | |
20 | +sudo apt-get remove -y ffmpeg x264 libx264-dev yasm | |
21 | + | |
22 | +sudo apt-get update | |
23 | +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 | |
25 | + | |
26 | +#|================================================================| | |
27 | +#| DOWNLOAD DEPENDENCIES | | |
28 | +#|================================================================| | |
29 | + | |
30 | +wget http://150.165.204.30:8080/core/linux/yasm-1.2.0.tar.gz | |
31 | +wget http://150.165.204.30:8080/core/linux/jlibcpp-1.5.0.tar.gz | |
32 | +wget http://150.165.204.30:8080/core/linux/julius-4.3.1.tar.gz | |
33 | +wget http://150.165.204.30:8080/core/linux/lavid-lib.tar.gz | |
34 | +wget http://150.165.204.30:8080/core/linux/ffmpeg-vlibras.tar.gz | |
35 | + | |
36 | + | |
37 | +#|================================================================| | |
38 | +#| EXTRACT DEPENDENCIES | | |
39 | +#|================================================================| | |
40 | + | |
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 | |
46 | + | |
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 | |
55 | +chmod +x configure | |
56 | +./configure | |
57 | +make | |
58 | +sudo make install | |
59 | + | |
60 | + | |
61 | +#|================================================================| | |
62 | +#| X264 | | |
63 | +#|================================================================| | |
64 | + | |
65 | +cd .. | |
66 | +git clone --depth 1 git://git.videolan.org/x264 | |
67 | +cd x264 | |
68 | +chmod +x configure | |
69 | +./configure --enable-shared --enable-pic | |
70 | +make | |
71 | +sudo make install | |
72 | +sudo ldconfig | |
73 | + | |
74 | + | |
75 | +#|================================================================| | |
76 | +#| FFMPEG | | |
77 | +#|================================================================| | |
78 | + | |
79 | +cd .. | |
80 | +cd ffmpeg | |
81 | +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 | |
83 | +make | |
84 | +sudo make install | |
85 | +hash x264 ffmpeg ffplay ffprobe | |
86 | + | |
87 | + | |
88 | +#|================================================================| | |
89 | +#| JLIBCPP | | |
90 | +#|================================================================| | |
91 | + | |
92 | +cd .. | |
93 | +cd jlibcpp | |
94 | +make ENABLE_DIRECTFB=no | |
95 | +sudo make install | |
96 | +sudo ldconfig | |
97 | + | |
98 | +#|================================================================| | |
99 | +#| JULIUS | | |
100 | +#|================================================================| | |
101 | + | |
102 | +cd .. | |
103 | +cd julius-4.3.1 | |
104 | +./configure | |
105 | +make | |
106 | +sudo make install | |
107 | + | |
108 | + | |
109 | +#|================================================================| | |
110 | +#| LAVID LIB | | |
111 | +#|================================================================| | |
112 | + | |
113 | +cd .. | |
114 | +cd lavid-lib | |
115 | +make | |
116 | +sudo make install | |
0 | 117 | \ No newline at end of file | ... | ... |