flatten 20260225

This commit is contained in:
Timothy Prepscius
2026-02-25 13:00:25 -05:00
commit b308a4c280
114 changed files with 14759 additions and 0 deletions

View 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

View 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

View 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;

View File

@@ -0,0 +1,2 @@
73a74
> # include <stdint.h>

View 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