1
1
rm -rf source_code
2
2
mkdir source_code
3
- cd source_code
3
+ pushd source_code
4
4
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"
@@ -15,13 +15,13 @@ tar xfp libmad-0.15.1b.tar.gz
15
15
16
16
# build lame, statically
17
17
pushd lame-3.99.5
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
18
+ ./configure --disable-shared --enable-static --prefix=" $PREFIX /third_party/lame" CFLAGS=-fPIC CXXFLAGS=-fPIC --with-pic --disable-debug --disable-dependency-tracking --enable-nasm
19
19
make -s -j && make install
20
20
popd
21
21
22
22
# build flac, statically
23
23
pushd flac-1.3.2
24
- ./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/ third_party/flac" CFLAGS=-fPIC CXXFLAGS=-fPIC \
24
+ ./configure --disable-shared --enable-static --prefix=" $PREFIX /third_party/flac" CFLAGS=-fPIC CXXFLAGS=-fPIC \
25
25
--with-pic --disable-debug --disable-dependency-tracking
26
26
make -s -j && make install
27
27
popd
30
30
pushd libmad-0.15.1b
31
31
# See https://stackoverflow.com/a/12864879/23845
32
32
sed -i.bak ' s/-march=i486//' configure
33
- ./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/ third_party/mad" CFLAGS=-fPIC CXXFLAGS=-fPIC \
33
+ ./configure --disable-shared --enable-static --prefix=" $PREFIX /third_party/mad" CFLAGS=-fPIC CXXFLAGS=-fPIC \
34
34
--with-pic --disable-debug --disable-dependency-tracking
35
35
make -s -j && make install
36
36
popd
40
40
# finds png and enables it. We don't want it; we'd need to package
41
41
# it statically if we do.
42
42
pushd sox-14.4.2
43
- ./configure --disable-shared --enable-static --prefix=" $PREFIX /audio/ third_party/sox" \
44
- LDFLAGS=" -L$PREFIX /audio/ third_party/lame/lib -L$PREFIX /audio/ third_party/flac/lib -L$PREFIX /audio /third_party/mad/lib" \
45
- CPPFLAGS=" -I$PREFIX /audio/ third_party/lame/include -I$PREFIX /audio/ third_party/flac/include -I$PREFIX /audio /third_party/mad/include" \
43
+ ./configure --disable-shared --enable-static --prefix=" $PREFIX /third_party/sox" \
44
+ LDFLAGS=" -L$PREFIX /third_party/lame/lib -L$PREFIX /third_party/flac/lib -L$PREFIX /third_party/mad/lib" \
45
+ CPPFLAGS=" -I$PREFIX /third_party/lame/include -I$PREFIX /third_party/flac/include -I$PREFIX /third_party/mad/include" \
46
46
--with-lame --with-flac --with-mad --without-png --without-oggvorbis --without-oss --without-sndfile CFLAGS=-fPIC CXXFLAGS=-fPIC --with-pic --disable-debug --disable-dependency-tracking
47
47
make -s -j && make install
48
48
popd
49
+
50
+ popd
0 commit comments