flatten 20260225
This commit is contained in:
14
resources/packages/oggvorbis/Makefile-ogg.project
Executable file
14
resources/packages/oggvorbis/Makefile-ogg.project
Executable file
@@ -0,0 +1,14 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
|
||||
PROJECTS := src
|
||||
INCPATH := -I include
|
||||
|
||||
LIBFILE := libogg.a
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
_FLAGS := $(_FLAGS)
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
18
resources/packages/oggvorbis/Makefile-vorbis.project
Executable file
18
resources/packages/oggvorbis/Makefile-vorbis.project
Executable file
@@ -0,0 +1,18 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
|
||||
PROJECTS := lib lib/modes lib/books
|
||||
INCPATH := -I include -I ../libogg/include -I lib
|
||||
|
||||
FILTER_OUT_C := lib/psytune.c lib/barkmel.c
|
||||
|
||||
LIBFILE := libvorbis.a
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
# not sure why this __APPLE__ should I make an if
|
||||
|
||||
_FLAGS := $(_FLAGS) -D__APPLE__
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
9
resources/packages/oggvorbis/config_types.h
Normal file
9
resources/packages/oggvorbis/config_types.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
typedef int16_t ogg_int16_t;
|
||||
typedef uint16_t ogg_uint16_t;
|
||||
typedef int32_t ogg_int32_t;
|
||||
typedef uint32_t ogg_uint32_t;
|
||||
typedef int64_t ogg_int64_t;
|
||||
typedef uint64_t ogg_uint64_t;
|
||||
2
resources/packages/oggvorbis/os_types.h-patch
Normal file
2
resources/packages/oggvorbis/os_types.h-patch
Normal file
@@ -0,0 +1,2 @@
|
||||
73a74
|
||||
> # include <stdint.h>
|
||||
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