-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetuprepo.sh
More file actions
executable file
·51 lines (48 loc) · 1.74 KB
/
Copy pathsetuprepo.sh
File metadata and controls
executable file
·51 lines (48 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
echo "Clone libsrt from public Github repository"
git clone https://github.com/Haivision/srt.git ./cbsrt
pushd cbsrt
echo "Configuring libsrt"
git checkout tags/v1.5.4 -b v1.5.4
./configure --prefix=/usr
make -j8
if [ -f "libsrt.a" ]; then
echo "srthub: libsrt.a built properly"
else
echo "srthub: libsrt.a did not build properly - please check manually, aborting installation!"
exit
fi
popd
echo "Clone libcurl"
git clone https://github.com/cannonbeach/curl.git ./cblibcurl
pushd cblibcurl
./buildconf
if [ -f "configure" ]; then
echo "srthub: curl configure script generated"
else
echo "srthub: curl configure script not generated - please check manually, aborting installation!"
exit
fi
echo "Configuring curl for compilation"
./configure --prefix=/usr --enable-static --enable-pthreads --without-ssl --without-librtmp --without-libidn2 --without-nghttp2 --without-brotli
make -j8
if [ -f "./lib/.libs/libcurl.a" ]; then
echo "srthub: libcurl.a was compiled correctly"
else
echo "srthub: libcurl.a was not compiled correctly - please check manually, aborting installation!"
exit
fi
popd
echo "Clone of FFmpeg libraries (used for decoding audio/video preview)"
git clone https://git.ffmpeg.org/ffmpeg.git ./cbffmpeg
pushd cbffmpeg
git checkout -b release6.1 remotes/origin/release/6.1
./configure --prefix=/usr --disable-encoders --disable-iconv --disable-v4l2-m2m --disable-muxers --disable-vaapi --disable-vdpau --disable-videotoolbox --disable-muxers --disable-avdevice --enable-encoder=mjpeg
make -j8
if [ -f "./libavcodec/libavcodec.a" ]; then
echo "srthub: libavcodec.a was compiled correctly"
else
echo "srthub: libavcodec.a was not compiled correctly - please check manually, aborting installation!"
exit
fi
popd