portaudio.sh 538 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
PORTAUDIO_SOURCE=http://portaudio.com/archives/pa_snapshot_v19.tar.gz
PORTAUDIO_FILE=$(basename $PORTAUDIO_SOURCE)
PORTAUDIO_DIR=portaudio
PORTAUDIO_CONFIGURE_ARG=

if [ ! -f $PORTAUDIO_FILE ]; then
 wget $PORTAUDIO_SOURCE
fi

if [ ! -d $PORTAUDIO_DIR ]; then
 tar xzvf $PORTAUDIO_FILE
fi

if [ ! -f $PORTAUDIO_DIR/Makefile ]; then
  cd $PORTAUDIO_DIR
  ./configure --enable-cxx $PORTAUDIO_CONFIGURE_ARG

  make
  
  echo "To install portaudio (as root): " 
  echo "su -c \"cd $PORTAUDIO_DIR && make install\""
  echo ""

  
fi