build-libao.sh

build-libao.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
wget -c http://downloads.xiph.org/releases/ao/libao-1.0.0.tar.gz
 
cd $BUILD
 
rm -rf libao-1.0.0
tar -xf $SOURCES/libao-1.0.0.tar.gz
cd libao-1.0.0
 
CPPFLAGS="-I$STAGING/usr/include $CF" \
LDFLAGS="-L$STAGING/usr/lib $LF" \
./configure \
        --host=$CROSS_COMPILE \
        --prefix=/usr
 
sed -i -r 's/^(hardcode_libdir_flag_spec=")..*"$/\1"/' libtool
 
make $J
make DESTDIR=$STAGING install
 
$CROSS_COMPILE-chrpath -d $STAGING/usr/lib/ao/plugins-4/libalsa.so
ostatnio zmienione: 2011/08/19 13:50