|
@@ -7,32 +7,35 @@ INSTALL_DIR_MAC="/Library/Audio/Plug-Ins/LV2"
|
|
|
# Detect the platform (similar to $OSTYPE)
|
|
# Detect the platform (similar to $OSTYPE)
|
|
|
OS="`uname`"
|
|
OS="`uname`"
|
|
|
case $OS in
|
|
case $OS in
|
|
|
- 'Linux') OS='Linux';;
|
|
|
|
|
- 'Darwin') OS='Mac';;
|
|
|
|
|
|
|
+ 'Linux') OS='Linux' && echo "You are on a Linux system. Building for Linux";;
|
|
|
|
|
+ 'Darwin') OS='Mac' && echo "You are on a Mac system. Building for MacOS";;
|
|
|
*) ;;
|
|
*) ;;
|
|
|
esac
|
|
esac
|
|
|
|
|
|
|
|
-#remove previous build
|
|
|
|
|
-rm -rf build rnnoise || true
|
|
|
|
|
|
|
+#remove previous builds
|
|
|
|
|
+rm -rf build || true
|
|
|
|
|
|
|
|
#build rrnoise statically
|
|
#build rrnoise statically
|
|
|
-git clone https://github.com/xiph/rnnoise.git
|
|
|
|
|
-./rnnoise/autogen.sh
|
|
|
|
|
|
|
+wget https://github.com/xiph/rnnoise/archive/master.zip
|
|
|
|
|
+unzip -o master.zip && rm master.zip
|
|
|
|
|
+cd rnnoise-master && ./autogen.sh
|
|
|
|
|
+mv ../ltmain.sh ./ && ./autogen.sh #This is weird but otherwise it won't work
|
|
|
|
|
|
|
|
if [ $OS = "Mac" ]; then
|
|
if [ $OS = "Mac" ]; then
|
|
|
CFLAGS="-fvisibility=hidden -fPIC " \
|
|
CFLAGS="-fvisibility=hidden -fPIC " \
|
|
|
- ./configure/rnnoise/ --disable-examples --disable-doc --disable-shared --enable-static
|
|
|
|
|
|
|
+ ./configure --disable-examples --disable-doc --disable-shared --enable-static
|
|
|
elif [ $OS = "Linux" ]; then
|
|
elif [ $OS = "Linux" ]; then
|
|
|
CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
|
|
CFLAGS="-fvisibility=hidden -fPIC -Wl,--exclude-libs,ALL" \
|
|
|
- ./configure/rnnoise/ --disable-examples --disable-doc --disable-shared --enable-static
|
|
|
|
|
|
|
+ ./configure --disable-examples --disable-doc --disable-shared --enable-static
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+make -j2
|
|
|
|
|
+cd ..
|
|
|
|
|
+
|
|
|
#build the plugin in the new directory
|
|
#build the plugin in the new directory
|
|
|
if [ $OS = "Linux" ]; then
|
|
if [ $OS = "Linux" ]; then
|
|
|
- echo "You are on a Linux system. Building for Linux"
|
|
|
|
|
meson build --buildtype release --prefix $INSTALL_DIR_LINUX
|
|
meson build --buildtype release --prefix $INSTALL_DIR_LINUX
|
|
|
elif [ $OS = "Mac" ]; then
|
|
elif [ $OS = "Mac" ]; then
|
|
|
- echo "You are on a Mac system. Building for MacOS"
|
|
|
|
|
meson build --buildtype release --prefix $INSTALL_DIR_MAC
|
|
meson build --buildtype release --prefix $INSTALL_DIR_MAC
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
@@ -40,4 +43,8 @@ cd build
|
|
|
ninja -v
|
|
ninja -v
|
|
|
|
|
|
|
|
#install the plugin in the system
|
|
#install the plugin in the system
|
|
|
-sudo ninja install
|
|
|
|
|
|
|
+sudo ninja install
|
|
|
|
|
+
|
|
|
|
|
+#Remove static rnnoise build
|
|
|
|
|
+cd ..
|
|
|
|
|
+rm -rfv rnnoise-master
|