build-portaudio.sh

build-portaudio.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
wget -c http://www.portaudio.com/archives/pa_snapshot.tgz
 
cd $BUILD
 
rm -rf portaudio
tar -xf $SOURCES/pa_snapshot.tgz 
cd portaudio/
 
CFLAGS="-I$STAGING/usr/include $CF" \
LDFLAGS="-L$STAGING/usr/lib $LF" \
./configure \
	--host=$CROSS_COMPILE \
	--with-alsa \
	--with-oss \
	--with-jack=no \
	--prefix=/usr \
	--enable-cxx
 
make $J
make DESTDIR=$HOME/staging install
 
$CROSS_COMPILE-chrpath -d $STAGING/usr/lib/libportaudio.so.2.0.0 
$CROSS_COMPILE-chrpath -d $STAGING/usr/lib/libportaudiocpp.so.0.0.12 
ostatnio zmienione: 2011/08/19 13:50