flatten 20260225
This commit is contained in:
31
resources/packages/soxr/prepare
Executable file
31
resources/packages/soxr/prepare
Executable file
@@ -0,0 +1,31 @@
|
||||
set -x
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir -p sdk/include
|
||||
|
||||
LIB=soxr
|
||||
|
||||
mkdir $LIB
|
||||
pushd $LIB
|
||||
|
||||
git clone --depth 1 https://github.com/chirlu/soxr.git --branch 0.1.3
|
||||
|
||||
cp -av $DIR/Makefile.project soxr/
|
||||
cp -av $DIR/soxr-config.h soxr/src/soxr-config.h
|
||||
|
||||
pushd soxr
|
||||
git apply $DIR/src_pffft-wrap.c.patch
|
||||
popd
|
||||
|
||||
ln -s $DIR/../../Makefile-template soxr/Makefile
|
||||
|
||||
pushd soxr
|
||||
make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
pushd sdk/include
|
||||
ln -fs ../../$LIB/soxr/src soxr
|
||||
popd
|
||||
|
||||
Reference in New Issue
Block a user