@@ -5,30 +5,39 @@ cd source_code
5
5
wget -q -O sox-14.4.2.tar.bz2 " http://downloads.sourceforge.net/project/sox/sox/14.4.2/sox-14.4.2.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fsox%2Ffiles%2Fsox%2F14.4.2%2F&ts=1416316415&use_mirror=heanet"
6
6
wget -q -O lame-3.99.5.tar.gz " http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Flame%2Ffiles%2Flame%2F3.99%2F&ts=1416316457&use_mirror=kent"
7
7
wget -q -O flac-1.3.2.tar.xz " https://superb-dca2.dl.sourceforge.net/project/flac/flac-src/flac-1.3.2.tar.xz"
8
+ wget -q -O libmad-0.15.1b.tar.gz " https://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz"
8
9
9
10
# unpack the dependencies
10
11
tar xfp sox-14.4.2.tar.bz2
11
12
tar xfp lame-3.99.5.tar.gz
12
13
tar xfp flac-1.3.2.tar.xz
14
+ tar xfp libmad-0.15.1b.tar.gz
13
15
14
16
# build lame, statically
15
17
pushd lame-3.99.5
16
18
./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/third_party/lame" CFLAGS=-fPIC CXXFLAGS=-fPIC --with-pic --disable-debug --disable-dependency-tracking --enable-nasm
17
- make -s && make install
19
+ make -s -j && make install
18
20
popd
19
21
20
22
# build flac, statically
21
23
pushd flac-1.3.2
22
24
./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/third_party/flac" CFLAGS=-fPIC CXXFLAGS=-fPIC \
23
- --with-pic --disable-debug --disable-dependency-tracking
24
- make -s && make install
25
+ --with-pic --disable-debug --disable-dependency-tracking
26
+ make -s -j && make install
27
+ popd
28
+
29
+ # build mad, statically
30
+ pushd libmad-0.15.1b
31
+ ./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/third_party/mad" CFLAGS=-fPIC CXXFLAGS=-fPIC \
32
+ --with-pic --disable-debug --disable-dependency-tracking
33
+ make -s -j && make install
25
34
popd
26
35
27
36
# build sox, statically
28
37
pushd sox-14.4.2
29
38
./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/third_party/sox" \
30
- LDFLAGS=" -L$PREFIX /audio/third_party/lame/lib -L$PREFIX /audio/third_party/flac/lib" \
31
- CPPFLAGS=" -I$PREFIX /audio/third_party/lame/include -I$PREFIX /audio/third_party/flac/include" \
32
- --with-lame --with-flac --without-oggvorbis --without-oss --without-sndfile CFLAGS=-fPIC CXXFLAGS=-fPIC --with-pic --disable-debug --disable-dependency-tracking
33
- make -s && make install
39
+ LDFLAGS=" -L$PREFIX /audio/third_party/lame/lib -L$PREFIX /audio/third_party/flac/lib -L $PREFIX /audio/third_party/mad/lib " \
40
+ CPPFLAGS=" -I$PREFIX /audio/third_party/lame/include -I$PREFIX /audio/third_party/flac/include -I $PREFIX /audio/third_party/mad/include " \
41
+ --with-lame --with-flac --with-mad -- without-oggvorbis --without-oss --without-sndfile CFLAGS=-fPIC CXXFLAGS=-fPIC --with-pic --disable-debug --disable-dependency-tracking
42
+ make -s -j && make install
34
43
popd
0 commit comments