flatten 20260225
This commit is contained in:
44
resources/packages/oggvorbis/prepare
Executable file
44
resources/packages/oggvorbis/prepare
Executable file
@@ -0,0 +1,44 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user