45 lines
958 B
Plaintext
Executable File
45 lines
958 B
Plaintext
Executable File
set -ex
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
mkdir -p sdk/include
|
|
|
|
LIB=oggvorbis
|
|
|
|
mkdir $LIB
|
|
pushd $LIB
|
|
|
|
rm -rf libogg*
|
|
wget http://downloads.xiph.org/releases/ogg/libogg-1.3.4.tar.gz
|
|
tar xf libogg-*
|
|
ln -s libogg-*/ libogg
|
|
|
|
patch libogg/include/ogg/os_types.h $DIR/os_types.h-patch
|
|
cp -av $DIR/config_types.h libogg/include/ogg/config_types.h
|
|
|
|
cp -av $DIR/Makefile-ogg.project libogg/Makefile.project
|
|
ln -s $DIR/../../Makefile-template libogg/Makefile
|
|
|
|
rm -rf libvorbis*
|
|
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.xz
|
|
tar xf libvorbis-*
|
|
ln -s libvorbis-*/ libvorbis
|
|
|
|
cp -av $DIR/Makefile-vorbis.project libvorbis/Makefile.project
|
|
ln -s $DIR/../../Makefile-template libvorbis/Makefile
|
|
|
|
pushd libogg
|
|
make
|
|
popd
|
|
|
|
pushd libvorbis
|
|
make
|
|
popd
|
|
|
|
popd
|
|
|
|
pushd sdk/include
|
|
ln -fs ../../oggvorbis/libogg/include/ogg ogg
|
|
ln -fs ../../oggvorbis/libvorbis/include/vorbis vorbis
|
|
popd
|
|
|