forked from nobody9/openpliPC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_libs.sh
executable file
·143 lines (130 loc) · 3.43 KB
/
build_libs.sh
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/bin/bash
#To build enigma2 on Ubuntu 10.xx and 11.xx (32/64bit)
#Install these packages:
#
#
echo "-----------------------------------------"
echo "*** INSTALL REQUIRED PACKAGES ***"
echo "-----------------------------------------"
REQPKG="autoconf automake build-essential debhelper gettext subversion mercurial git autopoint \
libdvdnav-dev libfreetype6-dev libfribidi-dev \
libgif-dev libjpeg62-dev libpng12-dev \
libsdl1.2-dev libsigc++-1.2-dev \
libtool libxml2-dev libxslt1-dev python-dev swig libssl-dev libssl0.9.8 \
libvdpau-dev vdpau-va-driver \
libcdio-dev libvcdinfo-dev \
libavcodec-dev libpostproc-dev libnl2-dev \
python-setuptools \
"
for p in $REQPKG; do
echo -n ">>> Checking \"$p\" : "
dpkg -s $p >/dev/null
if [ "$?" -eq "0" ]; then
echo "package is installed, skip it"
else
echo "package NOT present, installing it"
sudo apt-get -y install $p
fi
done
cd libs
#Build and install libdvbsi++:
PKG="libdvbsi++"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
git clone git://git.opendreambox.org/git/obi/$PKG.git
cd $PKG
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i $PKG*.deb
#Build and install libxmlccwrap:
PKG="libxmlccwrap"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
git clone git://git.opendreambox.org/git/obi/$PKG.git
cd $PKG
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i $PKG*.deb
#Build and install libdreamdvd:
PKG="libdreamdvd"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
git clone git://schwerkraft.elitedvb.net/libdreamdvd/$PKG.git
cd $PKG
dpkg-buildpackage -uc -us
cd ..
sudo dpkg -i $PKG*.deb
#Build and install libdvbcsa:
PKG="libdvbcsa"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
svn co svn://svn.videolan.org/$PKG/trunk $PKG
cd $PKG
autoreconf -i
./configure --prefix=/usr --enable-sse2
make
sudo make install
cd ..
#Build and install libbluray:
PKG="libbluray"
LIB_BLURAY_REF="6d88105783fa3a83963178d31f624717334ca9e0"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
git clone git://git.videolan.org/libbluray.git
cd $PKG
git checkout $LIB_BLURAY_REF
autoreconf -vif
./configure --prefix=/usr
make
sudo make install
cd ..
#Build and install pythonwifi:
PKG="pythonwifi"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
rm -f $PKG*
fi
git clone git://git.berlios.de/$PKG
cd $PKG
sudo python setup.py install
cd ..
#Build dvbsoftwareca kernel module:
#cd dvbsoftwareca
#make # You must have installed dvb-core (for example from s2-liplianin).
#insmod dvbsoftwareca.ko # It will create ca0 device for adapter0
cd ..
echo "*********************<END>*********************"