11rm -rf source_code
22mkdir source_code
3- cd source_code
3+ pushd source_code
44
55wget -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"
66wget -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
1515
1616# build lame, statically
1717pushd 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
1919make -s -j && make install
2020popd
2121
2222# build flac, statically
2323pushd 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 \
2525 --with-pic --disable-debug --disable-dependency-tracking
2626make -s -j && make install
2727popd
3030pushd libmad-0.15.1b
3131# See https://stackoverflow.com/a/12864879/23845
3232sed -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 \
3434 --with-pic --disable-debug --disable-dependency-tracking
3535make -s -j && make install
3636popd
4040# finds png and enables it. We don't want it; we'd need to package
4141# it statically if we do.
4242pushd 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" \
4646 --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
4747make -s -j && make install
4848popd
49+
50+ popd
0 commit comments