summaryrefslogtreecommitdiffstats
path: root/pts/test-resources/encode-ogg/install.sh
blob: 7ca498390b185a1817f319b57f9ba7fd15ac3cde (plain)
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
#!/bin/sh

THIS_DIR=$(pwd)
mkdir $THIS_DIR/vorbis

tar -xvf libogg-1.1.3.tar.gz
tar -xvf libvorbis-1.2.0.tar.gz
tar -xvf vorbis-tools-1.2.0.tar.gz

cd libogg-1.1.3/
./configure --prefix=$THIS_DIR/vorbis
make -j $NUM_CPU_JOBS
make install
cd ..
rm -rf libogg-1.1.3/

cd libvorbis-1.2.0/
./configure --prefix=$THIS_DIR/vorbis
make -j $NUM_CPU_JOBS
make install
cd ..
rm -rf libvorbis-1.2.0/

cd vorbis-tools-1.2.0/
./configure --prefix=$THIS_DIR/vorbis
make -j $NUM_CPU_JOBS
make install
cd ..
rm -rf vorbis-tools-1.2.0/

echo "#!/bin/sh
\$TIMER_START
./vorbis/bin/oggenc \$TEST_EXTENDS/pts-trondheim.wav -q 10 -o /dev/null > \$LOG_FILE 2>&1
\$TIMER_STOP
cat \$LOG_FILE" > oggenc
chmod +x oggenc