forked from pyke369/sffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
centos-prereq
executable file
·32 lines (32 loc) · 962 Bytes
/
centos-prereq
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
#!/bin/bash
HD=`cd "${0%/*}" 2> /dev/null; echo $PWD`
#
[ -f .prereq_done ] && exit 0
yum -y install cmake git mercurial
[ $? -ne 0 ] && exit 1
#yum -y install cmake
#[ $? -ne 0 ] && exit 1
# Official cmake is too old, compile from sources!
# (see cmake/build_cmake)
yum -y install autoconf libtool pkgconfig
[ $? -ne 0 ] && exit 1
yum -y install docbook-utils-pdf texi2html texinfo
[ $? -ne 0 ] && exit 1
yum -y install glibc-static glib2-static
[ $? -ne 0 ] && exit 1
yum -y install zlib-static libxml2-static openssl-static
[ $? -ne 0 ] && exit 1
yum -y install libpng-static libjpeg-turbo-static libtiff-devel libtiff-static
[ $? -ne 0 ] && exit 1
yum -y install lua-devel lua-static
[ $? -ne 0 ] && exit 1
yum -y install libusb1-devel libusb1-static
[ $? -ne 0 ] && exit 1
yum -y install ncurses-static gpm-static
[ $? -ne 0 ] && exit 1
if [ ! -s /usr/include/linux/media.h ]; then
cp "$HD/media.h" /usr/include/linux
[ $? -ne 0 ] && exit 1
fi
#
exit 0