2013-09-23 20:08:16 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
FLAC_VERSION=1.2.1
|
|
|
|
VORBIS_VERSION=1.3.3
|
|
|
|
OGG_VERSION=1.3.1
|
|
|
|
|
|
|
|
FLAC=flac-$FLAC_VERSION
|
|
|
|
VORBIS=libvorbis-$VORBIS_VERSION
|
|
|
|
OGG=libogg-$OGG_VERSION
|
|
|
|
|
|
|
|
SNDFILE_VERSION=1.0.25
|
|
|
|
SNDFILE=libsndfile-$SNDFILE_VERSION
|
|
|
|
|
|
|
|
FREETYPE_VERSION=2.4.0
|
|
|
|
FREETYPE=freetype-$FREETYPE_VERSION
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
|
|
|
|
wget -nc -P src http://downloads.xiph.org/releases/flac/$FLAC.tar.gz
|
|
|
|
if [ ! -d "$PWD/tmp/$FLAC" ]
|
|
|
|
then
|
2015-04-01 10:08:23 +08:00
|
|
|
tar -C build -xf src/$FLAC.tar.gz
|
2013-09-23 20:08:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
wget -nc -P src http://downloads.xiph.org/releases/vorbis/$VORBIS.tar.gz
|
|
|
|
if [ ! -d "$PWD/tmp/$VORBIS" ]
|
|
|
|
then
|
2015-04-01 10:08:23 +08:00
|
|
|
tar -C build -xf src/$VORBIS.tar.gz
|
2013-09-23 20:08:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
wget -nc -P src http://downloads.xiph.org/releases/ogg/$OGG.tar.gz
|
|
|
|
if [ ! -d "$PWD/tmp/$OGG" ]
|
|
|
|
then
|
2015-04-01 10:08:23 +08:00
|
|
|
tar -C build -xf src/$OGG.tar.gz
|
2013-09-23 20:08:16 +08:00
|
|
|
fi
|
|
|
|
|
|
|
|
wget -nc -P src http://download.savannah.gnu.org/releases/freetype/$FREETYPE.tar.gz
|
|
|
|
if [ ! -d "$PWD/tmp/$FREETYPE" ]
|
|
|
|
then
|
2015-04-01 10:08:23 +08:00
|
|
|
tar -C build -xf src/$FREETYPE.tar.gz
|
2013-09-23 20:08:16 +08:00
|
|
|
fi
|