Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Torchaudio
Commits
476a7bdf
Commit
476a7bdf
authored
Jul 29, 2019
by
Edward Z. Yang
Committed by
Soumith Chintala
Jul 29, 2019
Browse files
Build mad as part of dependency build process of packaging. (#179)
Signed-off-by:
Edward Z. Yang
<
ezyang@fb.com
>
parent
9bc3cedb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
build_tools/packaging/wheel/build_from_source.sh
build_tools/packaging/wheel/build_from_source.sh
+16
-7
No files found.
build_tools/packaging/wheel/build_from_source.sh
View file @
476a7bdf
...
...
@@ -5,30 +5,39 @@ cd source_code
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"
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"
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"
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"
# unpack the dependencies
tar
xfp sox-14.4.2.tar.bz2
tar
xfp lame-3.99.5.tar.gz
tar
xfp flac-1.3.2.tar.xz
tar
xfp libmad-0.15.1b.tar.gz
# build lame, statically
pushd
lame-3.99.5
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/audio/third_party/lame"
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
--with-pic
--disable-debug
--disable-dependency-tracking
--enable-nasm
make
-s
&&
make
install
make
-s
-j
&&
make
install
popd
# build flac, statically
pushd
flac-1.3.2
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/audio/third_party/flac"
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
\
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
&&
make
install
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
-j
&&
make
install
popd
# build mad, statically
pushd
libmad-0.15.1b
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/audio/third_party/mad"
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
\
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
-j
&&
make
install
popd
# build sox, statically
pushd
sox-14.4.2
./configure
--disable-shared
--enable-static
--prefix
=
"
$PREFIX
/audio/third_party/sox"
\
LDFLAGS
=
"-L
$PREFIX
/audio/third_party/lame/lib -L
$PREFIX
/audio/third_party/flac/lib"
\
CPPFLAGS
=
"-I
$PREFIX
/audio/third_party/lame/include -I
$PREFIX
/audio/third_party/flac/include"
\
--with-lame
--with-flac
--without-oggvorbis
--without-oss
--without-sndfile
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
&&
make
install
LDFLAGS
=
"-L
$PREFIX
/audio/third_party/lame/lib -L
$PREFIX
/audio/third_party/flac/lib
-L
$PREFIX
/audio/third_party/mad/lib
"
\
CPPFLAGS
=
"-I
$PREFIX
/audio/third_party/lame/include -I
$PREFIX
/audio/third_party/flac/include
-I
$PREFIX
/audio/third_party/mad/include
"
\
--with-lame
--with-flac
--with-mad
--without-oggvorbis
--without-oss
--without-sndfile
CFLAGS
=
-fPIC
CXXFLAGS
=
-fPIC
--with-pic
--disable-debug
--disable-dependency-tracking
make
-s
-j
&&
make
install
popd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment