32 lines
492 B
Plaintext
Executable File
32 lines
492 B
Plaintext
Executable File
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
|
|
|