forked from pyke369/sffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 2
/
debian-prereq
executable file
·53 lines (53 loc) · 1.31 KB
/
debian-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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
HD=`cd "${0%/*}" 2> /dev/null; echo $PWD`
#
arch1() {
case `uname -m` in
i386 | i486 | i586 | i686 )
echo i386
;;
x86_64 | x64 )
echo amd64
;;
* )
uname -m
;;
esac
return 0
}
#
[ -f .prereq_done ] && exit 0
apt-get update
[ $? -ne 0 ] && exit 1
apt-get -y install cmake git mercurial subversion
[ $? -ne 0 ] && exit 1
apt-get -y install libssl-dev
[ $? -ne 0 ] && exit 1
#yum -y install cmake
#[ $? -ne 0 ] && exit 1
# Official cmake is too old, compile from sources!
# (see cmake/buil_cmake)
apt-get -y install autoconf libtool pkg-config
[ $? -ne 0 ] && exit 1
apt-get -y install devscripts debhelper curl
[ $? -ne 0 ] && exit 1
#apt-get -y install doxygen
#[ $? -ne 0 ] && exit 1
apt-get -y install libxml2-dev libfreetype6-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libpixman-1-dev libxext-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libjpeg-dev libpng12-dev libtiff5-dev
[ $? -ne 0 ] && exit 1
apt-get -y install libusb-1.0-0-dev libncurses5-dev libgpm-dev
[ $? -ne 0 ] && exit 1
apt-get -y install openjdk-7-jdk ant
[ $? -ne 0 ] && exit 1
update-alternatives --set java /usr/lib/jvm/java-7-openjdk-`arch1`/jre/bin/java
[ $? -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