-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild_vdpauinfotest.sh
executable file
·60 lines (48 loc) · 1.1 KB
/
build_vdpauinfotest.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
#!/bin/bash
#To build vdpauinfo and qvdpautest
echo "-----------------------------------------"
echo "*** INSTALL REQUIRED PACKAGES ***"
echo "-----------------------------------------"
REQPKG="autoconf automake build-essential \
qt4-dev-tools \
"
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
PKG="vdpauinfo-0.0.6"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
fi
tar xzf $PKG.tar.gz
cd $PKG
./autogen.sh
./configure
make
cd ..
PKG="qvdpautest-0.5.1"
echo "-----------------------------------------"
echo "Build and install $PKG"
echo "-----------------------------------------"
if [ -d $PKG ]; then
echo "Erasing older build dir"
rm -Rf $PKG
fi
tar xzf qvdpautest-0.5.1.tar.gz
cd $PKG
qmake
make
cd ..
cd ..
echo "*********************<END>*********************"