build-tremor.sh

build-tremor.sh
#!/bin/bash
set -x
. $(dirname $0)/config
 
cd $SOURCES
if [ ! -e Tremor-trunk.tgz ]; then
	svn -q co http://svn.xiph.org/trunk/Tremor Tremor-trunk
	tar -czf Tremor-trunk.tgz Tremor-trunk
fi
 
cd $BUILD
 
rm -rf Tremor-trunk
tar -xf $SOURCES/Tremor-trunk.tgz 
cd Tremor-trunk/
 
#Polecenie wygeneruje skrypt ./configure
./autogen.sh --help > /dev/null
 
#Poprawki błędów
sed -i -e "s/XIPH_PATH_OGG.*$//" configure 
 
OGG_CFLAGS="-I$STAGING/usr/include $CF" \
OGG_LIBS="-L$STAGING/usr/lib -logg $LF" \
./configure \
	--host=$CROSS_COMPILE \
	--prefix=/usr
 
#	--enable-low-accuracy
 
sed -i -r 's/^(hardcode_libdir_flag_spec=")..*"$/\1"/' libtool
 
make $J
make DESTDIR=$STAGING install
 
$CROSS_COMPILE-chrpath -d $STAGING/usr/lib/libvorbisidec.so.1.0.2
ostatnio zmienione: 2011/08/19 13:50