Skip to content

Commit

Permalink
updated portaudio to support 64bit and newer mac os
Browse files Browse the repository at this point in the history
  • Loading branch information
xuchen committed May 29, 2017
1 parent b24ad40 commit ccd0157
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 94 deletions.
9 changes: 3 additions & 6 deletions examples/C++/install_portaudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,19 @@

echo "Installing portaudio"

if [ ! -e pa_stable_v19_20140130.tgz ]; then
if [ ! -e pa_stable_v190600_20161030.tgz ]; then
wget -T 10 -t 3 \
http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz || exit 1;
http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz || exit 1;
fi

tar -xovzf pa_stable_v19_20140130.tgz || exit 1
tar -xovzf pa_stable_v190600_20161030.tgz || exit 1

cd portaudio
patch < ../patches/portaudio.patch

MACOS=`uname 2>/dev/null | grep Darwin`
if [ -z "$MACOS" ]; then
./configure --without-jack --without-oss \
--with-alsa --prefix=`pwd`/install --with-pic || exit 1;
sed -i '40s:src/common/pa_ringbuffer.o::g' Makefile
sed -i '40s:$: src/common/pa_ringbuffer.o:' Makefile
else
# People may have changed OSX's default configuration -- we use clang++.
CC=clang CXX=clang++ ./configure --prefix=`pwd`/install --with-pic
Expand Down
41 changes: 0 additions & 41 deletions examples/C++/patches/portaudio.patch

This file was deleted.

9 changes: 3 additions & 6 deletions examples/C/install_portaudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,19 @@

echo "Installing portaudio"

if [ ! -e pa_stable_v19_20140130.tgz ]; then
if [ ! -e pa_stable_v190600_20161030.tgz ]; then
wget -T 10 -t 3 \
http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz || exit 1;
http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz || exit 1;
fi

tar -xovzf pa_stable_v19_20140130.tgz || exit 1
tar -xovzf pa_stable_v190600_20161030.tgz || exit 1

cd portaudio
patch < ../patches/portaudio.patch

MACOS=`uname 2>/dev/null | grep Darwin`
if [ -z "$MACOS" ]; then
./configure --without-jack --without-oss \
--with-alsa --prefix=`pwd`/install --with-pic || exit 1;
sed -i '40s:src/common/pa_ringbuffer.o::g' Makefile
sed -i '40s:$: src/common/pa_ringbuffer.o:' Makefile
else
# People may have changed OSX's default configuration -- we use clang++.
CC=clang CXX=clang++ ./configure --prefix=`pwd`/install --with-pic
Expand Down
41 changes: 0 additions & 41 deletions examples/C/patches/portaudio.patch

This file was deleted.

0 comments on commit ccd0157

Please sign in to comment.